/* =========================================================
   SQL PRACTICE SELECTION PAGE
   Pixel-perfect match to modern developer dashboard design
========================================================= */

/* =========================================================
   PAGE BACKGROUND & LAYOUT INTEGRATION
========================================================= */
body:has(.practice-selection) {
    background-color: #020713 !important;
    background-image:
        linear-gradient(rgba(2, 6, 18, 0.48), rgba(2, 6, 18, 0.58)),
        url("../images/practice_page_bg_image.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #f1f5f9;
}

body:has(.practice-selection) .app-layout {
    background: transparent !important;
}

body:has(.practice-selection) .main-wrapper {
    background: transparent !important;
}

body:has(.practice-selection) .sidebar {
    background: rgba(3, 9, 22, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(56, 189, 248, 0.12) !important;
}

body:has(.practice-selection) .main-header {
    background: rgba(2, 7, 18, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
}

body:has(.practice-selection) .header-db-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

body:has(.practice-selection) .header-greeting h2 {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    display: flex;
    align-items: center;
}

body:has(.practice-selection) .content-container {
    max-width: 1440px !important;
    padding: 20px 36px 36px !important;
    background: transparent !important;
}

body:has(.practice-selection) .footer.customer-footer {
    background: transparent !important;
    border-top: 1px solid rgba(56, 189, 248, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px !important;
    color: #64748b;
    font-size: 0.78rem;
}

body:has(.practice-selection) .footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

body:has(.practice-selection) .footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

body:has(.practice-selection) .footer-links a:hover {
    color: #38bdf8;
}

/* =========================================================
   PRACTICE SELECTION MAIN CONTAINER
========================================================= */
.practice-selection {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* =========================================================
   HERO HEADER SECTION
========================================================= */
.practice-selection__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    min-height: 180px;
}

.practice-selection__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 680px;
}

/* Eyebrow Pill Badge */
.practice-selection__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #34d399;
    margin-bottom: 12px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

/* Main Title */
.practice-selection__intro h1 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.practice-selection__intro h1 span {
    color: #10b981;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

/* Subtitle */
.practice-selection__subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 0 18px 0;
}

/* 4 Inline Highlight Badges */
.practice-selection__highlights {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    color: #cbd5e1;
}

.highlight-item i {
    font-size: 0.95rem;
}

.highlight-item--green i { color: #34d399; }
.highlight-item--cyan i  { color: #22d3ee; }
.highlight-item--blue i  { color: #60a5fa; }
.highlight-item--gold i  { color: #fbbf24; }

/* =========================================================
   4 LEVEL CARDS GRID
========================================================= */
.practice-selection__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

/* Base Card */
.practice-selection__card {
    background: rgba(6, 18, 36, 0.76);
    border-radius: 18px;
    padding: 22px 20px 20px;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.practice-selection__card:hover {
    transform: translateY(-4px);
}

/* Card Header: Icon + Badge */
.practice-selection__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.practice-selection__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.practice-selection__badge {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Card Title */
.practice-selection__card h2 {
    font-size: 1.30rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

/* Card Description */
.practice-selection__card p {
    font-size: 0.80rem;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0 0 16px 0;
    min-height: 38px;
}

/* Checklist */
.practice-selection__checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.practice-selection__checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.80rem;
    font-weight: 500;
    color: #e2e8f0;
}

.practice-selection__checklist li i {
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Button Base */
.practice-selection__button {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   CARD 1: BEGINNER (FREE / GREEN)
--------------------------------------------------------- */
.practice-selection__card--beginner {
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(16, 185, 129, 0.12);
}

.practice-selection__card--beginner:hover {
    border-color: rgba(16, 185, 129, 0.70);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(16, 185, 129, 0.22);
}

.practice-selection__card--beginner .practice-selection__icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.40);
}

.badge--free {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.practice-selection__card--beginner .practice-selection__checklist li i {
    color: #34d399;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.4));
}

.practice-selection__button--primary {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: #021a12;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

.practice-selection__button--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.65);
    color: #021a12;
}

/* ---------------------------------------------------------
   CARD 2: INTERMEDIATE (PRO / BLUE)
--------------------------------------------------------- */
.practice-selection__card--intermediate {
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(59, 130, 246, 0.10);
}

.practice-selection__card--intermediate:hover {
    border-color: rgba(59, 130, 246, 0.60);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(59, 130, 246, 0.20);
}

.practice-selection__card--intermediate .practice-selection__icon {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

.practice-selection__card--intermediate .practice-selection__checklist li i {
    color: #60a5fa;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.4));
}

.practice-selection__card--intermediate .practice-selection__button--locked {
    background: rgba(15, 34, 64, 0.70);
    border: 1px solid rgba(59, 130, 246, 0.38);
    color: #93c5fd;
}

/* ---------------------------------------------------------
   CARD 3: ADVANCED (PRO / PURPLE)
--------------------------------------------------------- */
.practice-selection__card--advanced {
    border: 1px solid rgba(147, 51, 234, 0.35);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(147, 51, 234, 0.10);
}

.practice-selection__card--advanced:hover {
    border-color: rgba(147, 51, 234, 0.60);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(147, 51, 234, 0.20);
}

.practice-selection__card--advanced .practice-selection__icon {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

.practice-selection__card--advanced .practice-selection__checklist li i {
    color: #c084fc;
    filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.4));
}

.practice-selection__card--advanced .practice-selection__button--locked {
    background: rgba(30, 18, 54, 0.70);
    border: 1px solid rgba(168, 85, 247, 0.38);
    color: #d8b4fe;
}

/* ---------------------------------------------------------
   CARD 4: INTERVIEW MOCK TEST (PRO / AMBER)
--------------------------------------------------------- */
.practice-selection__card--interview {
    border: 1px solid rgba(217, 119, 6, 0.35);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(217, 119, 6, 0.10);
}

.practice-selection__card--interview:hover {
    border-color: rgba(217, 119, 6, 0.60);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(217, 119, 6, 0.20);
}

.practice-selection__card--interview .practice-selection__icon {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.practice-selection__card--interview .practice-selection__checklist li i {
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.practice-selection__card--interview .practice-selection__button--locked {
    background: rgba(45, 28, 10, 0.70);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fde047;
}

/* Shared PRO badge */
.badge--pro {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.practice-selection__button--locked {
    cursor: not-allowed;
    opacity: 0.92;
}

.practice-selection__button--locked:hover {
    opacity: 1;
}

/* =========================================================
   BOTTOM BENEFITS PILL BAR
========================================================= */
.practice-selection__benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(6, 18, 36, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.benefit-icon--green  { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.benefit-icon--blue   { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.benefit-icon--purple { background: rgba(168, 85, 247, 0.14); color: #c084fc; }
.benefit-icon--amber  { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text b {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.benefit-text small {
    font-size: 0.70rem;
    color: #8493a8;
    margin-top: 2px;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1200px) {
    .practice-selection__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-selection__benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .practice-selection__intro h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .practice-selection__grid {
        grid-template-columns: 1fr;
    }

    .practice-selection__benefits {
        grid-template-columns: 1fr;
    }

    body:has(.practice-selection) .content-container {
        padding: 16px 18px 24px !important;
    }
}

/* =========================================================
   LIGHT THEME OVERRIDES
========================================================= */
html[data-bs-theme="light"] body:has(.practice-selection),
html[data-bs-theme="light"] body:has([aria-labelledby="practice-selection-title"]) {
    background-color: #f1f5f9 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(241, 245, 249, 0.28)),
        url("../images/light_color_practice_bg.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] body:has(.practice-selection) .sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-right-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-bs-theme="light"] body:has(.practice-selection) .main-header {
    background: rgba(255, 255, 255, 0.90) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-bs-theme="light"] .practice-selection__intro h1 {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .practice-selection__subtitle {
    color: #475569 !important;
}

html[data-bs-theme="light"] .practice-selection__eyebrow {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #059669 !important;
}

html[data-bs-theme="light"] .highlight-item {
    color: #334155 !important;
}

/* 4 Level Cards in Light Theme */
html[data-bs-theme="light"] .practice-selection__card {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

html[data-bs-theme="light"] .practice-selection__card:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10) !important;
}

html[data-bs-theme="light"] .practice-selection__card h2 {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .practice-selection__card p {
    color: #475569 !important;
}

html[data-bs-theme="light"] .practice-selection__checklist li {
    color: #334155 !important;
}

html[data-bs-theme="light"] .practice-selection__button--locked {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

html[data-bs-theme="light"] .practice-selection__button--locked:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Bottom Benefits Bar */
html[data-bs-theme="light"] .practice-selection__benefits {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

html[data-bs-theme="light"] .benefit-text b {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .benefit-text small {
    color: #64748b !important;
}

html[data-bs-theme="light"] body:has(.practice-selection) .footer.customer-footer {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}