/*
 * =============================================================================
 * OCT Custom Halloween Theme (2025)
 * =============================================================================
 * This stylesheet will automatically be applied from Oct 15th to Nov 2nd.
 */

/* --- Import Spooky Font --- */
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

/* --- Define Halloween Color Palette --- 
:root {
    --halloween-orange: #ff6600;
    --halloween-black: #0a0a0a;
    --halloween-purple: #6a0dad;
    --halloween-white: #91cc8f;
    --halloween-glow: #ff9900;
}*/

/* --- General Body & Background Theming --- 
body.halloween-active {
    background-color: var(--halloween-black) !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23222' fill-opacity='0.2'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--halloween-white) !important;
}*/

/* --- Spooky Headings --- 
.halloween-active h1,
.halloween-active h2,
.halloween-active h3,
.halloween-active h4,
.halloween-active .entry-title,
.halloween-active .woocommerce-products-header__title {
    font-family: 'Creepster', cursive !important;
    color: var(--halloween-orange) !important;
    letter-spacing: 2px;
}*/

/* --- Themed Links --- 
.halloween-active a {
    color: var(--halloween-orange);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.halloween-active a:hover {
    color: var(--halloween-glow);
    text-shadow: 0 0 5px var(--halloween-orange);
}*/

/* --- Spooky Buttons & Inputs --- 
.halloween-active button,
.halloween-active input[type="submit"],
.halloween-active .button,
.halloween-active .wp-block-button__link {
    background-color: var(--halloween-orange) !important;
    color: var(--halloween-black) !important;
    font-family: 'Creepster', cursive !important;
    letter-spacing: 1px;
    border: 2px solid var(--halloween-black) !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.halloween-active button:hover,
.halloween-active input[type="submit"]:hover,
.halloween-active .button:hover,
.halloween-active .wp-block-button__link:hover {
    background-color: var(--halloween-glow) !important;
    color: var(--halloween-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.halloween-active select,
.halloween-active input[type="text"],
.halloween-active input[type="search"] {
    background-color: #222 !important;
    color: var(--halloween-white) !important;
    border: 1px solid #444 !important;
}
.halloween-active select:focus,
.halloween-active input[type="text"]:focus,
.halloween-active input[type="search"]:focus {
    border-color: var(--halloween-orange) !important;
    box-shadow: 0 0 5px var(--halloween-orange);
}*/

/* --- Site Header & Footer --- 
.halloween-active .site-header,
.halloween-active .site-footer {
    background-color: var(--halloween-black) !important;
    border-bottom: 2px solid var(--halloween-orange);
}*/

/* --- Custom Shop Page Specifics --- 
.halloween-active .shop-filters,
.halloween-active .shop-controls {
    background-color: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid #333 !important;
    backdrop-filter: blur(5px);
}
.halloween-active .custom-product-card {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
}
.halloween-active .custom-product-card:hover {
    border-color: var(--halloween-orange) !important;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2) !important;
}
.halloween-active #reset-filters {
    background-color: var(--halloween-purple) !important;
}*/

/* --- Product Configurator Specifics --- 
.halloween-active .product-configurator-options {
    background-color: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid #333 !important;
}
.halloween-active #custom-add-to-cart-button {
    animation: spooky-glow 2s infinite alternate;
}*/

/* --- Fun Glow Animation --- */
@keyframes spooky-glow {
    from {
        box-shadow: 0 0 5px var(--halloween-orange), 0 0 10px var(--halloween-orange);
    }
    to {
        box-shadow: 0 0 20px var(--halloween-glow), 0 0 30px var(--halloween-glow);
    }
}

/* --- NEW: Decorative Halloween Image --- */
body.halloween-active::after {
    content: '';
    position: fixed;
    top: 100px;
    right: 50px; /* Positioned from the right side */
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    background-image: url('../images/halloween.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9999;
    pointer-events: none; /* Allows clicks to pass through the image */
    animation: float-animation 6s ease-in-out infinite;
}

/* --- NEW: Floating Animation for Decorative Image --- */
@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    body.halloween-active::after {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
    }
}

