/* ==========================================================
   MYTHOLOGY SECTION — The Antediluvian Record
   Deep-water palette, cuneiform-inspired textures
   ========================================================== */

/* Section Header */
.myth-header {
    text-align: center;
    padding: 40px 20px 32px;
}
.myth-header h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--th-accent, #C4A265);
    margin: 0 0 8px;
}
.myth-subtitle {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: 1.05rem;
    color: rgba(var(--text-rgb, 200,210,220), 0.55);
    margin: 0;
    font-style: italic;
}

/* Card Grid */
.myth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Card */
.myth-card {
    background: rgba(var(--surface-rgb, 15,20,30), 0.6);
    border: 1px solid rgba(var(--text-rgb, 200,210,220), 0.06);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.myth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--card-accent, #3B82F6);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.myth-card:hover {
    border-color: rgba(var(--text-rgb, 200,210,220), 0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.myth-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.myth-card-icon {
    flex-shrink: 0;
    width: 28px;
    padding-top: 2px;
    opacity: 0.7;
}

/* Card Body */
.myth-card-body {
    flex: 1;
    min-width: 0;
}
.myth-card-body h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--th-accent, #C4A265);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}

/* Tagline — the hook */
.myth-tagline {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: 1rem;
    color: rgba(var(--text-rgb, 200,210,220), 0.75);
    margin: 0 0 12px;
    font-style: italic;
    line-height: 1.4;
}

/* Body text */
.myth-body {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(var(--text-rgb, 200,210,220), 0.6);
    margin: 0 0 14px;
}

/* Key Facts */
.myth-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.myth-facts li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(var(--text-rgb, 200,210,220), 0.5);
    padding: 3px 0 3px 16px;
    position: relative;
}
.myth-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--card-accent, #3B82F6);
    border-radius: 1px;
    opacity: 0.4;
    transform: rotate(45deg);
}

/* Evidence citation */
.myth-evidence {
    font-size: 0.72rem;
    color: rgba(var(--text-rgb, 200,210,220), 0.3);
    margin: 0 0 10px;
    font-style: italic;
    line-height: 1.4;
}

/* Tradition dots */
.myth-tradition-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.myth-tradition-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
    cursor: default;
}
.myth-tradition-count {
    font-size: 0.7rem;
    color: rgba(var(--text-rgb, 200,210,220), 0.35);
    margin-left: 2px;
}

/* ---- Responsive ---- */

@media (min-width: 640px) {
    .myth-grid {
        gap: 24px;
    }
    .myth-card {
        padding: 28px;
    }
    .myth-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .myth-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    .myth-card-icon {
        width: auto;
    }
    .myth-header h2 {
        font-size: 1.4rem;
    }
    .myth-subtitle {
        font-size: 0.9rem;
    }
    .myth-grid {
        padding: 0 12px 32px;
        gap: 14px;
    }
}
