/* ═══════════════════════════════════════════════════
   MODULE 10 · MCX COMPARISON — Dark variant
   Design System v3.0 — gold (pro) vs burgundy (con)
   ═══════════════════════════════════════════════════ */

.mcx-module {
    --pro: #c9a96e;
    --pro-dark: #a8782e;
    --pro-glow: rgba(168, 120, 46, 0.12);
    --pro-glow-strong: rgba(168, 120, 46, 0.22);
    --con: #b04060;
    --con-dark: #800020;
    --con-glow: rgba(128, 0, 32, 0.12);
    --con-glow-strong: rgba(128, 0, 32, 0.22);
    --surface: #0a0305;
    --surface-2: #120508;
    --surface-3: #180a0e;
    --border: rgba(168, 120, 46, 0.06);
    --border-strong: rgba(168, 120, 46, 0.10);
    --text: #ede4d8;
    --text-mid: rgba(237, 228, 216, 0.75);
    --text-dim: rgba(237, 228, 216, 0.50);
    --gold: #a8782e;
    --gold-light: #c9a96e;
    --burg: #800020;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    font-family: "Roboto Condensed", -apple-system, sans-serif;
    margin: 3.5rem auto;
    max-width: 1100px;
    padding: 3rem 2.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 0 0 1px rgba(168, 120, 46, 0.03),
        0 32px 80px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* noise texture */
.mcx-module::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* burgundy glow blob — centred */
.mcx-module::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 50%;
    width: 60%;
    height: 55%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(128, 0, 32, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── desktop grid ── */

.mcx-desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-strong);
}

/* column labels — gold / burgundy */
.mcx-desktop-grid::before {
    content: '✓  Cu avocat specializat';
    position: absolute;
    top: -2.75rem;
    left: 0;
    width: calc(50% - 0.5rem);
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 0.70rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    padding-left: 0.25rem;
}

.mcx-desktop-grid::after {
    content: '✕  Fără reprezentare juridică';
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: calc(50% - 0.5rem);
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 0.70rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--con);
    text-align: right;
    padding-right: 0.25rem;
}

/* ── cards ── */

.mcx-item { position: relative; }

.mcx-card {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.20s var(--ease),
                box-shadow 0.20s var(--ease),
                background 0.20s var(--ease),
                border-color 0.20s var(--ease);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ── PRO cards — gold accent ── */

/* top bar: gold→transparent */
.mcx-item.pro .mcx-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), transparent);
    border-radius: 12px 12px 0 0;
    opacity: 0.50;
    transition: opacity 0.20s var(--ease);
}

/* left accent bar */
.mcx-item.pro .mcx-card::after {
    content: "";
    position: absolute;
    top: 3px; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
    opacity: 0.25;
    transition: opacity 0.20s var(--ease);
}

/* hover: gold glow */
.mcx-item.pro .mcx-card:hover {
    background: var(--surface-3);
    border-color: rgba(168, 120, 46, 0.22);
    box-shadow:
        0 0 0 1px rgba(168, 120, 46, 0.10),
        0 8px 32px rgba(168, 120, 46, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.30);
    transform: translateY(-3px);
}

/* ── CON cards — burgundy accent ── */

/* top bar: transparent→burg */
.mcx-item.con .mcx-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--burg), var(--con));
    border-radius: 12px 12px 0 0;
    opacity: 0.50;
    transition: opacity 0.20s var(--ease);
}

/* right accent bar (mirrored) */
.mcx-item.con .mcx-card::after {
    content: "";
    position: absolute;
    top: 3px; right: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--burg), var(--con));
    opacity: 0.25;
    transition: opacity 0.20s var(--ease);
}

/* hover: burg glow */
.mcx-item.con .mcx-card:hover {
    background: var(--surface-3);
    border-color: rgba(128, 0, 32, 0.22);
    box-shadow:
        0 0 0 1px rgba(128, 0, 32, 0.10),
        0 8px 32px rgba(128, 0, 32, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.30);
    transform: translateY(-3px);
}

/* bars intensify on hover */
.mcx-item.pro .mcx-card:hover::before,
.mcx-item.con .mcx-card:hover::before { opacity: 1; }

.mcx-item.pro .mcx-card:hover::after,
.mcx-item.con .mcx-card:hover::after { opacity: 0.60; }

/* ── header — Roboto Slab 300 ── */

.mcx-header {
    padding: 1.25rem 1.375rem 0.875rem;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    position: relative;
}

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

.mcx-item.con .mcx-header::after {
    left: auto;
    right: 1.375rem;
    background: linear-gradient(to left, var(--burg), transparent);
}

/* ── icon badges — medallion style ── */

.mcx-item.pro .mcx-header::before {
    content: "";
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(168, 120, 46, 0.30), rgba(168, 120, 46, 0.08));
    border: 1px solid rgba(168, 120, 46, 0.30);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(168, 120, 46, 0.12);
}

.mcx-item.con .mcx-header::before {
    content: "";
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(128, 0, 32, 0.30), rgba(128, 0, 32, 0.08));
    border: 1px solid rgba(128, 0, 32, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b04060' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(128, 0, 32, 0.12);
}

/* ── content text ── */

.mcx-content {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-dim);
    margin: 0;
    font-weight: 400;
    padding: 1rem 1.375rem 1.375rem 1.375rem;
    flex: 1;
    font-family: "Roboto Condensed", sans-serif;
    transition: color 0.20s var(--ease);
}

.mcx-card:hover .mcx-content {
    color: var(--text-mid);
}

/* ── mobile ── */

.mcx-mobile-grid { display: none; }

/* ═══════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* wrapper → transparent, no dark bg */
    .mcx-module {
        padding: 2rem 1.125rem;
        border-radius: 12px;
        margin: 1.5rem auto;
        overflow: visible;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .mcx-module::before { display: none; }
    .mcx-module::after  { display: none; }

    .mcx-desktop-grid { display: none; }
    .mcx-mobile-grid { display: block; }

    .mcx-mobile-grid .mcx-item { margin-bottom: 0.75rem; }
    .mcx-mobile-grid .mcx-item.con { margin-bottom: 1.75rem; }

    /* ── glass cards ── */

    .mcx-card {
        border-radius: 12px;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .mcx-mobile-grid .mcx-item.pro .mcx-card,
    .mcx-mobile-grid .mcx-item.con .mcx-card {
        background: rgba(255, 255, 255, 0.15);
        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);
    }

    /* hide dark-mode accent bars on mobile glass */
    .mcx-mobile-grid .mcx-item.pro .mcx-card::before,
    .mcx-mobile-grid .mcx-item.con .mcx-card::before,
    .mcx-mobile-grid .mcx-item.pro .mcx-card::after,
    .mcx-mobile-grid .mcx-item.con .mcx-card::after {
        display: none;
    }

    /* ── header → dark text, coloured accent ── */

    .mcx-mobile-grid .mcx-header {
        font-size: 0.98rem;
        color: #1a1014;
        border-bottom: 1px solid rgba(128, 0, 32, 0.10);
    }

    .mcx-mobile-grid .mcx-item.pro .mcx-header {
        color: #1a1014;
    }

    .mcx-mobile-grid .mcx-item.con .mcx-header {
        color: #1a1014;
    }

    /* micro-separator — visible on light glass */
    .mcx-mobile-grid .mcx-header::after {
        background: linear-gradient(to right, var(--gold), transparent);
        opacity: 0.60;
    }

    .mcx-mobile-grid .mcx-item.con .mcx-header::after {
        background: linear-gradient(to left, var(--burg), transparent);
        opacity: 0.60;
    }

    /* ── icon badges — solid for contrast ── */

    .mcx-mobile-grid .mcx-item.pro .mcx-header::before {
        background: rgba(168, 120, 46, 0.12);
        border: 1px solid rgba(168, 120, 46, 0.40);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8782e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
        background-size: 60%;
        background-repeat: no-repeat;
        background-position: center;
        box-shadow: none;
    }

    .mcx-mobile-grid .mcx-item.con .mcx-header::before {
        background: rgba(128, 0, 32, 0.10);
        border: 1px solid rgba(128, 0, 32, 0.40);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23800020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
        background-size: 55%;
        background-repeat: no-repeat;
        background-position: center;
        box-shadow: none;
    }

    /* ── content text → dark readable ── */

    .mcx-mobile-grid .mcx-content {
        font-size: 0.95rem;
        color: #4a3f44;
    }

    .mcx-mobile-grid .mcx-card:hover .mcx-content {
        color: #4a3f44;
    }
}