/* user-dashboard.css — Alarm112 PlayerDashboard */

/* ── Status bar ───────────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 12px;
  width: fit-content;
}
.status-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.status-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.status-bar-dot.ok  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.5); }
.status-bar-dot.err { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,.5); }
.status-bar-dot.loading { background: #f59e0b; animation: pulse-warn 1.5s ease-in-out infinite; }
.status-bar-divider { width: 1px; height: 16px; background: var(--border); }

/* ── Main grid layout ─────────────────────────────────────── */
.user-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 32px;
}
.user-col-main { display: flex; flex-direction: column; gap: 18px; }
.user-col-side  { display: flex; flex-direction: column; gap: 18px; }

/* ── Card section header ──────────────────────────────────── */
.card-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-section-header h2 {
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.card-section-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-blue   { background: rgba(56,189,248,.12); color: #38bdf8; border: 1px solid rgba(56,189,248,.2); }
.icon-orange { background: rgba(251,146,60,.12); color: #fb923c; border: 1px solid rgba(251,146,60,.2); }
.icon-green  { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.icon-red    { background: rgba(232,65,12,.12);  color: #ff5724; border: 1px solid rgba(232,65,12,.2); }

.card-section-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56,189,248,.1);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,.2);
}
.badge-orange { background: rgba(251,146,60,.1); color: #fb923c; border-color: rgba(251,146,60,.2); }
.badge-green  { background: rgba(74,222,128,.1); color: #4ade80; border-color: rgba(74,222,128,.2); }
.badge-red    { background: rgba(232,65,12,.1);  color: #ff7a5c; border-color: rgba(232,65,12,.2); }

/* ── Section summary ──────────────────────────────────────── */
.section-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* ── Card list (home hub cards) ───────────────────────────── */
.card-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.card-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.card-list-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}
.card-list-title { flex: 1; color: var(--text); font-weight: 500; }
.card-list-meta  { font-size: 11px; color: var(--muted); }

/* ── Briefing ─────────────────────────────────────────────── */
.briefing-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.briefing-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.briefing-meta-item {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}
.objectives-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.objectives-list {
  list-style: none;
  padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.objectives-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
  margin-top: 6px;
}
.roles-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-soft);
}

/* ── Showcase steps ───────────────────────────────────────── */
.showcase-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  counter-reset: step;
  gap: 6px;
}
.showcase-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  counter-increment: step;
}
.showcase-step::before {
  content: counter(step);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.2);
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Quickplay card ───────────────────────────────────────── */
.quickplay-card { display: flex; flex-direction: column; gap: 14px; }
.btn-full { width: 100%; justify-content: center; }
.quickplay-loading { font-size: 13px; color: var(--muted); padding: 8px 0; }
.qp-scenario {
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.qp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.qp-value { font-size: 14px; font-weight: 600; color: var(--text); }
.qp-meta  { font-size: 12px; color: var(--muted); }
.qp-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.qp-role-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,65,12,.25);
  color: #ff7a5c;
  background: rgba(232,65,12,.08);
}

/* ── Mission entry ────────────────────────────────────────── */
.me-difficulty {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}
.me-difficulty.easy   { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.me-difficulty.medium { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.2); }
.me-difficulty.hard   { background: rgba(239,68,68,.12);  color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
.me-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.me-meta  { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.me-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.me-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(232,65,12,.08);
  border: 1px solid rgba(232,65,12,.15);
  color: #ff9980;
}

/* ── Campaign content ─────────────────────────────────────── */
.campaign-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.chapter-item:last-child { border-bottom: none; }
.chapter-num {
  font-size: 10px; font-weight: 700;
  color: var(--muted-soft);
  width: 22px; flex-shrink: 0;
}
.chapter-name { flex: 1; color: var(--text); font-weight: 500; }
.chapter-nodes { font-size: 11px; color: var(--muted); }

/* ── Launch actions ───────────────────────────────────────── */
.launch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.launch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition);
}
.launch-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
.launch-btn svg { color: var(--accent-2); flex-shrink: 0; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes pulse-warn {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .user-main-grid { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; }
}
