/* Dashboard-specific styles. */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.hero-card { grid-column: 1; }
.hero-card .intro {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    font-size: 15px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.stat .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.card-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin: -8px 0 12px 0;
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.quick-link {
    display: block;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.12s, background 0.12s;
}
.quick-link:hover { border-color: var(--accent); background: var(--bg-elevated); text-decoration: none; }
.quick-link .ql-title { font-weight: 600; color: var(--accent); }
.quick-link .ql-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Day strip */
.day-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.day-pill {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    background: var(--bg-card);
    min-width: 92px;
    text-align: center;
}
.day-pill:hover { border-color: var(--accent); background: var(--bg-elevated); text-decoration: none; }
.day-weekday {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}
.day-date {
    font-weight: 700;
    margin: 2px 0 6px 0;
    font-size: 14px;
}
.day-meta {
    font-size: 11px;
    color: var(--text-muted);
}
.day-meta .dim { opacity: 0.6; }
.anchor-pill {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 4px;
    font-weight: 600;
}

/* People */
.people-list { display: flex; flex-direction: column; gap: 8px; }
.person-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.person-row:last-child { border-bottom: none; }
.person-name { flex: 1; font-weight: 500; }
.person-stat { color: var(--text-muted); font-size: 12px; }
.you-tag {
    display: inline-block;
    background: var(--highlight);
    color: #1F1A14;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: 4px;
}

/* Anchors */
.anchor-list { display: flex; flex-direction: column; gap: 8px; }
.anchor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}
.anchor-name { font-weight: 600; color: var(--text); }
.anchor-meta { font-size: 12px; color: var(--text-muted); }
.anchor-people { display: flex; align-items: center; gap: 4px; }
.anchor-count { font-size: 13px; font-weight: 700; color: var(--accent); margin-left: 4px; }

/* My glance */
.my-glance { display: flex; flex-direction: column; gap: 10px; }
.glance-day { display: flex; align-items: center; gap: 12px; }
.glance-date {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 84px;
    text-transform: uppercase;
    font-weight: 600;
}
.glance-items { display: flex; flex-wrap: wrap; gap: 6px; }
.glance-item {
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
}
.glance-item:hover { border-color: var(--accent); text-decoration: none; }
.glance-item.is-anchor { background: var(--accent-soft); border-color: var(--accent); }
.mini-anchor {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-deep);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: 1fr; }
}

/* -- Welcome / onboarding card -- */
.welcome-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent-soft) 35%, var(--bg-card)),
        var(--bg-card) 60%);
    border-color: var(--accent-soft);
    padding: 24px 28px;
}
.welcome-greeting h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: var(--accent-deep);
    letter-spacing: -0.01em;
}
.welcome-blurb {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    max-width: 720px;
}
.how-it-works {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}
.hiw-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}
.hiw-steps {
    margin: 0 0 16px 0;
    padding-left: 28px;
    counter-reset: step;
}
.hiw-steps li {
    margin-bottom: 14px;
    line-height: 1.55;
}
.hiw-steps li:last-child { margin-bottom: 0; }
.hiw-step-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 15px;
}
.hiw-step-body {
    color: var(--text-muted);
    font-size: 14px;
}
.hiw-step-body strong { color: var(--text); }
.hiw-step-body a { color: var(--accent); font-weight: 600; }
.hiw-later {
    font-weight: 400;
    color: var(--text-subtle);
    font-size: 12px;
    font-style: italic;
}
.hiw-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.hiw-cta {
    color: var(--accent);
    font-weight: 600;
}

/* Reuse the il-pill class (defined in adventures.css) for the inline labels
   in the how-it-works steps. Define it here too in case the dashboard loads
   before adventures.css has been visited. */
.il-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 1px;
    color: white;
}
.il-pill.must    { background: var(--accent); }
.il-pill.want    { background: var(--secondary); }
.il-pill.curious { background: var(--tertiary); }
.il-pill.no      { background: var(--text-subtle); }
