/**
 * Light theme — page-level overrides for hardcoded dark inline CSS.
 * Loaded only when theme switcher is enabled (after themes.css).
 */

/* ── Refined light palette (clean social-app feel) ── */
[data-theme="light-grey"] {
    --akv-bg: #f0f2f5;
    --akv-surface: #ffffff;
    --akv-card: #ffffff;
    --akv-navbar: rgba(255, 255, 255, 0.94);
    --akv-footer: #e4e6eb;
    --akv-text: #050505;
    --akv-text-muted: #65676b;
    --akv-border: #dddfe2;
    --akv-border-strong: #ced0d4;
    --akv-overlay: #ffffff;
    --akv-shadow: rgba(0, 0, 0, 0.1);
    --akv-theme-color: #f0f2f5;
    --akv-input-bg: #ffffff;
    --akv-dropdown-bg: #ffffff;
    --akv-tab-bar: rgba(255, 255, 255, 0.96);
    --akv-tab-inactive: #65676b;
    --akv-ambient-opacity: 0;

    /* Page-local vars used in template <style> blocks */
    --bg-color: #f0f2f5;
    --surface-dark: #f0f2f5;
    --surface-main: #f0f2f5;
    --surface-card: #ffffff;
    --text-main: #050505;
    --text-muted: #65676b;
    --border-color: #dddfe2;
    --c-cyan: #0088a0;
    --c-gold: #b8860b;
    --accent: #0088a0;
    --surface: #ffffff;
}

[data-theme="light-grey"] .akv-ambient-bg {
    display: none !important;
}

/* Force consistent page canvas */
[data-theme="light-grey"] body {
    background-color: #f0f2f5 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] main {
    color: #050505;
}

/* ── Shared component classes (dashboards, detail pages) ── */
[data-theme="light-grey"] .glass-card,
[data-theme="light-grey"] .premium-card,
[data-theme="light-grey"] .filter-panel,
[data-theme="light-grey"] .artist-billing-card,
[data-theme="light-grey"] .stats-card,
[data-theme="light-grey"] .v-stats-card,
[data-theme="light-grey"] .inbox-block {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .section-title,
[data-theme="light-grey"] .filter-header h4,
[data-theme="light-grey"] .artist-title,
[data-theme="light-grey"] .artist-name,
[data-theme="light-grey"] .price-name,
[data-theme="light-grey"] .accordion-toggle,
[data-theme="light-grey"] .date-group-header h3,
[data-theme="light-grey"] .info-block h6 + p,
[data-theme="light-grey"] .info-block p,
[data-theme="light-grey"] .guest-tag,
[data-theme="light-grey"] h1,
[data-theme="light-grey"] h2,
[data-theme="light-grey"] h3,
[data-theme="light-grey"] h4,
[data-theme="light-grey"] h5,
[data-theme="light-grey"] h6 {
    color: #050505;
}

[data-theme="light-grey"] .section-title i,
[data-theme="light-grey"] .filter-header h4 i,
[data-theme="light-grey"] .date-group-header h3 {
    color: #0088a0 !important;
}

[data-theme="light-grey"] .venue-subtitle,
[data-theme="light-grey"] .schedule-text,
[data-theme="light-grey"] .agenda-results-line,
[data-theme="light-grey"] .price-persons,
[data-theme="light-grey"] .custom-check label,
[data-theme="light-grey"] .main-tabs .nav-link,
[data-theme="light-grey"] .event-pills .nav-link,
[data-theme="light-grey"] .tag,
[data-theme="light-grey"] .amenity-badge,
[data-theme="light-grey"] .neo-ui-preview-banner__text,
[data-theme="light-grey"] .artist-billing-card .plan-price small,
[data-theme="light-grey"] .quota-row .qrow-head .value .cap {
    color: #65676b !important;
}

[data-theme="light-grey"] .schedule-text,
[data-theme="light-grey"] .agenda-results-line strong {
    color: #0088a0 !important;
}

[data-theme="light-grey"] .event-category-badge,
[data-theme="light-grey"] .schedule-recurring-hint {
    color: #9a7200 !important;
}

/* Inputs */
[data-theme="light-grey"] .premium-input,
[data-theme="light-grey"] .cyber-input,
[data-theme="light-grey"] .form-control,
[data-theme="light-grey"] input.form-control,
[data-theme="light-grey"] textarea.form-control,
[data-theme="light-grey"] select.form-control {
    background: #ffffff !important;
    border: 1px solid #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .premium-input::placeholder,
[data-theme="light-grey"] .cyber-input::placeholder,
[data-theme="light-grey"] .form-control::placeholder {
    color: #8a8d91 !important;
    opacity: 1 !important;
}

[data-theme="light-grey"] .premium-input:focus,
[data-theme="light-grey"] .cyber-input:focus {
    border-color: #0088a0 !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 160, 0.15) !important;
    background: #ffffff !important;
}

/* Tabs & pills */
[data-theme="light-grey"] .main-tabs .nav-link {
    background: #e4e6eb !important;
    border-color: #dddfe2 !important;
    color: #65676b !important;
}

[data-theme="light-grey"] .main-tabs .nav-link.active,
[data-theme="light-grey"] .main-tabs .nav-link:hover,
[data-theme="light-grey"] .event-pills .nav-link.active {
    background: #ffffff !important;
    color: #050505 !important;
    border-color: #0088a0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light-grey"] .event-pills .nav-link {
    background: #e4e6eb !important;
    border-color: #dddfe2 !important;
    color: #65676b !important;
}

/* Social buttons — keep colored hovers, fix default */
[data-theme="light-grey"] .social-btn {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

/* ── Agenda page ── */
[data-theme="light-grey"] .filter-sidebar,
[data-theme="light-grey"] .list-area,
[data-theme="light-grey"] .agenda-list-toolbar,
[data-theme="light-grey"] .main-content {
    background: #f0f2f5 !important;
}

[data-theme="light-grey"] .filter-sidebar {
    border-right-color: #dddfe2 !important;
}

[data-theme="light-grey"] .agenda-map-section {
    border-left-color: #dddfe2 !important;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light-grey"] .agenda-list-toolbar {
    background: linear-gradient(180deg, #f0f2f5 88%, transparent) !important;
}

[data-theme="light-grey"] .event-card {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light-grey"] .event-card:hover {
    border-color: #0088a0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light-grey"] .event-card-img-wrap {
    background: #e4e6eb !important;
}

[data-theme="light-grey"] .date-preset-btn {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #65676b !important;
}

[data-theme="light-grey"] .date-preset-btn:hover,
[data-theme="light-grey"] .date-preset-btn.active {
    background: #e7f3ff !important;
    border-color: #0088a0 !important;
    color: #0088a0 !important;
}

[data-theme="light-grey"] .event-share-btn {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light-grey"] .event-share-btn:hover {
    border-color: #0088a0 !important;
    color: #0088a0 !important;
}

[data-theme="light-grey"] .agenda-load-more-btn {
    background: #ffffff !important;
    color: #0088a0 !important;
    border-color: #0088a0 !important;
}

[data-theme="light-grey"] .distance-slider-wrap {
    background: #f0f2f5 !important;
    border-color: #dddfe2 !important;
}

[data-theme="light-grey"] .filter-accordion {
    border-bottom-color: #dddfe2 !important;
}

[data-theme="light-grey"] .date-group-header {
    border-bottom-color: #dddfe2 !important;
}

[data-theme="light-grey"] .date-group-badge {
    background: #0088a0 !important;
    color: #ffffff !important;
}

[data-theme="light-grey"] .custom-check input[type="checkbox"]:checked + label {
    color: #050505 !important;
}

/* ── Artists / venues roster ── */
[data-theme="light-grey"] .roster-page,
[data-theme="light-grey"] .venues-page {
    background: #f0f2f5 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .artist-card,
[data-theme="light-grey"] .venue-card,
[data-theme="light-grey"] .roster-card {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* ── Login / auth ── */
[data-theme="light-grey"] .auth-card,
[data-theme="light-grey"] .login-box,
[data-theme="light-grey"] .auth-shell {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .btn-eye {
    background: #f0f2f5 !important;
    border-color: #dddfe2 !important;
    color: #65676b !important;
}

/* ── Create live / forms wizard ── */
[data-theme="light-grey"] .wizard-container,
[data-theme="light-grey"] .create-live-wrap,
[data-theme="light-grey"] .upload-area {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .upload-area {
    border-style: dashed !important;
}

/* ── Event / artist / venue detail heroes ── */
[data-theme="light-grey"] .hero-overlay,
[data-theme="light-grey"] .detail-hero-mask {
    background: linear-gradient(to top, rgba(240, 242, 245, 0.95), transparent) !important;
}

[data-theme="light-grey"] .tour-row,
[data-theme="light-grey"] .info-block {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
}

[data-theme="light-grey"] .spotify-card--neo-tabs .spotify-tabs {
    background: #ffffff !important;
    border-bottom-color: #dddfe2 !important;
}

[data-theme="light-grey"] .neo-ui-preview-banner {
    background: linear-gradient(90deg, #ffffff, #f0f2f5) !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ── Dashboard sticky bars ── */
[data-theme="light-grey"] .artist-sticky-bar,
[data-theme="light-grey"] .akv-roster-toolbar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #dddfe2 !important;
    backdrop-filter: blur(12px);
}

/* ── Flatpickr (dark theme loaded on some pages) ── */
[data-theme="light-grey"] .flatpickr-calendar {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .flatpickr-day,
[data-theme="light-grey"] .flatpickr-weekday,
[data-theme="light-grey"] .flatpickr-months .flatpickr-month,
[data-theme="light-grey"] .flatpickr-current-month,
[data-theme="light-grey"] .flatpickr-time input {
    color: #050505 !important;
}

[data-theme="light-grey"] .flatpickr-day:hover,
[data-theme="light-grey"] .flatpickr-day.selected {
    background: #0088a0 !important;
    border-color: #0088a0 !important;
    color: #ffffff !important;
}

/* ── Bootstrap utilities that break on light ── */
[data-theme="light-grey"] .text-white:not(.btn):not(.badge):not(.nav-link) {
    color: #050505 !important;
}

[data-theme="light-grey"] .text-light {
    color: #65676b !important;
}

[data-theme="light-grey"] .btn-outline-light {
    color: #050505 !important;
    border-color: #dddfe2 !important;
}

[data-theme="light-grey"] .btn-outline-light:hover {
    background: #f0f2f5 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] hr {
    border-color: #dddfe2 !important;
    opacity: 1 !important;
}

/* Keep intentional dark text on gold/cyan buttons */
[data-theme="light-grey"] .btn-warning,
[data-theme="light-grey"] .btn-info,
[data-theme="light-grey"] .akv-lang-btn--active,
[data-theme="light-grey"] .date-group-badge,
[data-theme="light-grey"] a[style*="linear-gradient"] {
    /* preserve button contrast */
}

[data-theme="light-grey"] .akv-lang-btn--active {
    color: #1a1a1a !important;
}

/* Scrollbars */
[data-theme="light-grey"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
}

/* ══════════════════════════════════════════════
   HOME v2 — full light makeover
   ══════════════════════════════════════════════ */
[data-theme="light-grey"] .home-v2 {
    --hv-deep: #f0f2f5;
    --hv-card: #ffffff;
    --hv-border: #dddfe2;
    --hv-cyan: #0088a0;
    --hv-gold: #9a7200;
    color: #050505;
    background: #f0f2f5 !important;
}

[data-theme="light-grey"] .home-v2 .hv-aurora,
[data-theme="light-grey"] .home-v2 .hv-grid-floor,
[data-theme="light-grey"] .home-v2 .hv-spot {
    opacity: 0.12 !important;
}

[data-theme="light-grey"] .home-v2 .hv-title,
[data-theme="light-grey"] .home-v2 .hv-title .hv-outline,
[data-theme="light-grey"] .home-v2 .hv-title .hv-gradient {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    background: none !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

[data-theme="light-grey"] .home-v2 .hv-title .hv-gradient {
    background: linear-gradient(135deg, #0088a0, #5b4fc7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light-grey"] .home-v2 .hv-eyebrow,
[data-theme="light-grey"] .home-v2 .hv-lead {
    color: #65676b !important;
}

[data-theme="light-grey"] .home-v2 .hv-stat {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light-grey"] .home-v2 .hv-stat-lbl {
    color: #65676b !important;
}

[data-theme="light-grey"] .home-v2 .hv-search {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light-grey"] .home-v2 .hv-search input {
    color: #050505 !important;
}

[data-theme="light-grey"] .home-v2 .hv-search input::placeholder {
    color: #8a8d91 !important;
}

[data-theme="light-grey"] .home-v2 .hv-chip,
[data-theme="light-grey"] .home-v2 .hv-bento a,
[data-theme="light-grey"] .home-v2 .hv-bento-tile {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light-grey"] .home-v2 .hv-chip:hover,
[data-theme="light-grey"] .home-v2 .hv-bento a:hover,
[data-theme="light-grey"] .home-v2 .hv-bento-tile:hover {
    border-color: #0088a0 !important;
    background: #e7f3ff !important;
}

[data-theme="light-grey"] .home-v2 .hv-bento-sub {
    color: #65676b !important;
}

[data-theme="light-grey"] .home-v2 .hv-bento-icon {
    color: #0088a0 !important;
}

/* GigGuide — light card (not dark box on light page) */
[data-theme="light-grey"] .gig-guide-panel {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light-grey"] .gig-guide-panel__title {
    color: #050505 !important;
}

[data-theme="light-grey"] .gig-guide-panel__sub {
    color: #65676b !important;
}

[data-theme="light-grey"] .gg-bubble {
    background: #f0f2f5 !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .gg-msg--user .gg-bubble {
    background: #e7f3ff !important;
    border-color: #0088a0 !important;
}

[data-theme="light-grey"] .gg-starter-chip {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .gg-starter-chip:hover {
    background: #e7f3ff !important;
    border-color: #0088a0 !important;
    color: #0088a0 !important;
}

[data-theme="light-grey"] .gg-input {
    background: #f0f2f5 !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .gg-input::placeholder {
    color: #8a8d91 !important;
}

[data-theme="light-grey"] #gigGuideFab {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Home sections below hero */
[data-theme="light-grey"] .home-v2 .hv-section-title,
[data-theme="light-grey"] .home-v2 .hv-card-title,
[data-theme="light-grey"] .home-v2 .hv-live-card h3,
[data-theme="light-grey"] .home-v2 .hv-live-card p {
    color: #050505 !important;
}

[data-theme="light-grey"] .home-v2 .hv-live-card,
[data-theme="light-grey"] .home-v2 .hv-profile-card,
[data-theme="light-grey"] .home-v2 .hv-cta-card {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light-grey"] .home-v2 .hv-live-card .hv-muted,
[data-theme="light-grey"] .home-v2 .hv-profile-card .hv-muted {
    color: #65676b !important;
}

/* Filters v2 panels */
[data-theme="light-grey"] .akv-filter-panel,
[data-theme="light-grey"] .akv-roster-toolbar,
[data-theme="light-grey"] .akv-chip {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .akv-chip--muted {
    color: #65676b !important;
}

[data-theme="light-grey"] .akv-roster-card,
[data-theme="light-grey"] .akv-venue-card {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
    color: #050505 !important;
}

[data-theme="light-grey"] .event-category-badge,
[data-theme="light-grey"] .amenity-badge {
    color: #7a5a00 !important;
    background: #fff8e6 !important;
    border-color: #e8d49a !important;
}

[data-theme="light-grey"] .home-v2 .hv-ticker {
    background: #ffffff !important;
    border-color: #dddfe2 !important;
}

[data-theme="light-grey"] .home-v2 .hv-ticker-item {
    color: #050505 !important;
}

[data-theme="light-grey"] .home-v2 .hv-ticker-item strong {
    color: #0088a0 !important;
}

[data-theme="light-grey"] .home-v2 .hv-profile-pill,
[data-theme="light-grey"] .home-v2 .hv-profile-name {
    color: #050505 !important;
}

[data-theme="light-grey"] .home-v2 .hv-profile-tag {
    color: #ffffff !important;
}

[data-theme="light-grey"] .accordion-toggle[aria-expanded="true"] {
    color: #0088a0 !important;
}

[data-theme="light-grey"] .custom-check input[type="checkbox"] {
    border-color: #8a8d91 !important;
}

[data-theme="light-grey"] .guest-tag {
    color: #a855f7 !important;
}
