/* ==========================================================================
   LIG Core Four — Custom Styles
   ========================================================================== */

/* ── Navigation links ──────────────────────────────────────────────────── */

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: all 0.15s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}


/* ── HTMX loading indicator ───────────────────────────────────────────── */

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-flex;
}

.htmx-request.htmx-indicator {
    display: inline-flex;
}


/* ── Prose / content styles ───────────────────────────────────────────── */

.prose h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1E3A5F;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2a5a8f;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 0.75rem;
    line-height: 1.625;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}


/* ── Personality type card borders ────────────────────────────────────── */

.card-hearts {
    border-left: 4px solid #E74C3C;
}

.card-diamonds {
    border-left: 4px solid #3498DB;
}

.card-clubs {
    border-left: 4px solid #2ECC71;
}

.card-spades {
    border-left: 4px solid #9B59B6;
}


/* ── Mobile touch targets ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    button,
    a.btn,
    [role="button"] {
        min-height: 44px;
    }

    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        font-size: 16px;
    }
}


/* ── Safe area for mobile bottom nav ─────────────────────────────────── */

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.has-bottom-nav {
    padding-bottom: 4rem;
}


/* ── Print styles ─────────────────────────────────────────────────────── */

@media print {
    aside,
    nav,
    .no-print,
    .mobile-nav {
        display: none !important;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .bg-white {
        box-shadow: none !important;
    }
}


/* ── Focus visible for accessibility ──────────────────────────────────── */

:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}


/* ── Skip to content link ─────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1E3A5F;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
