/* ═══════════════════════════════════════════════
   LEARNING HUB — Domain Selector Page
   Uses existing theme vars: --bg-color, --primary-color,
   --font-mono, --font-main, --border-width, --max-width
   ═══════════════════════════════════════════════ */

/* ── Hero Card ── */
.learning-hero {
    position: relative;
    width: 90%;
    max-width: var(--max-width);
    border: var(--border-width) solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.learning-hero-content {
    margin: 1.5rem 0 1rem;
}

.learning-title {
    font-family: var(--font-main);
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0;
}

.learning-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   DOMAIN SELECTOR CARDS
   ═══════════════════════════════════════════════ */

.domain-selector-section {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto 3rem;
}

.domain-section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: var(--border-width) solid var(--primary-color);
}

.domain-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* ── Individual Domain Card ── */
.domain-card {
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: var(--bg-color);
    text-decoration: none;
    color: var(--primary-color);
    min-height: 200px;
    justify-content: center;
}

.domain-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1.5px solid var(--primary-color);
    border-radius: 16px;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 0 var(--primary-color);
}

.domain-card:hover::after {
    opacity: 0.5;
}

.domain-card:hover .domain-card-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ── Domain Card Logo ── */
.domain-card-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.domain-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* ── Domain Card Title ── */
.domain-card-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.1;
}

/* ── Domain Card Description ── */
.domain-card-desc {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    opacity: 0.55;
    text-align: center;
    line-height: 1.6;
    max-width: 280px;
}

/* ── Resource Count ── */
.domain-card-count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border: var(--border-width) solid var(--primary-color);
    opacity: 0.6;
}

/* ── Arrow indicator ── */
.domain-card-arrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.4;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Footer Disclaimer ── */
.resources-footer-section {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding-top: 1.5rem;
    border-top: var(--border-width) solid var(--primary-color);
}

.resources-footer-section p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1023px) and (min-width: 768px) {
    .learning-hero {
        width: 92%;
        padding: 1.75rem;
    }

    .learning-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }

    .domain-selector-section,
    .resources-footer-section {
        width: 92%;
    }

    .domain-card {
        padding: 2.5rem 1.5rem;
        min-height: 280px;
    }

    .domain-card-logo {
        width: 80px;
        height: 80px;
    }

    .domain-card-title {
        font-size: 1.6rem;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .learning-hero {
        width: 95%;
        padding: 1.25rem;
    }

    .learning-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .learning-subtitle {
        font-size: 0.8rem;
    }

    .learning-hero-content {
        margin: 2rem 0 1.5rem;
    }

    .domain-selector-section,
    .resources-footer-section {
        width: 95%;
    }

    .domain-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .domain-card {
        padding: 2rem 1.25rem;
        min-height: 220px;
        border-radius: 14px;
        gap: 1rem;
    }

    .domain-card::after {
        border-radius: 10px;
        inset: 3px;
    }

    .domain-card-logo {
        width: 64px;
        height: 64px;
    }

    .domain-card-title {
        font-size: 1.4rem;
    }

    .domain-card-desc {
        font-size: 0.72rem;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .learning-hero {
        width: 98%;
        padding: 1rem;
    }

    .learning-title {
        font-size: clamp(2rem, 14vw, 3.5rem);
    }

    .domain-selector-section,
    .resources-footer-section {
        width: 98%;
    }

    .domain-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
        border-radius: 12px;
    }

    .domain-card::after {
        border-radius: 8px;
        inset: 2px;
        border-width: 1px;
    }

    .domain-card:hover {
        transform: none;
        box-shadow: none;
    }

    .domain-card-logo {
        width: 52px;
        height: 52px;
    }

    .domain-card-title {
        font-size: 1.2rem;
    }

    .domain-card-count {
        font-size: 0.6rem;
    }

    .domain-card-desc {
        font-size: 0.68rem;
    }
}
