/* ExoticExpansion brand layer, built from the logo (assets/icon.png):
 * a rounded play-button triangle filled lime -> teal -> blue -> violet, with a deep navy inset and light "EE" letters.
 * Loaded after app.css and hallmark-stage.css; redefines both token sets so every page follows the logo.
 * Rules: app/exoticexpansion2/design.md
 */
:root,
html[data-theme="dark"] {
    /* logo hues */
    --logo-lime: #A9EF5B;
    --logo-teal: #34D3A6;
    --logo-blue: #2F74EE;
    --logo-violet: #6B4CEA;
    --logo-navy: #0D1B33;
    --logo-letter: #C6F7E8;
    --logo-grad: linear-gradient(135deg, var(--logo-lime) 0%, var(--logo-teal) 34%, var(--logo-blue) 68%, var(--logo-violet) 100%);
    --logo-grad-soft: linear-gradient(135deg, rgba(169, 239, 91, .14), rgba(52, 211, 166, .10) 40%, rgba(47, 116, 238, .10) 70%, rgba(107, 76, 234, .14));

    /* app.css token names */
    --bg: #060B18;
    --bg-base: var(--bg);
    --bg-elevated: #0A1224;
    --bg-card: #0E172D;
    --bg-hover: #15203D;
    --bg-modal: rgba(6, 11, 24, .94);
    --border: #1C2846;
    --border-light: #2A3961;
    --border-accent: var(--logo-teal);
    --text-primary: #E6EBF7;
    --text-secondary: #B3BED8;
    --text-muted: #7E8AA8;
    --accent-green: var(--logo-lime);
    --accent-teal: var(--logo-teal);
    --accent-blue: var(--logo-blue);
    --accent-purple: var(--logo-violet);
    --accent-green-rgb: 169, 239, 91;
    --accent-teal-rgb: 52, 211, 166;
    --accent-blue-rgb: 47, 116, 238;
    --accent-purple-rgb: 107, 76, 234;
    --brand-green: var(--logo-lime);
    --brand-teal: var(--logo-teal);
    --brand-blue: var(--logo-blue);
    --brand-purple: var(--logo-violet);
    --brand-dark: var(--bg);
    --brand-light: #E6EBF7;
    --accent: var(--logo-teal);
    --accent-hover: #5BE0BB;
    --accent-end: var(--logo-violet);
    --accent-glow: rgba(52, 211, 166, .18);
    --purple-glow: rgba(107, 76, 234, .18);
    --grad: var(--logo-grad);
    --grad-animate: var(--logo-grad);
    --grad-subtle: var(--logo-grad-soft);
    --grad-border: var(--logo-grad);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --font: "Figtree", "Segoe UI", system-ui, sans-serif;
    --font-display: "Sora", "Figtree", "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
    --transition: .2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: .4s cubic-bezier(0.16, 1, 0.3, 1);

    /* hallmark-stage.css token names */
    --font-body: var(--font);
    --color-paper: var(--bg);
    --color-paper-2: var(--bg-card);
    --color-ink: var(--text-primary);
    --color-ink-2: var(--text-muted);
    --color-rule: var(--border);
    --color-accent: var(--logo-teal);
    --color-accent-ink: var(--logo-navy);
    --color-accent-edge: #1FA884;
    --color-accent-hover: #5BE0BB;
    --color-live: var(--logo-lime);
    --color-live-ink: var(--logo-navy);
    --color-focus: var(--logo-teal);
    --radius-card: 16px;

    /* button ink on the light end of the gradient */
    --cta-ink: #08122A;
}

html[data-theme="light"] {
    --bg: #F3F6FC;
    --bg-base: var(--bg);
    --bg-elevated: #E8EEF9;
    --bg-card: #FFFFFF;
    --bg-hover: #E4EAF6;
    --bg-modal: rgba(243, 246, 252, .96);
    --border: #D5DDEE;
    --border-light: #C2CDE4;
    --text-primary: #0B1530;
    --text-secondary: #3D4968;
    --text-muted: #65708E;
    --accent: #1F8F6F;
    --accent-hover: #17785C;
    --brand-dark: #0B1530;
    --brand-light: #F3F6FC;
    --color-paper: var(--bg);
    --color-paper-2: var(--bg-card);
    --color-ink: var(--text-primary);
    --color-ink-2: var(--text-muted);
    --color-rule: var(--border);
    --color-accent: #1F8F6F;
    --color-focus: var(--logo-blue);
}

html, body { overflow-x: clip; background: var(--bg-base); color: var(--text-primary); font-family: var(--font); }
body { font-size: 15px; }
h1, h2, h3, h4,
.section-title, .page-title, .about-title, .talent-hero__title, .agency-hero h1 {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -.025em;
}
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
::selection { background: rgba(52, 211, 166, .35); color: var(--text-primary); }

/* Gradient text: the logo gradient, static. */
.gradient-text,
.talent-hero__title .gradient-text,
.about-title .gradient-text {
    background: var(--logo-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: none;
}
.logo-name { background: none; -webkit-text-fill-color: currentColor; color: var(--text-primary); }

/* Header: navy bar with the logo's gradient as a static 2px signature line. */
.site-header {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}
.site-header::before { background: var(--logo-grad); background-size: 100% 100%; animation: none; height: 2px; }
.logo-icon-img { animation: none; filter: none; border-radius: 0; }
.site-logo:hover .logo-icon-img { transform: translateY(-1px); filter: none; }
.logo-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.logo-tagline { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.search-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; }
.search-wrap:focus-within { border-color: var(--logo-teal); box-shadow: 0 0 0 3px rgba(52, 211, 166, .18); }
.search-input { color: var(--text-primary); }
.search-btn { color: var(--text-secondary); }
.search-btn:hover, .search-btn:focus-visible { color: var(--logo-teal); }

/* Sidebar: active item carries the gradient as a left bar, no glow. */
.sidebar { background: var(--bg); border-right: 1px solid var(--border); }
.nav-item { border-radius: var(--radius-sm); color: var(--text-secondary); transition: background-color var(--transition), color var(--transition); }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active, .nav-item[aria-current="page"] { position: relative; background: var(--bg-card); color: var(--text-primary); box-shadow: none; }
.nav-item.active::before, .nav-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--logo-grad); }
.nav-item.active i, .nav-item[aria-current="page"] i { color: var(--logo-teal); }

/* Buttons: primary is the light end of the logo (lime to teal) with navy ink, like the play button's lit corner. */
a.btn-primary, a.btn-upload, a.btn-accent, a.btn-talent-primary,
button.btn-primary, .btn-primary, .btn-upload, .btn-accent, .btn-talent-primary, .form-submit {
    background: linear-gradient(135deg, var(--logo-lime), var(--logo-teal));
    color: var(--cta-ink);
    -webkit-text-fill-color: var(--cta-ink);
    border: 0;
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: none;
    transition: transform .12s cubic-bezier(0.16, 1, 0.3, 1), filter .2s ease;
}
a.btn-primary i, a.btn-primary span, a.btn-upload i, a.btn-upload span, a.btn-accent i, a.btn-accent span,
a.btn-talent-primary i, a.btn-talent-primary span, .btn-primary i, .btn-upload i { color: var(--cta-ink); -webkit-text-fill-color: var(--cta-ink); }
a.btn-primary:hover, a.btn-upload:hover, a.btn-accent:hover, a.btn-talent-primary:hover,
.btn-primary:hover, .btn-upload:hover, .btn-accent:hover, .btn-talent-primary:hover, .form-submit:hover {
    transform: translateY(-1px); filter: brightness(1.06); background: linear-gradient(135deg, var(--logo-lime), var(--logo-teal)); color: var(--cta-ink);
}
.btn-primary:active, .btn-upload:active, .form-submit:active { transform: none; }
.btn-primary:disabled, .form-submit:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.btn-outline, a.btn-outline, .btn-ghost, a.btn-ghost {
    background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: none;
}
.btn-outline:hover, .btn-ghost:hover { border-color: var(--logo-teal); color: var(--text-primary); background: rgba(52, 211, 166, .06); }
.btn-sub { border-radius: 999px; }
.btn-danger { border-radius: var(--radius); }

/* Cards and media */
.video-card, .influencer-card, .stat-card, .channel-room-card, .auth-card, .file-card, .settings-section, .admin-request-card, .up-next-card {
    border-radius: var(--radius-card);
}
.video-card, .influencer-card, .stat-card, .channel-room-card, .file-card, .settings-section, .admin-request-card {
    background: var(--bg-card); border: 1px solid var(--border); box-shadow: none;
}
.video-card:hover, .influencer-card:hover, .channel-room-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: none; }
.thumb-wrap, .thumb-img, .up-next-thumb, .up-next-thumb-wrap, .dcs-thumb { border-radius: 12px; }
.thumb-duration { font-family: var(--mono); font-size: 11px; background: rgba(6, 11, 24, .85); border-radius: 6px; }
.video-title { font-family: var(--font); font-weight: 600; letter-spacing: -.005em; }
.video-channel-name, .video-stats, .video-meta { color: var(--text-muted); }
.stat-card-value { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.verified-badge { color: var(--logo-teal); }

/* Chips and tabs: active state = logo teal ring */
.category-chip, .channel-tab, .social-pill {
    border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
}
.category-chip:hover, .channel-tab:hover { color: var(--text-primary); border-color: var(--border-light); }
.category-chip.active, .category-chip[aria-pressed="true"], .channel-tab.active {
    background: rgba(52, 211, 166, .12); border-color: var(--logo-teal); color: var(--text-primary);
}

/* Forms */
.form-control, .search-input, .social-input, .ee2-input {
    font-family: var(--font);
}
.form-control {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary);
}
.form-control:focus { border-color: var(--logo-teal); box-shadow: 0 0 0 3px rgba(52, 211, 166, .18); outline: none; }
.form-label { color: var(--text-secondary); font-weight: 600; }

/* Dropdowns and modals */
.user-dropdown, .dropdown-menu { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.dropdown-item:hover { background: var(--bg-hover); }

/* Live state: lime from the logo's top corner */
.live-badge, .badge-live, .is-live-badge { background: var(--logo-lime); color: var(--logo-navy); }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--logo-grad); opacity: .7; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* Retire looping decoration from the old system. */
.logo-icon-img, .site-header::before, .gradient-text, .progress-glow { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
