/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--gray-200);
    border-radius: 15px;
    cursor: pointer;
    transition: background var(--transition-base);
    border: 2px solid var(--border-color);
}

.dark-theme .theme-toggle {
    background: var(--gray-700);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transition: transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dark-theme .theme-toggle-slider {
    transform: translateX(30px);
}

.theme-toggle-slider::before {
    content: '☀️';
}

.dark-theme .theme-toggle-slider::before {
    content: '🌙';
}

/* Dark Mode Specific Adjustments */
.dark-theme .main-nav a:hover {
    background: var(--gray-700);
}

.dark-theme .post-content code {
    background: var(--gray-700);
    color: var(--gray-200);
}

.dark-theme .hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

/* Smooth theme transition */
body {
    transition: background-color var(--transition-base), color var(--transition-base);
}