/* =============================================
   THEME SWITCHER - DAY/NIGHT MODE
   Smooth transitions between light and dark
   ============================================= */

/* Light Theme Variables - IMPROVED CONTRAST */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 30px -8px rgba(0, 0, 0, 0.25);
}

/* Theme Toggle Button - WHITE */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background: #f8fafc;
}

.theme-toggle:active {
    transform: translateY(-2px) scale(0.98);
}

/* Icon rotation animation */
.theme-toggle i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Smooth theme transition for all elements */
* {
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Light theme specific styles - IMPROVED */
[data-theme="light"] .hero-section {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.65) 70%,
            rgba(255, 255, 255, 0.95) 95%,
            #ffffff 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}

[data-theme="light"] .product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

[data-theme="light"] .product-image-wrapper {
    background: #f7fafc;
}

[data-theme="light"] .product-info {
    background: #ffffff;
}

[data-theme="light"] .btn-buy-now {
    background: #0f172a;
}

[data-theme="light"] .btn-buy-now:hover {
    background: #1e293b;
}

[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .upload-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}