/* ============================================
   Dashboard — Vercel-style App Grid
   dashboard.css
   ============================================ */

/* ── Variables ── */
:root {
    --d-surface:   var(--bg-tertiary, #21262d);
    --d-card:      var(--bg-card, #1c2128);
    --d-border:    var(--border-color, #30363d);
    --d-text:      var(--text-primary, #e6edf3);
    --d-muted:     var(--text-muted, #8b949e);
    --d-radius:    12px;
}

/* ── Section ── */
.dash-section {
    margin-bottom: 2.5rem;
}
.dash-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--d-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
}
.dash-section-icon {
    font-size: 1rem;
}

/* ── Grid ── */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* ── Card ── */
.dash-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--d-card);
    border: 1px solid var(--d-border);
    border-radius: var(--d-radius);
    text-decoration: none;
    color: var(--d-text);
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.dash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,.02));
    pointer-events: none;
}
.dash-card:hover {
    border-color: #444;
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.dash-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d-surface);
    border-radius: 10px;
    border: 1px solid var(--d-border);
}

.dash-card-body h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .25rem;
    letter-spacing: -.01em;
}
.dash-card-body p {
    color: var(--d-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.dash-card-tag {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 20px;
    background: var(--d-border);
    color: var(--d-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Card accent colors on hover ── */
.dash-card--tuvi:hover      { border-color: #8b5cf6; }
.dash-card--tuvi:hover .dash-card-tag { background: #8b5cf6; color: #fff; }

.dash-card--thai-at:hover   { border-color: #f59e0b; }
.dash-card--thai-at:hover .dash-card-tag { background: #f59e0b; color: #000; }

.dash-card--ki-mon:hover    { border-color: #06b6d4; }
.dash-card--ki-mon:hover .dash-card-tag { background: #06b6d4; color: #000; }

.dash-card--luc-nham:hover  { border-color: #a855f7; }
.dash-card--luc-nham:hover .dash-card-tag { background: #a855f7; color: #fff; }

.dash-card--hexagram:hover  { border-color: #10b981; }
.dash-card--hexagram:hover .dash-card-tag { background: #10b981; color: #000; }

.dash-card--vdp:hover       { border-color: #f97316; }
.dash-card--vdp:hover .dash-card-tag { background: #f97316; color: #000; }

.dash-card--finder:hover    { border-color: #3b82f6; }
.dash-card--finder:hover .dash-card-tag { background: #3b82f6; color: #fff; }

.dash-card--analytics:hover { border-color: #ec4899; }
.dash-card--analytics:hover .dash-card-tag { background: #ec4899; color: #fff; }

.dash-card--graph:hover     { border-color: #14b8a6; }
.dash-card--graph:hover .dash-card-tag { background: #14b8a6; color: #000; }

.dash-card--movement:hover  { border-color: #6366f1; }
.dash-card--movement:hover .dash-card-tag { background: #6366f1; color: #fff; }

.dash-card--dataset:hover   { border-color: #f43f5e; }
.dash-card--dataset:hover .dash-card-tag { background: #f43f5e; color: #fff; }

.dash-card--math:hover      { border-color: #f59e0b; }
.dash-card--math:hover .dash-card-tag { background: #f59e0b; color: #000; }

.dash-card--octonion:hover  { border-color: #8b5cf6; }
.dash-card--octonion:hover .dash-card-tag { background: #8b5cf6; color: #fff; }

.dash-card--acupoints:hover { border-color: #22c55e; }
.dash-card--acupoints:hover .dash-card-tag { background: #22c55e; color: #000; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-header-inner {
        padding: 1rem;
    }
    .dash-main {
        padding: 1.5rem 1rem 3rem;
    }
    .dash-logo-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .dash-card {
        padding: 1rem;
    }
    .dash-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}
