/* ==========================================================================
   Metahuman Comparison Grid
   ========================================================================== */

/* --- Reset / shared --- */
.mh-ct,
.mh-bd {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
}
.mh-ct *, .mh-ct *::before, .mh-ct *::after,
.mh-bd *, .mh-bd *::before, .mh-bd *::after {
    box-sizing: border-box;
}

/* --- Titles (shared) --- */
.mh-ct__title,
.mh-bd__title {
    text-align: center;
    margin-bottom: 2rem;
}
.mh-ct__title h2,
.mh-bd__title h2 {
    font-family: 'Cinzel', 'Plus Jakarta Sans', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
}
.mh-ct__title-divider,
.mh-bd__title-divider {
    width: 60px;
    height: 2px;
    margin: 0 auto;
    border-radius: 1px;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.mh-ct {
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

/* CSS-grid table */
.mh-ct__table {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) repeat(var(--mh-ct-cols), 1fr);
    width: 100%;
}

/* Header + body use display:contents so children join the grid */
.mh-ct__header,
.mh-ct__body,
.mh-ct__row { display: contents; }

/* Corner (empty top-left) */
.mh-ct__corner { padding: 1rem; }

/* Column headers */
.mh-ct__col {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.mh-ct__badge {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.mh-ct__col-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
.mh-ct__col-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.mh-ct__col-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}
.mh-ct__col-subtitle {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.65;
}

/* Section divider */
.mh-ct__section {
    grid-column: 1 / -1;
    padding: 0.75rem 1rem;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Feature label */
.mh-ct__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.mh-ct__feature-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mh-ct__feature-icon--circle  { width: 30px; height: 30px; border-radius: 50%; }
.mh-ct__feature-icon--square  { width: 30px; height: 30px; border-radius: 0; }
.mh-ct__feature-icon--rounded { width: 30px; height: 30px; border-radius: 6px; }

/* Value cells */
.mh-ct__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Cell icons */
.mh-ct__icon-check { font-size: 1rem; color: #2ebb77; }
.mh-ct__icon-cross { font-size: 1rem; color: #d82329; opacity: 0.65; }
.mh-ct__icon-dash  { font-size: 0.75rem; opacity: 0.3; }
.mh-ct__icon-warn  { font-size: 1rem; color: #f3bb2e; }

.mh-ct__stars { display: inline-flex; gap: 2px; font-size: 0.75rem; }
.mh-ct__star--filled { color: #f3bb2e; }
.mh-ct__star--empty  { opacity: 0.25; }

.mh-ct__cell-text { font-size: 0.85rem; font-weight: 500; }

.mh-ct__cell-combo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.mh-ct__cell-combo .mh-ct__icon-check,
.mh-ct__cell-combo .mh-ct__icon-cross {
    font-size: 0.8rem;
}

/* ==========================================================================
   BREAKDOWN GRID
   ========================================================================== */
.mh-bd {
    padding: 2rem;
    border-radius: 12px;
}
.mh-bd__grid {
    display: grid;
    gap: 1.5rem;
}
.mh-bd__grid--2 { grid-template-columns: repeat(2, 1fr); }
.mh-bd__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mh-bd__grid--4 { grid-template-columns: repeat(4, 1fr); }

.mh-bd__card {
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mh-bd__card:hover { transform: translateY(-4px); }
.mh-bd--no-hover .mh-bd__card:hover { transform: none; }

.mh-bd__badge {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

/* Card head */
.mh-bd__card-head {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}
.mh-bd__card-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}
.mh-bd__card-icon {
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
    color: var(--accent, #f3bb2e);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mh-bd__card-icon--none    { background: none; }
.mh-bd__card-icon--circle  { width: 52px; height: 52px; border-radius: 50%; }
.mh-bd__card-icon--square  { width: 52px; height: 52px; border-radius: 0; }
.mh-bd__card-icon--rounded { width: 52px; height: 52px; border-radius: 10px; }
.mh-bd__card-icon--hexagon {
    width: 56px;
    height: 56px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.mh-bd__card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.mh-bd__card-subtitle {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.65;
}

/* Items list */
.mh-bd__items {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.mh-bd__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    line-height: 1.4;
}
.mh-bd__item--heading {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 1rem;
    margin-bottom: 0.15rem;
}
.mh-bd__item i {
    flex-shrink: 0;
    margin-top: 0.18rem;
    font-size: 0.8rem;
}
.mh-bd__icon-positive { color: #2ebb77; }
.mh-bd__icon-negative { color: #d82329; opacity: 0.7; }
.mh-bd__icon-neutral  { opacity: 0.35; }

/* Button */
.mh-bd__card-footer { margin-top: 1.5rem; text-align: center; }
.mh-bd__btn {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--accent, #f3bb2e);
    color: var(--accent, #f3bb2e);
    background: transparent;
}
.mh-bd__btn:hover {
    background: var(--accent, #f3bb2e);
    color: #0a0e1a;
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */
.mh-ct--dark,
.mh-bd--dark {
    background: #0a0e1a;
    color: #e0ddd4;
    border: 1px solid rgba(243, 187, 46, 0.15);
}
.mh-ct--dark .mh-ct__title h2,
.mh-bd--dark .mh-bd__title h2 {
    color: #f3bb2e;
    text-shadow: 0 0 20px rgba(243, 187, 46, 0.25);
}
.mh-ct--dark .mh-ct__title-divider,
.mh-bd--dark .mh-bd__title-divider {
    background: linear-gradient(90deg, transparent, #f3bb2e, transparent);
}

/* Dark — Table */
.mh-ct--dark .mh-ct__corner {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(243, 187, 46, 0.15);
}
.mh-ct--dark .mh-ct__col {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(243, 187, 46, 0.15);
    color: #e0ddd4;
}
.mh-ct--dark .mh-ct__col--highlight {
    background: rgba(243, 187, 46, 0.06);
    box-shadow: inset 0 2px 0 var(--accent, #f3bb2e);
}
.mh-ct--dark .mh-ct__badge {
    background: var(--accent, #f3bb2e);
    color: #0a0e1a;
}
.mh-ct--dark .mh-ct__col-title {
    color: var(--accent, #f3bb2e);
}
.mh-ct--dark .mh-ct__col-icon {
    color: var(--accent, #f3bb2e);
    background: rgba(243, 187, 46, 0.1);
}
.mh-ct--dark .mh-ct__section {
    background: rgba(243, 187, 46, 0.06);
    color: #f3bb2e;
    border-top: 1px solid rgba(243, 187, 46, 0.12);
    border-bottom: 1px solid rgba(243, 187, 46, 0.08);
}
.mh-ct--dark .mh-ct__feature {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mh-ct--dark .mh-ct__feature-icon {
    color: var(--accent, #f3bb2e);
    background: rgba(243, 187, 46, 0.1);
}
.mh-ct--dark .mh-ct__cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mh-ct--dark .mh-ct__cell--in-highlight {
    background: rgba(243, 187, 46, 0.03);
}
.mh-ct--dark.mh-ct--striped .mh-ct__row:nth-child(even) .mh-ct__feature,
.mh-ct--dark.mh-ct--striped .mh-ct__row:nth-child(even) .mh-ct__cell {
    background: rgba(255, 255, 255, 0.02);
}
.mh-ct--dark.mh-ct--striped .mh-ct__row:nth-child(even) .mh-ct__cell--in-highlight {
    background: rgba(243, 187, 46, 0.05);
}

/* Dark — Breakdown */
.mh-bd--dark .mh-bd__card {
    background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.mh-bd--dark.mh-bd--bordered .mh-bd__card {
    border-color: rgba(255, 255, 255, 0.08);
}
.mh-bd--dark.mh-bd--elevated .mh-bd__card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}
.mh-bd--dark.mh-bd--flat .mh-bd__card {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.03);
}
.mh-bd--dark .mh-bd__card--highlight {
    border-color: var(--accent, #f3bb2e);
    box-shadow: 0 0 20px rgba(243, 187, 46, 0.1);
}
.mh-bd--dark .mh-bd__badge {
    background: var(--accent, #f3bb2e);
    color: #0a0e1a;
}
.mh-bd--dark .mh-bd__card-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mh-bd--dark .mh-bd__card-icon--circle,
.mh-bd--dark .mh-bd__card-icon--square,
.mh-bd--dark .mh-bd__card-icon--rounded,
.mh-bd--dark .mh-bd__card-icon--hexagon {
    background: rgba(255, 255, 255, 0.05);
}
.mh-bd--dark .mh-bd__card-title {
    color: var(--accent, #f3bb2e);
}
.mh-bd--dark .mh-bd__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.mh-bd--dark .mh-bd__item--heading {
    color: rgba(243, 187, 46, 0.7);
    border-bottom: none;
}
.mh-bd--dark .mh-bd__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.mh-bd--dark .mh-bd__card--highlight:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(243, 187, 46, 0.15);
}

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
.mh-ct--light,
.mh-bd--light {
    background: #fff;
    color: #7e7e7e;
    border: 1px solid #eee;
}
.mh-ct--light .mh-ct__title h2,
.mh-bd--light .mh-bd__title h2 {
    color: #000;
}
.mh-ct--light .mh-ct__title-divider,
.mh-bd--light .mh-bd__title-divider {
    background: #eee;
}

/* Light — Table */
.mh-ct--light .mh-ct__corner {
    background: #f7f8f9;
    border-bottom: 1px solid #eee;
}
.mh-ct--light .mh-ct__col {
    background: #f7f8f9;
    border-bottom: 2px solid #eee;
    color: #000;
}
.mh-ct--light .mh-ct__col--highlight {
    background: #fefcf5;
    border-bottom-color: var(--accent, #f3bb2e);
}
.mh-ct--light .mh-ct__badge {
    background: var(--accent, #f3bb2e);
    color: #fff;
}
.mh-ct--light .mh-ct__col-title {
    color: #000;
}
.mh-ct--light .mh-ct__col-icon {
    color: var(--accent, #f3bb2e);
    background: rgba(243, 187, 46, 0.08);
}
.mh-ct--light .mh-ct__section {
    background: #f7f8f9;
    color: #000;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.mh-ct--light .mh-ct__feature {
    color: #000;
    border-bottom: 1px solid #f0f0f0;
}
.mh-ct--light .mh-ct__feature-icon {
    color: var(--accent, #2ebb77);
    background: rgba(46, 187, 119, 0.08);
}
.mh-ct--light .mh-ct__cell {
    border-bottom: 1px solid #f0f0f0;
}
.mh-ct--light .mh-ct__cell--in-highlight {
    background: rgba(243, 187, 46, 0.03);
}
.mh-ct--light.mh-ct--striped .mh-ct__row:nth-child(even) .mh-ct__feature,
.mh-ct--light.mh-ct--striped .mh-ct__row:nth-child(even) .mh-ct__cell {
    background: #fafbfc;
}

/* Light — Breakdown */
.mh-bd--light .mh-bd__card {
    background: #fff;
    border: 1px solid #eee;
}
.mh-bd--light.mh-bd--elevated .mh-bd__card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}
.mh-bd--light.mh-bd--flat .mh-bd__card {
    border-color: transparent;
    background: #f7f8f9;
}
.mh-bd--light .mh-bd__card--highlight {
    border-color: var(--accent, #f3bb2e);
    box-shadow: 0 4px 16px rgba(243, 187, 46, 0.12);
}
.mh-bd--light .mh-bd__badge {
    background: var(--accent, #f3bb2e);
    color: #fff;
}
.mh-bd--light .mh-bd__card-head {
    border-bottom: 1px solid #eee;
}
.mh-bd--light .mh-bd__card-icon--circle,
.mh-bd--light .mh-bd__card-icon--square,
.mh-bd--light .mh-bd__card-icon--rounded,
.mh-bd--light .mh-bd__card-icon--hexagon {
    background: rgba(0, 0, 0, 0.04);
}
.mh-bd--light .mh-bd__card-title {
    color: #000;
}
.mh-bd--light .mh-bd__item {
    color: #7e7e7e;
    border-bottom: 1px solid #f5f5f5;
}
.mh-bd--light .mh-bd__item--heading {
    color: #000;
    border-bottom: none;
}
.mh-bd--light .mh-bd__card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
    .mh-ct { padding: 1.25rem; }
    .mh-ct__table {
        grid-template-columns: minmax(120px, 1fr) repeat(var(--mh-ct-cols), 1fr);
    }
    .mh-ct__feature {
        font-size: 0.8rem;
        padding: 0.7rem 0.75rem;
    }
    .mh-ct__cell {
        padding: 0.7rem 0.35rem;
        font-size: 0.8rem;
    }
    .mh-ct__col {
        padding: 1rem 0.5rem;
    }
    .mh-ct__col-title {
        font-size: 0.95rem;
    }
    .mh-bd__grid--3,
    .mh-bd__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mh-ct {
        padding: 1rem;
        overflow-x: auto;
    }
    .mh-ct__table {
        min-width: 500px;
    }
    .mh-ct__title h2,
    .mh-bd__title h2 {
        font-size: 1.35rem;
    }
    .mh-bd__grid--2,
    .mh-bd__grid--3,
    .mh-bd__grid--4 {
        grid-template-columns: 1fr;
    }
    .mh-bd { padding: 1rem; }
    .mh-bd__card { padding: 1.25rem; }
}
