/* =========================================================
   themes.css — Theme-specific refinements.
   ========================================================= */

/* =========================================================
   Light mode specifics
   ========================================================= */
[data-theme="light"] {
    /* Slightly softer background behind cards */
    --color-bg: #f8f9fb;
}

[data-theme="light"] .card {
    border-color: #e8eaee;
}

[data-theme="light"] .card-hover:hover {
    border-color: #d9dde3;
}

[data-theme="light"] .site-header {
    /* Frosted glass effect on light */
    background-color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero {
    /* Slightly brighter radial highlight */
    --hero-glow-opacity: 1;
}

/* =========================================================
   Dark mode specifics
   ========================================================= */
[data-theme="dark"] {
    /* Darker hero gradient to blend with the dark bg */
    --color-bg: #121212;
}

[data-theme="dark"] .card {
    border-color: #2a2a2a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-hover:hover {
    border-color: #3a3a3a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .site-header {
    background-color: rgba(30, 30, 30, 0.85);
    border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .hero {
    /* Less aggressive radial highlight on dark */
    background:
        radial-gradient(1200px 500px at 100% 0%,
            rgba(66, 165, 245, 0.10) 0%,
            transparent 60%),
        var(--color-bg);
    border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .feature-icon {
    background-color: rgba(66, 165, 245, 0.12);
    color: #64b5f6;
}

[data-theme="dark"] .table thead th {
    background-color: #262626;
    color: #9aa0a6;
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.25);
}

[data-theme="dark"] img {
    /* Slightly dim photos in dark mode (a common iOS/Android trick) */
    filter: brightness(0.9);
}

/* =========================================================
   Respect reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}