/* ============================================================
   CharacterVault — Main Stylesheet
   Theme: "Storybook Archive" — deep ink-violet background,
   warm gold accents, serif display type for character names.
   All colors pull from CSS variables so the admin panel's
   color picker can override them live (see :root below,
   which is echoed dynamically from PHP).
   ============================================================ */

:root {
    --color-primary: #6B21A8;
    --color-secondary: #F59E0B;
    --color-background: #13111C;
    --color-surface: #1E1B2E;
    --color-text: #F4F0FA;
    --color-text-muted: #A89FC2;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --color-surface-2: #262236;
    --color-border: #332D49;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-glow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 8px 24px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-background);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(107, 33, 168, 0.35), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(245, 158, 11, 0.08), transparent);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
}
.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1180px;
    margin: 0 auto;
    gap: 24px;
}
.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.logo .mark {
    color: var(--color-secondary);
}
.logo-img {
    height: 38px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-secondary); }

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 9px 16px;
    min-width: 220px;
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: 14px;
    width: 100%;
    font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--color-text-muted); }
.search-box svg { flex-shrink: 0; opacity: 0.6; }

.mobile-toggle { display: none; background: none; border: none; color: var(--color-text); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    padding: 88px 24px 64px;
    text-align: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}
.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    max-width: 820px;
    margin: 0 auto 22px;
}
.hero h1 .accent { color: var(--color-secondary); font-style: italic; }
.hero p {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--color-text-muted);
    font-size: 17px;
}
.hero-search {
    max-width: 560px;
    margin: 0 auto 40px;
}
.hero-search .search-box { width: 100%; padding: 14px 22px; min-width: unset; }
.hero-search .search-box input { font-size: 16px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hero-stat .num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary);
}
.hero-stat .label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ---------- Section Headers ---------- */
.section { padding: 60px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 30px; margin-top: 6px; }
.section-head p { color: var(--color-text-muted); margin: 0; font-size: 14.5px; }
.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ---------- Character Card ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}
.char-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.char-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}
.char-card .rank {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(19,17,28,0.85);
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 2;
    border: 1px solid var(--color-border);
}
.char-card .thumb {
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
    overflow: hidden;
    position: relative;
}
.char-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.char-card .body { padding: 14px 16px 16px; }
.char-card .name {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.char-card .meta {
    font-size: 12.5px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.char-card .meta .sep { opacity: 0.5; }

/* ---------- Pill / Tag ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.pill.accent { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); color: var(--color-secondary); }

/* ---------- Category Grid ---------- */
.cat-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.cat-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.cat-tab.active, .cat-tab:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.cat-card:hover { border-color: var(--color-secondary); transform: translateY(-3px); }
.cat-card .icon { font-size: 32px; margin-bottom: 10px; }
.cat-card .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.cat-card .count { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 56px 0 28px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-family: var(--font-body);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { font-size: 14px; color: var(--color-text-muted); }
.footer-grid ul a:hover { color: var(--color-secondary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-secondary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
}
.btn-primary { background: var(--color-secondary); color: #1a1409; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* ---------- Profile Page — Premium Redesign ---------- */

/* Hero Banner */
.profile-banner {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    contain: layout;
}
.profile-banner-bg {
    position: absolute;
    inset: -20px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    -webkit-filter: blur(18px) brightness(0.55) saturate(1.4);
    filter: blur(18px) brightness(0.55) saturate(1.4);
    transform: scale(1.12);
    z-index: 0;
    will-change: filter;
}
.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.5) 60%,
        var(--color-background) 100%
    );
    z-index: 1;
}
.profile-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: flex-end;
}
.profile-banner-image {
    width: 220px;
    height: 290px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    flex-shrink: 0;
    margin-bottom: -40px;
    background: var(--color-surface);
}
.profile-banner-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.profile-banner-info {
    padding-bottom: 24px;
    color: #fff;
}
.profile-banner-category {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.profile-banner-category a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    text-decoration: none;
    opacity: 0.9;
}
.profile-banner-category a:hover { opacity: 1; }
.profile-banner-category span { color: rgba(255,255,255,0.3); }
.profile-banner-name {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}
.profile-banner-source {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    font-weight: 500;
}
.profile-banner-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}
.profile-stat-badge svg { opacity: 0.8; }
.profile-banner-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.pill-banner {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}
.pill-banner.accent {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #1a1409;
}

/* Profile Body — 80/20 layout */
.profile-page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}
.profile-main { min-width: 0; }

/* Section titles */
.profile-section { margin-bottom: 40px; }
.profile-section-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bio text */
.profile-bio-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text);
}

/* Fun Facts */
.fun-facts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}
.fun-facts-list li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.fun-fact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: border-color 0.15s;
}
.fun-fact-item:hover { border-color: var(--color-secondary); }
.fun-fact-num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0.7;
    flex-shrink: 0;
    min-width: 28px;
    line-height: 1.3;
}
.fun-fact-text { font-size: 15px; line-height: 1.65; color: var(--color-text); padding-top: 2px; }

/* Related grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

/* ---- SIDEBAR ---- */
.profile-sidebar-panel {
    position: sticky;
    top: 80px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.sidebar-chars { display: flex; flex-direction: column; gap: 10px; }
.sidebar-char-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
    text-decoration: none;
}
.sidebar-char-item:hover { background: var(--color-surface-2); }
.sidebar-char-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-surface-2);
    border: 2px solid var(--color-border);
}
.sidebar-char-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-char-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.sidebar-char-source {
    font-size: 11.5px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 860px) {
    .profile-page-wrap { grid-template-columns: 1fr; }
    .profile-sidebar-panel { display: none; }
}
.profile-bio h3, .fun-facts h3, .related h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-text-muted); font-family: var(--font-body); margin-bottom: 14px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}
.info-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.info-item .label { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-item .value { font-size: 16px; font-weight: 600; font-family: var(--font-display); }
.fun-facts ul { padding-left: 20px; margin: 0 0 32px; color: var(--color-text); }
.fun-facts li { margin-bottom: 10px; line-height: 1.6; }

/* ---------- Forms (used in admin too) ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--color-text-muted); }
.form-control {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: var(--font-body);
}
.form-control:focus { outline: none; border-color: var(--color-secondary); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Page Content (rich text from admin Pages editor) ---------- */
.page-content {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
}
.page-content h1, .page-content h2, .page-content h3 {
    font-family: var(--font-display);
    margin: 28px 0 12px;
}
.page-content h3 { font-size: 19px; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 22px; }
.page-content a { color: var(--color-secondary); text-decoration: underline; }
.page-content img { border-radius: var(--radius-sm); margin: 16px 0; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}
.empty-state .icon { font-size: 44px; margin-bottom: 16px; opacity: 0.6; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px; font-weight: 600;
}
.pagination a:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.pagination .current { background: var(--color-secondary); color: #1a1409; border-color: var(--color-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-image { max-width: 240px; margin: 0 auto; }
    .info-grid { grid-template-columns: 1fr; }
    /* Hide search bar on mobile — use hero search instead */
    .nav-wrap .search-box { display: none !important; }
    /* Make hamburger more visible */
    .mobile-toggle {
        font-size: 26px;
        padding: 4px 10px;
        color: var(--color-text);
        margin-left: auto;
    }
    /* Hero text smaller on mobile */
    .hero h1 { font-size: 28px !important; line-height: 1.2; }
    .hero p { font-size: 14px; }
    /* Nav wrap spacing */
    .nav-wrap { padding: 0 16px; gap: 8px; }
    /* Card grid 2 columns on tablet */
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    /* Profile banner */
    .profile-banner-content { grid-template-columns: 1fr; }
    .profile-banner-image { width: 140px; height: 185px; margin-bottom: -30px; }
    .profile-banner-name { font-size: 28px; }
    /* Profile body */
    .profile-page-wrap { grid-template-columns: 1fr; padding: 24px 16px 40px; }
    .profile-sidebar-panel { display: none; }
    /* Compare */
    .compare-search-grid { grid-template-columns: 1fr; }
    .compare-vs { display: none; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 28px; }
    .form-row { grid-template-columns: 1fr; }
    /* Cards single column on phone */
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    /* Hero badge wrap */
    .hero-badge { font-size: 12px; padding: 6px 14px; }
}

/* ============================================================
   HERO BACKGROUND IMAGE (admin-uploaded, optional)
   ============================================================ */
.hero.hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-brightness-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-text-backdrop {
    display: none;
}
.hero.hero-with-bg .container {
    position: relative;
    z-index: 2;
}
/* Option A: Strong text shadow — image fully clear */
.hero.hero-with-bg h1 {
    text-shadow:
        2px 2px 4px rgba(0,0,0,1),
        -2px -2px 4px rgba(0,0,0,1),
        0px 0px 20px rgba(0,0,0,1),
        0px 0px 40px rgba(0,0,0,0.9);
    color: #ffffff;
}
.hero.hero-with-bg p {
    text-shadow:
        1px 1px 3px rgba(0,0,0,1),
        -1px -1px 3px rgba(0,0,0,1),
        0px 0px 15px rgba(0,0,0,1),
        0px 0px 30px rgba(0,0,0,0.9);
    color: #ffffff;
}
/* Option B: Dark semi-transparent box behind text */
.hero.hero-text-box h1 {
    text-shadow: none;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
    color: #ffffff;
}
.hero.hero-text-box p {
    text-shadow: none;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 6px;
    display: inline-block;
    color: #ffffff;
}

/* ============================================================
   HEART / LIKE SYSTEM
   ============================================================ */
.heart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease;
}
.heart-btn:hover { border-color: #F472B6; transform: translateY(-1px); }
.heart-btn:active { transform: translateY(0) scale(0.97); }
.heart-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 2;
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.heart-btn.liked { cursor: default; border-color: #F472B6; background: rgba(244,114,182,0.1); }
.heart-btn.liked .heart-icon { fill: #F472B6; stroke: #F472B6; animation: heartPop 0.4s ease; }
.heart-btn.liked:hover { transform: none; }
.heart-count { font-size: 14px; font-weight: 700; color: var(--color-text); min-width: 14px; text-align: left; }

@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ---------- Like Modal ---------- */
.like-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 10, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    padding: 20px;
}
.like-modal-overlay.open { opacity: 1; visibility: visible; }
.like-modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 380px;
    width: 100%;
    position: relative;
    text-align: center;
}
.like-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
}
.like-modal-icon { font-size: 36px; margin-bottom: 8px; }
.like-modal h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.like-modal p { color: var(--color-text-muted); font-size: 14px; margin-bottom: 22px; }
.like-modal .form-group { text-align: left; }

/* Powers & Abilities — single box with title inside */
.powers-single-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color 0.15s;
    cursor: default;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.powers-single-box:hover { border-color: var(--color-secondary); }
.powers-inner-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
}
.powers-inner-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
}

/* Icon Info Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: var(--color-secondary); transform: translateY(-2px); }
.info-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color-secondary);
    opacity: 0;
    transition: opacity 0.2s;
}
.info-card:hover::before { opacity: 1; }
.info-card-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.info-card-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}
.info-card-value {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

/* Compare Button */
.btn-compare {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--font-body);
    text-decoration: none;
}
.btn-compare:hover {
    border-color: var(--color-secondary);
    background: rgba(245,158,11,0.12);
    color: var(--color-secondary);
}

/* Compare Page */
.compare-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px 60px; }
.compare-search-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 40px; }
.compare-vs { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-secondary); text-align: center; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.compare-table th { padding: 16px; text-align: center; font-family: var(--font-display); font-size: 18px; background: var(--color-surface); border-radius: var(--radius-md); }
.compare-table th img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 8px; border: 2px solid var(--color-border); }
.compare-table td { padding: 14px 18px; background: var(--color-surface); border-top: 1px solid var(--color-border); font-size: 14.5px; text-align: center; }
.compare-table td:first-child { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); width: 130px; background: transparent; border-top: none; }
.compare-table tr td:nth-child(2) { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.compare-table tr td:nth-child(3) { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.compare-winner { color: var(--color-secondary); font-weight: 700; }
.compare-winner::after { content: ' 🏆'; }

/* Mobile */
@media (max-width: 760px) {
    .profile-banner-content { grid-template-columns: 1fr; }
    .profile-banner-image { width: 140px; height: 185px; margin-bottom: -30px; }
    .compare-search-grid { grid-template-columns: 1fr; }
    .compare-vs { display: none; }
}
