/* ============================================
   DASHBOARD.CSS — Card grid (MVC)
   ============================================ */

.dashboard {
    min-height: calc(100svh - var(--header-offset));
    background: url("../../stratford-bg.jpg") no-repeat center/cover;
    text-align: center;
    color: white;
    padding: 60px clamp(16px, 4vw, 40px);
    position: relative;
}

.dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(37, 99, 235, 0.15) 40%,
            rgba(124, 58, 237, 0.12) 70%,
            rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.dashboard>* {
    position: relative;
    z-index: 1;
}

.dashboard-header-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px 24px;
    margin: 0 auto 32px;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-header-card h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dashboard-header-card h1 i {
    margin-right: 8px;
    font-style: normal;
}

.dashboard-header-card p {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    justify-items: center;
    gap: clamp(14px, 2vw, 24px);
    width: min(1300px, 100%);
    margin-inline: auto;
}

.card {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    padding: var(--sp-6);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    min-height: 200px;
    height: clamp(190px, 24vw, 260px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out),
        background 0.3s ease,
        border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.card i {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.card span {
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover i {
    background: rgba(255, 255, 255, 0.08);
}

.card:nth-child(1) {
    border-left-color: #60a5fa;
}

.card:nth-child(2) {
    border-left-color: #34d399;
}

.card:nth-child(3) {
    border-left-color: #a78bfa;
}

.card:nth-child(4) {
    border-left-color: #f472b6;
}

.card:nth-child(5) {
    border-left-color: #fbbf24;
}

.card:nth-child(6) {
    border-left-color: #fb923c;
}

.card:nth-child(7) {
    border-left-color: #f87171;
}

/* COMPACT LAPTOP */
body.compact-laptop .dashboard {
    padding: 22px 14px 24px;
}

body.compact-laptop .dashboard h1 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

body.compact-laptop .subtitle {
    font-size: clamp(0.9rem, 1.35vw, 1.05rem);
    margin-top: var(--sp-2);
    margin-bottom: var(--sp-3);
}

body.compact-laptop .card-grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.compact-laptop .card {
    min-height: 118px;
    height: auto;
    max-width: 100%;
    padding: var(--sp-3);
    border-radius: var(--radius-md);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

@media (max-width: 992px) {
    .dashboard {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .subtitle {
        margin-bottom: var(--sp-6);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
    }

    .card {
        max-width: 100%;
        min-height: 130px;
        height: auto;
        padding: var(--sp-4) var(--sp-3);
        font-size: clamp(0.85rem, 3.6vw, 1.05rem);
    }

    .card i {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .dashboard {
        padding: 28px var(--sp-3) 30px;
    }

    .subtitle {
        margin-top: var(--sp-3);
        margin-bottom: var(--sp-4);
    }

    .card-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        border-radius: var(--radius-md);
        min-height: 110px;
        padding: 14px 10px;
        font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    }

    .card i {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 1200px) {
    body.compact-laptop .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 820px) {
    .dashboard {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .subtitle {
        margin-top: 10px;
        margin-bottom: var(--sp-4);
    }

    .card {
        min-height: 150px;
        height: auto;
    }
}

@media (max-height: 700px) {
    .dashboard {
        padding-top: var(--sp-5);
        padding-bottom: var(--sp-5);
    }

    .dashboard h1 {
        font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    }

    .subtitle {
        font-size: clamp(0.9rem, 1.7vw, 1.1rem);
        margin-bottom: var(--sp-3);
    }

    .card-grid {
        gap: 10px;
    }

    .card {
        min-height: 120px;
        padding: var(--sp-3);
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }
}