/* ═══════════════════════════════════════════════════
   MODULE 7 · MALPRAXIS CONDITIONS — Light variant
   Design System v3.0 — burgundy→gold 6-step progression
   ═══════════════════════════════════════════════════ */

#malpraxis-conditions {
    /* 6-step accent gradient: burgundy → gold */
    --accent-1: #800020;
    --accent-2: #862530;
    --accent-3: #8c3c2c;
    --accent-4: #945428;
    --accent-5: #9e6628;
    --accent-6: #a8782e;

    --color-bg: #faf8f6;
    --color-surface: #ffffff;
    --color-surface-hover: #f5f2ef;
    --color-text: #1a1014;
    --color-text-soft: #4a3f44;
    --color-gold: #a8782e;
    --color-gold-light: #c9a96e;
    --color-primary: #800020;

    --shadow-card: 0 2px 10px rgba(26, 16, 20, 0.06);
    --shadow-card-hover: 0 8px 28px rgba(26, 16, 20, 0.11);
    --shadow-button: 0 6px 22px rgba(128, 0, 32, 0.30);
    --shadow-button-hover: 0 8px 28px rgba(128, 0, 32, 0.38);
    --border-radius: 12px;
    --spacing-sm: 0.9375rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 1.875rem;
    --spacing-xl: 2.25rem;
    --spacing-2xl: 3.125rem;
    --spacing-3xl: 4.375rem;

    font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: var(--spacing-3xl) auto;
    max-width: 1100px;
    padding: 0 var(--spacing-sm);
    text-align: center;
    position: relative;
}

/* ── condition cards ── */

.condition-card {
    background: var(--color-surface);
    padding: var(--spacing-xl) 2.5rem var(--spacing-xl) calc(2.5rem + 4px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin: var(--spacing-lg) auto;
    text-align: left;
    transition: transform 0.20s cubic-bezier(.4, 0, .2, 1),
                box-shadow 0.20s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid rgba(128, 0, 32, 0.06);
    position: relative;
    overflow: hidden;
}

/* top accent bar — 3px gradient strip, varies per card */
.condition-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    opacity: 0.55;
    transition: opacity 0.20s cubic-bezier(.4, 0, .2, 1);
}

/* left accent bar — 4px, reveal on hover */
.condition-card::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    bottom: 0;
    width: 4px;
    opacity: 0.25;
    transition: opacity 0.20s cubic-bezier(.4, 0, .2, 1);
}

.condition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.condition-card:hover::before {
    opacity: 1;
}

.condition-card:hover::after {
    opacity: 0.60;
}

/* ── per-condition accent mapping ── */

.condition-1::before { background: linear-gradient(to right, var(--accent-1), var(--color-gold-light), transparent); }
.condition-1::after  { background: linear-gradient(to bottom, var(--accent-1), var(--color-gold-light)); }

.condition-2::before { background: linear-gradient(to right, var(--accent-2), var(--color-gold-light), transparent); }
.condition-2::after  { background: linear-gradient(to bottom, var(--accent-2), var(--color-gold-light)); }

.condition-3::before { background: linear-gradient(to right, var(--accent-3), var(--color-gold-light), transparent); }
.condition-3::after  { background: linear-gradient(to bottom, var(--accent-3), var(--color-gold-light)); }

.condition-4::before { background: linear-gradient(to right, var(--accent-4), var(--color-gold-light), transparent); }
.condition-4::after  { background: linear-gradient(to bottom, var(--accent-4), var(--color-gold-light)); }

.condition-5::before { background: linear-gradient(to right, var(--accent-5), var(--color-gold-light), transparent); }
.condition-5::after  { background: linear-gradient(to bottom, var(--accent-5), var(--color-gold-light)); }

.condition-6::before { background: linear-gradient(to right, var(--accent-6), var(--color-gold-light), transparent); }
.condition-6::after  { background: linear-gradient(to bottom, var(--accent-6), var(--color-gold-light)); }

/* ── h3 — Roboto Slab 300 + accent color per card ── */

.condition-card h3 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 0 0 var(--spacing-md);
    position: relative;
    padding-bottom: 0.75rem;
}

/* gold micro-separator under h3 */
.condition-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--color-gold), transparent);
}

.condition-1 h3 { color: var(--accent-1); }
.condition-2 h3 { color: var(--accent-2); }
.condition-3 h3 { color: var(--accent-3); }
.condition-4 h3 { color: var(--accent-4); }
.condition-5 h3 { color: var(--accent-5); }
.condition-6 h3 { color: var(--accent-6); }

/* ── paragraph text ── */

.condition-card p {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    margin: 0;
}

/* ── arrows — burgundy/gold tint ── */

.condition-arrow {
    display: block;
    margin: 1.75rem auto;
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.25;
    filter: sepia(1) saturate(3) hue-rotate(-15deg) brightness(0.55);
    position: relative;
}

/* ── CTA button — burgundy gradient + gold glow ── */

.condition-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), #5a0016);
    color: #ede4d8;
    font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    padding: 1rem 2.75rem;
    border-radius: 7px;
    text-decoration: none;
    box-shadow: var(--shadow-button);
    transition: transform 0.20s cubic-bezier(.4, 0, .2, 1),
                box-shadow 0.20s cubic-bezier(.4, 0, .2, 1),
                background 0.20s cubic-bezier(.4, 0, .2, 1);
    margin-top: var(--spacing-2xl);
}

.condition-button:hover {
    background: linear-gradient(135deg, #9a0030, var(--color-primary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-hover),
                0 0 20px rgba(128, 0, 32, 0.12);
}

/* ═══════════════════════════════════════════════════
   MOBILE — glassmorphism
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── cards → glass ── */
    .condition-card {
        padding: 1.75rem 1.375rem 1.75rem calc(1.375rem + 4px);
        margin: 1.125rem auto;
        border-radius: var(--border-radius);
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.40);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.50);
    }

    .condition-card:hover {
        transform: none;
    }

    /* accent bars — softer on glass */
    .condition-card::before {
        opacity: 0.40;
    }

    .condition-card::after {
        opacity: 0.18;
    }

    /* text stays dark — already readable on glass */
    .condition-card h3 {
        font-size: 1.2rem;
    }

    .condition-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        color: #4a3f44;
    }

    /* arrows — adjust for light glass bg */
    .condition-arrow {
        width: 2.75rem;
        height: 2.75rem;
        margin: 1.25rem auto;
        opacity: 0.30;
    }

    /* CTA → glass burgundy */
    .condition-button {
        font-size: 1.05rem;
        padding: 0.9rem 2rem;
        background: rgba(128, 0, 32, 0.85);
        backdrop-filter: blur(12px) saturate(140%);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        box-shadow:
            0 6px 24px rgba(128, 0, 32, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .condition-button:hover {
        transform: none;
        background: rgba(128, 0, 32, 0.90);
    }
}