/*****************************************************
 * DRIP COLOR FEATURE - VIPER BATS
 * CSS Styles for Drip Overlay
 * 
 * This file styles the drip color overlay that appears
 * on the barrel when a customer selects a drip color.
 * 
 * Author: Generated for Viper Bats
 * Date: November 4, 2025
 *****************************************************/

/*====================================================
 * DRIP OVERLAY ELEMENT
 ====================================================*/

#drip-overlay {
    /* Positioning */
    position: absolute;
    top: 0;
    right: 0;  /* Positioned on right side for end cap drips */
    width: 15%; /* Covers 10-15% of barrel width as requested */
    height: 100%;

    /* Layering */
    z-index: 15; /* Above barrel but below text/logos */

    /* Interaction */
    pointer-events: none; /* Allow clicks to pass through */

    /* Animation */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;

    /* Initial state - hidden */
    display: none;

    /* Mask properties are set dynamically via JavaScript */
    /* background-color: [set by JS] */
    /* mask-image: [set by JS] */
    /* -webkit-mask-image: [set by JS] */
}

/*====================================================
 * BARREL CONTAINER POSITIONING
 ====================================================*/

/* Ensure barrel container has position context for absolute overlay */
.barrel-container {
    position: relative;
}

/* Fallback for different selector structures */
#barrel-image0 {
    position: relative;
}

.bat-barrel {
    position: relative;
}

/*====================================================
 * OPACITY VARIATIONS (Optional)
 ====================================================*/

/* If you want slightly transparent drip (90% opacity as requested) */
#drip-overlay.semi-transparent {
    opacity: 0.9;
}

/* Full opacity version (100%) */
#drip-overlay.full-opacity {
    opacity: 1;
}

/*====================================================
 * RESPONSIVE ADJUSTMENTS
 ====================================================*/

/* Tablet and smaller screens */
@media (max-width: 768px) {
    #drip-overlay {
        width: 15%; /* Slightly larger on mobile for visibility */
        z-index: 15; /* Maintain layering */
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    #drip-overlay {
        width: 18%; /* Even larger on small mobile screens */
    }
}

/* Large desktop screens */
@media (min-width: 1920px) {
    #drip-overlay {
        width: 12%; /* Slightly smaller on very large screens */
    }
}

/*====================================================
 * PRINT STYLES
 ====================================================*/

/* Hide drip overlay when printing */
@media print {
    #drip-overlay {
        display: none !important;
    }
}

/*====================================================
 * BROWSER-SPECIFIC FIXES
 ====================================================*/

/* Safari and older webkit browsers */
@supports (-webkit-mask-image: url()) {
    #drip-overlay {
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
    }
}

/* Firefox specific adjustments */
@-moz-document url-prefix() {
    #drip-overlay {
        /* Firefox-specific styles if needed */
    }
}

/*====================================================
 * ANIMATION CLASSES (Optional)
 ====================================================*/

/* Fade in animation */
@keyframes dripFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade out animation */
@keyframes dripFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Apply animations if needed */
#drip-overlay.animating-in {
    animation: dripFadeIn 0.3s ease-in-out;
}

#drip-overlay.animating-out {
    animation: dripFadeOut 0.3s ease-in-out;
}

/*====================================================
 * DEBUGGING STYLES (Remove in production)
 ====================================================*/

/* Uncomment these for debugging/testing */
/*
#drip-overlay {
    border: 2px solid red;
    background-color: rgba(255, 0, 0, 0.3) !important;
}
*/

/*====================================================
 * END OF FILE
 ====================================================*/
