/* Light mode styles - toggle via class on body */

/* Base colors */
:root {
    --dark-color: #3C0177;
    --light-color: #bd0000;
    --dark-accent: rgba(192, 132, 252, 0.9);
    --light-accent: rgba(215, 83, 83, 0.9);
}

/* Base theme colors */
body.light-mode {
    background-color: white;
}

/* Footer styles */
body.light-mode .footer,
body.light-mode .copyright,
body.light-mode .terms {
    color: var(--light-color);
}

/* Text buttons */
body.light-mode .text-button {
    color: var(--light-color);
}

body.light-mode .text-button:hover {
    text-shadow: 0 0 0.03125rem rgba(189, 0, 0, 0.9),
                 0 0 0.0625rem rgba(189, 0, 0, 0.8),
                 0 0 0.09375rem rgba(189, 0, 0, 0.7),
                 0 0 0.125rem rgba(189, 0, 0, 0.6),
                 0 0 0.1875rem rgba(189, 0, 0, 0.5),
                 0 0 0.25rem rgba(189, 0, 0, 0.3),
                 0 0 0.3125rem rgba(189, 0, 0, 0.2),
                 0 0 0.375rem rgba(189, 0, 0, 0.1);
}

/* Disable hover effects on page titles in content pages */
body.light-mode .about-header:hover,
body.light-mode .contact-header:hover,
body.light-mode .selected-works-header:hover,
body.light-mode .cart-header:hover {
    text-shadow: none !important;
}

/* Shirt hover effects */
@media (min-width: 601px) {
    body.light-mode .shirt-image:hover {
        filter: drop-shadow(0 0 20px rgba(189, 0, 0, 0.5));
    }
}

/* Standard shirt drop shadows */
body.light-mode .shirt-image {
    filter: drop-shadow(0 0 4px rgba(189, 0, 0, 0.3));
}

/* Title image replacement - desktop only */
@media screen and (min-width: 601px) {
    body.light-mode .title-image {
        content: url("../assets/wholelottared.png");
        filter: url(#titleWaveEffect);
        -webkit-filter: url(#titleWaveEffect);
    }
}

/* Title image replacement - mobile optimized */
@media screen and (max-width: 600px) {
    body.light-mode .title-image {
        content: url("../assets/wholelottared.png");
        /* Remove SVG filters on mobile for better performance */
        filter: none;
        -webkit-filter: none;
    }
}

/* White vignette effect for desktop light mode */
body.light-mode .vignette {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 55%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0.9) 80%,
        rgba(255, 255, 255, 1) 95%
    );
}

/* Energy core */
body.light-mode .energy-core {
    filter: none;
    animation: none;
    background: radial-gradient(circle at center,
        rgba(215, 83, 83, 0.25) 0%,
        rgba(189, 0, 0, 0.2) 20%,
        rgba(159, 0, 0, 0.15) 40%,
        transparent 70%);
    mix-blend-mode: normal;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    will-change: transform;
    position: fixed;
}

/* Tendril structure - match dark mode exactly */
body.light-mode .tendril {
    opacity: 1;
    mix-blend-mode: multiply;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    will-change: transform;
}

/* Tendril segment style - match dark mode exactly */
body.light-mode .tendril-segment {
    background: linear-gradient(to bottom,
        rgba(189, 0, 0, 0.9) 0%,
        rgba(215, 83, 83, 1) 50%,
        rgba(189, 0, 0, 0.9) 100%);
    filter: url(#turbulence);
    mix-blend-mode: multiply;
    transform-origin: center top;
}

body.light-mode .tendril-segment:first-child {
    background: linear-gradient(to bottom,
        rgba(215, 83, 83, 1) 0%,
        rgba(189, 0, 0, 0.9) 100%);
}

body.light-mode .tendril-segment:last-child {
    background: linear-gradient(to bottom,
        rgba(189, 0, 0, 0.9) 0%,
        transparent 100%);
}

/* Particles */
body.light-mode .particle {
    width: 3px;
    height: 3px;
    background: rgba(215, 83, 83, 0.9);
    border-radius: 50%;
    filter: url(#turbulence);
    mix-blend-mode: screen;
}

/* Custom shirt container adjustments */
body.light-mode .custom-shirt-container:hover {
    filter: drop-shadow(0 0 20px rgba(189, 0, 0, 0.5));
}

body.light-mode .shirt-image.has-custom-version:hover {
    filter: drop-shadow(0 0 4px rgba(189, 0, 0, 0.3));
}

body.light-mode .custom-shirt-container {
    filter: drop-shadow(0 0 4px rgba(189, 0, 0, 0.3));
}

body.light-mode .custom-shirt-container.shirt-hover {
    filter: drop-shadow(0 0 20px rgba(189, 0, 0, 0.5));
}

/* Mode toggle styles */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mode-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: transparent;
    border: 2px solid #3C0177;
    border-radius: 30px;
    transition: all 0.3s;
}

.mode-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #3C0177;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-toggle-slider::before {
    content: "D";
    color: #888;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
}

body.light-mode .mode-toggle-switch {
    border-color: #bd0000;
    background-color: transparent;
}

body.light-mode .mode-toggle-slider {
    left: 32px;
    background-color: #bd0000;
}

body.light-mode .mode-toggle-slider::before {
    content: "L";
    padding-left: 2px;
}

/* Mobile adjustments - match dark mode structure exactly */
@media screen and (max-width: 600px) {
    .mode-toggle {
        top: 10px;
        right: 10px;
    }
    
    /* Mobile toggle button instead of switch */
    .mode-toggle-switch {
        display: none; /* Hide the switch on mobile */
    }
    
    /* Create simple circular button for mobile */
    .mode-toggle::after {
        content: "D";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #3C0177;
        color: #fff;
        font-family: 'Share Tech Mono', monospace;
        font-weight: bold;
        font-size: 14px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
    }
    
    /* Light mode button styling */
    body.light-mode .mode-toggle::after {
        content: "L";
        background-color: #bd0000;
    }
    
    body.light-mode .mode-toggle-slider {
        left: 27px;
    }
    
    /* Mobile optimization - match dark mode */
    body.light-mode .tendril-segment {
        filter: none;
    }
    
    body.light-mode .particle {
        filter: none;
    }
    
    /* Energy core with proper positioning for mobile */
    body.light-mode .energy-core {
        mix-blend-mode: normal;
        position: fixed;
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    body.light-mode .tendril {
        mix-blend-mode: normal;
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    /* Override vignette for mobile - use white vignette */
    body.light-mode .vignette {
        background: radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 55%,
            rgba(255, 255, 255, 0.5) 70%,
            rgba(255, 255, 255, 0.9) 80%,
            rgba(255, 255, 255, 1) 95%
        );
    }
    
    /* Fade containers - use white for light mode */
    body.light-mode .fade-container {
        background: linear-gradient(
            to bottom,
            white 0%,
            white 500px,
            rgba(255, 255, 255, 0.9) 400px,
            rgba(255, 255, 255, 0.8) 500px,
            rgba(255, 255, 255, 0.4) 600px,
            transparent 700px
        );
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        position: fixed !important;
        top: -500px !important;
        left: 0 !important;
        width: 100% !important;
        height: 800px !important;
        z-index: 30 !important;
    }
    
    body.light-mode .fade-container-bottom {
        background: 
            linear-gradient(to top,
                white 0%,
                rgba(255, 255, 255, 0.8) 20%,
                rgba(255, 255, 255, 0.4) 40%,
                rgba(255, 255, 255, 0.2) 60%,
                transparent 100%);
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 400px !important;
        z-index: 10 !important;
    }
    
    body.light-mode .shirts-container::before {
        background: linear-gradient(to bottom,
            white 0%,
            rgba(255, 255, 255, 0.8) 40%,
            transparent 100%);
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 12.5rem !important;
        z-index: 10 !important;
        transform: translate3d(0,0,0);
        -webkit-transform: translate3d(0,0,0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        pointer-events: none !important;
    }
    
    /* Simple tendril segments for mobile - match dark mode */
    body.light-mode .tendril-segment {
        background: linear-gradient(to bottom,
            rgba(189, 0, 0, 0.9) 0%,
            rgba(215, 83, 83, 1) 50%,
            rgba(189, 0, 0, 0.9) 100%);
        mix-blend-mode: multiply;
    }
    
    body.light-mode .tendril-segment:first-child {
        background: linear-gradient(to bottom,
            rgba(215, 83, 83, 1) 0%,
            rgba(189, 0, 0, 0.9) 100%);
    }
    
    body.light-mode .tendril-segment:last-child {
        background: linear-gradient(to bottom,
            rgba(189, 0, 0, 0.9) 0%,
            transparent 100%);
    }
    
    body.light-mode .tendril {
        opacity: 1;
        mix-blend-mode: multiply;
    }
    
    /* Mobile-specific shirt styles for light mode */
    body.light-mode .shirt-image {
        filter: drop-shadow(0 0 0.3125rem rgba(189, 0, 0, 0.5));
        position: relative;
        z-index: 5;
        contain: none;
        margin: 0 auto;
        overflow: visible;
    }
    
    /* Disable hover effect drop shadow expansion on mobile */
    @media (max-width: 600px) {
        body.light-mode .shirt-image:hover {
            filter: drop-shadow(0 0 0.3125rem rgba(189, 0, 0, 0.5)) !important;
            transform: none !important;
        }
    }
    
    /* Add space around shirts to prevent drop shadow clipping */
    body.light-mode .shirts-container {
        padding: 120px 20px 0 20px;
        overflow: visible;
        contain: none;
    }
} 