/* ============================================
   JOOUST ISACA - Public Dark Theme
   Loaded after style.css / pages.css so that
   [data-theme="dark"] overrides win over the
   page-level (inline) component styles.
   ============================================ */

/* ---- Token refinements for dark mode ---- */
[data-theme="dark"] {
    --gray: #94A3B8;
    --light-2: #1E293B;
    --light-3: #334155;
}

/* ============================================================
   Generic glass cards (contact / join / events / resources)
   ============================================================ */
[data-theme="dark"] .contact-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .social-link-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .resource-card {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .contact-card:hover,
[data-theme="dark"] .benefit-card:hover,
[data-theme="dark"] .resource-card:hover,
[data-theme="dark"] .partner-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .contact-card-body h4,
[data-theme="dark"] .social-link-card .social-name,
[data-theme="dark"] .benefit-card h4,
[data-theme="dark"] .resource-card .resource-title,
[data-theme="dark"] .resource-card h4 {
    color: var(--dark);
}

[data-theme="dark"] .contact-card-body p,
[data-theme="dark"] .contact-card-body a,
[data-theme="dark"] .benefit-card p,
[data-theme="dark"] .resource-card p,
[data-theme="dark"] .partner-text {
    color: var(--gray);
}

/* Search field on Resources */
[data-theme="dark"] .resources-search-wrap input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--dark);
}

[data-theme="dark"] .partner-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dark);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .resource-btn[disabled],
[data-theme="dark"] .resource-btn.disabled {
    background: rgba(255, 255, 255, 0.10) !important;
    color: var(--gray) !important;
}

/* Alerts */
[data-theme="dark"] .alert-modern.success { color: #6EE7B7; }
[data-theme="dark"] .alert-modern.error { color: #FCA5A5; }

/* ============================================================
   Gallery filter buttons
   ============================================================ */
[data-theme="dark"] .filter-nav .filter-btn {
    background: linear-gradient(135deg, #1E293B 0%, #172033 100%);
    color: var(--dark);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   About page sections (pages.css)
   ============================================================ */
[data-theme="dark"] .section-about,
[data-theme="dark"] .section-why {
    background: var(--bg-light);
}

[data-theme="dark"] .section-values {
    background: linear-gradient(180deg, #0F172A 0%, #131C30 100%);
}

[data-theme="dark"] .about-intro-title,
[data-theme="dark"] .section-values .section-header-centered h2,
[data-theme="dark"] .why-content h2,
[data-theme="dark"] .why-feature-text h4 {
    color: var(--dark);
}

[data-theme="dark"] .section-values .section-header-centered .section-tag,
[data-theme="dark"] .why-content .section-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dark);
}

[data-theme="dark"] .about-intro-text,
[data-theme="dark"] .why-lead,
[data-theme="dark"] .why-feature-text p {
    color: var(--gray);
}

[data-theme="dark"] .about-side-card {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .about-side-card h4 {
    color: var(--dark);
}

[data-theme="dark"] .about-side-card p {
    color: var(--gray);
}

[data-theme="dark"] .value-tile {
    background: linear-gradient(145deg, #1E293B 0%, #172033 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .value-tile:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .value-tile .value-tile-number {
    color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .why-image-float {
    background: #1E293B;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .why-image-float span {
    color: var(--dark);
}

/* ============================================================
   Text colored with --primary in light mode must go light in
   dark mode (--primary is not remapped because it is also used
   as a background/gradient colour).
   ============================================================ */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-badge {
    color: var(--dark);
}

[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] a:hover {
    color: var(--secondary);
}

/* Mobile menu logo (inherits --primary from .mobile-logo .logo-name) */
[data-theme="dark"] .mobile-logo .logo-name {
    color: var(--white);
}

/* Home: product "Quick Order" chip + "Explore All Events" link
   (surface/background is dark in dark mode, so primary text must go light) */
[data-theme="dark"] .prod-quick-view {
    color: var(--dark);
}

[data-theme="dark"] .btn-events-all {
    color: var(--dark);
    border-color: var(--dark);
}

[data-theme="dark"] .btn-events-all:hover {
    color: var(--white);
    border-color: var(--secondary);
}

/* Native form controls (join / register-event / submit-order) */
[data-theme="dark"] select.form-control,
[data-theme="dark"] .form-control option {
    color: var(--dark);
}

[data-theme="dark"] .form-control option {
    background: #1E293B;
}
