/* Theme toggle button styles */
:root {
    /* Light theme variables (default) */
    --bg: #ffffff;
    --fg: #111;
    --accent: #0a84ff;
    --accent-gradient: linear-gradient(135deg, #0a84ff, #00e5ff);
    --shadow: 0 6px 18px rgba(10, 10, 10, .08);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-glow: 0 0 10px rgba(10, 132, 255, 0.5),
                 0 0 20px rgba(10, 132, 255, 0.3),
                 0 0 30px rgba(10, 132, 255, 0.1);
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg: #0a0a0a;
    --fg: #ffffff;
    --accent: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #00e5ff);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(20, 20, 20, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(59, 130, 246, 0.5),
                 0 0 20px rgba(59, 130, 246, 0.3),
                 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Dark mode specific overrides */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0a0e27 0%, #0a0a0a 50%, #111 100%);
}

[data-theme="dark"] body::before {
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
}

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

[data-theme="dark"] .section-dropdown {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

[data-theme="dark"] .section-dropdown summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .nav-menu.open {
    background: var(--glass-bg);
    border-top-color: var(--glass-border);
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: var(--neon-glow);
    border-color: var(--accent);
    background: rgba(var(--accent), 0.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--fg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
    stroke: var(--accent);
    transform: rotate(360deg);
}

[data-theme="dark"] .theme-toggle {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}
