/**
 * Theme Styles - Unified Dark Mode
 * Single source of truth for dark mode styling
 * Works with manual theme toggle and respects system preferences
 */

/* ============================================================================
   DARK MODE STYLES
   ============================================================================ */

html[data-theme="dark"] {
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --light-color: #0b1220;
    --dark-color: #0b1220;
    --bg-color: #020617;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body {
    background-color: var(--dark-color);
    background-image:
        radial-gradient(800px circle at 10% 10%, rgba(37, 99, 235, 0.08), transparent 40%),
        radial-gradient(600px circle at 90% 90%, rgba(124, 58, 237, 0.08), transparent 40%);
}

html[data-theme="dark"] .header_section {
    background-color: rgba(2, 6, 23, 0.7);
    border-bottom-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .hamburger-line {
    background-color: #e2e8f0;
}

html[data-theme="dark"] .mobile_menu {
    background-color: rgba(2, 6, 23, 0.95);
}

html[data-theme="dark"] .header_logo img {
    filter: invert(1) brightness(1.2);
}

html[data-theme="dark"] .card {
    background-color: #0b1220;
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] table {
    background-color: #0b1220;
}

html[data-theme="dark"] td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #0b1220;
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    background-color: #0b1220;
}

html[data-theme="dark"] .contact-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer_section {
    background-color: #020617;
    color: var(--text-color);
}

/* Ensure footer text is readable in dark mode */
html[data-theme="dark"] .footer_section h3,
html[data-theme="dark"] .footer_section a {
    color: var(--text-color);
}

html[data-theme="dark"] .footer_section p {
    color: var(--text-secondary);
}

/* Theme toggle is already light-colored for footer, no dark mode override needed */


/* Ensure middle content matches page background in dark mode */
html[data-theme="dark"] .content_section {
    background-color: var(--dark-color);
}
