/**
 * Eazy Topbar Styles
 * Version: 2.0.0
 * 
 * Includes:
 * - Base Styles
 * - Halloween Preset
 * - Black Friday Preset
 * - Responsive Design
 */

/* ============================================ */
/* BASE STYLES */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.topbar {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    overflow: hidden;
    position: relative;
    z-index: 9999;
}

.topbar-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon {
    font-size: 28px;
    animation: iconPulse 2s infinite;
}

.topbar-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.highlight {
    font-weight: 900;
    font-size: 22px;
    /* animation: glowPulse 1.5s ease-in-out infinite; */
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-block {
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 50px;
    text-align: center;
}

.timer-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.timer-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding: 10px 28px;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.cta-button:active {
    transform: translateY(1px);
}

.cta-button::before {
    margin-right: 8px;
}

/* Close Button */
.topbar-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
}

.topbar-close:hover {
    transform: translateY(-50%) rotate(90deg);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.floating-0 {
    top: 10px;
    left: 15%;
    animation: float 4s ease-in-out infinite;
}

.floating-1 {
    top: 15px;
    right: 20%;
    animation: float 5s ease-in-out infinite 1s;
}

.floating-2 {
    bottom: 15px;
    left: 22%;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-3 {
    top: 20px;
    right: 15%;
    animation: float 4.5s ease-in-out infinite 0.5s;
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(5deg); }
    50% { transform: translateY(-4px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================ */
/* HALLOWEEN PRESET */
/* ============================================ */

.halloween-topbar {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #1a0b2e 100%);
    /* box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4); */
    animation: halloweenGlow 3s ease-in-out infinite alternate;
    border-bottom: 2px solid #ff6600;
}

/* @keyframes halloweenGlow {
    0% { 
        box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
    }
    100% { 
        box-shadow: 0 4px 30px rgba(255, 102, 0, 0.7), 
                    0 0 40px rgba(138, 43, 226, 0.3);
    }
} */

/* Halloween Overlay */
.halloween-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(255, 102, 0, 0.05) 10px,
            rgba(255, 102, 0, 0.05) 20px
        );
    pointer-events: none;
    animation: slideStripes 20s linear infinite;
}

@keyframes slideStripes {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

/* Halloween Text */
.halloween-topbar .topbar-icon {
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.8));
}

.halloween-topbar .topbar-text {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(255, 102, 0, 0.6);
}

.halloween-topbar .spooky-text {
    color: #ff9933;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.8);
}

.halloween-topbar .highlight {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Halloween Timer */
.halloween-topbar .timer-block {
    background: rgba(255, 102, 0, 0.2);
    border: 2px solid #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.halloween-topbar .timer-value {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.halloween-topbar .timer-label {
    color: #ff9933;
}

/* Halloween Button */
.halloween-topbar .cta-button {
    background: linear-gradient(180deg, #ff7a00 0%, #ff4800 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.5);
}

.halloween-topbar .cta-button:hover {
    background: linear-gradient(180deg, #ff4800 0%, #ff7a00 100%);
    box-shadow: 0 6px 18px rgba(255, 72, 0, 0.7);
    color: #ffffff !important;
}

.halloween-topbar .cta-button:active {
    box-shadow: 0 2px 6px rgba(255, 72, 0, 0.5);
    color: #ffffff !important;
}

.halloween-topbar .cta-button::before {
    content: attr(data-emoji);
}

/* Halloween Close Button */
.halloween-topbar .topbar-close {
    color: #ff9933 !important;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

.halloween-topbar .topbar-close:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* Halloween Floating Elements */
.halloween-topbar .floating-element {
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5));
}

/* ============================================ */
/* BLACK FRIDAY PRESET - Modern Aesthetic */
/* ============================================ */

.black-friday-topbar {
    background: 
        repeating-linear-gradient(
            45deg,
            #000000 0px,
            #000000 20px,
            #1a0000 20px,
            #1a0000 40px
        ),
        linear-gradient(90deg, 
            rgba(228, 32, 36, 0.8) 0%, 
            rgba(139, 0, 0, 0.8) 50%, 
            rgba(228, 32, 36, 0.8) 100%
        );
    background-blend-mode: overlay;
    border-bottom: 1px solid #E42024;
    position: relative;
    overflow: hidden;
}



/* Minimalist stripes overlay - very subtle */
.black-friday-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            rgba(228, 32, 36, 0.02) 15px,
            rgba(228, 32, 36, 0.02) 30px
        );
    pointer-events: none;
    opacity: 0.6;
}

/* Soft vignette for depth */
.black-friday-topbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center, 
        transparent 30%, 
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

/* Black Friday Logo Image */
.black-friday-topbar .black-friday-logo {
    height: 150px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================ */
/* TYPOGRAPHY - Clean & Readable */
/* ============================================ */

.black-friday-topbar .topbar-text {
    color: #f5f5f5;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(228, 32, 36, 0.15);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* "BLACK FRIDAY" text - Premium styling */
.black-friday-topbar .black-friday-text {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 
        0 0 20px rgba(228, 32, 36, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(228, 32, 36, 0.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Highlight/Emphasis text - Bold red accent */
.black-friday-topbar .highlight {
    color: #E42024;
    font-weight: 700;
    text-shadow: 
        0 0 15px rgba(228, 32, 36, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
    padding: 0 4px;
}

/* ============================================ */
/* TIMER BLOCKS - Premium Card Design */
/* ============================================ */

.black-friday-topbar .timer-block {
    background: linear-gradient(
        145deg, 
        rgba(26, 5, 5, 0.4) 0%, 
        rgba(10, 10, 10, 0.6) 100%
    );
    border: 1px solid rgb(228 32 36 / 60%);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    backdrop-filter: blur(10px);
}

.black-friday-topbar .timer-value {
    color: #E42024;
    font-weight: 800;
    font-size: 20px;
    text-shadow: 
        0 0 15px rgba(228, 32, 36, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.black-friday-topbar .timer-label {
    color: #cccccc;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    line-height: 18px;
}

/* ============================================ */
/* CTA BUTTON - Modern Red Accent */
/* ============================================ */

.black-friday-topbar .cta-button {
    background: linear-gradient(
        135deg, 
        #E42024 0%, 
        #c01418 100%
    );
    color: #ffffff;
    
    box-shadow: 
        0 4px 16px rgba(228, 32, 36, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 24px;
    
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.black-friday-topbar .cta-button:hover {
    background: linear-gradient(
        135deg, 
        #ff2832 0%, 
        #E42024 100%
    );
    
    box-shadow: 
        0 6px 24px rgba(228, 32, 36, 0.5),
        0 0 30px rgba(228, 32, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    
    transform: translateY(-2px);
    color: #ffffff !important;
}

.black-friday-topbar .cta-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(228, 32, 36, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.black-friday-topbar .cta-button::before {
    content: attr(data-emoji);
    margin-right: 6px;
}

/* ============================================ */
/* ICONS & CLOSE BUTTON */
/* ============================================ */

.black-friday-topbar .topbar-icon {
    filter: 
        drop-shadow(0 0 8px rgba(228, 32, 36, 0.5))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.black-friday-topbar .topbar-close {
    color: #cccccc !important;
    text-shadow: 0 0 8px rgba(228, 32, 36, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
}



/* ============================================ */
/* FLOATING ELEMENTS */
/* ============================================ */

.black-friday-topbar .floating-element {
    filter: 
        drop-shadow(0 0 8px rgba(228, 32, 36, 0.4))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

/* ============================================ */
/* RESPONSIVE REFINEMENTS */
/* ============================================ */

@media (max-width: 768px) {
    .black-friday-topbar .timer-block {
        padding: 6px 10px;
    }
    
    .black-friday-topbar .timer-value {
        font-size: 1.4em;
    }
    
    .black-friday-topbar .cta-button {
        padding: 8px 18px;
        font-size: 0.9em;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .black-friday-topbar,
    .black-friday-topbar *,
    .black-friday-topbar::before {
        animation: none !important;
        transition: none !important;
    }
}


/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Tablet */
@media (max-width: 968px) {
    .topbar {
        padding: 0 20px;
        height: auto;
        min-height: 80px;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }

    .topbar-content {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .topbar-text {
        font-size: 15px;
        line-height: 1.3;
    }

    .countdown-timer {
        gap: 6px;
    }

    .timer-block {
        min-width: 45px;
        padding: 5px 8px;
    }

    .timer-value {
        font-size: 18px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .floating-element {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
        height: auto;
    }

    .topbar-content {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }

    .topbar-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .highlight {
        font-size: 18px;
    }

    .black-friday-topbar .black-friday-logo {
        height: 120px;
    }

    .countdown-timer {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .timer-block {
        min-width: 40px;
        padding: 4px 6px;
    }

    .timer-value {
        font-size: 16px;
    }

    .timer-label {
        font-size: 8px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 14px;
        width: auto;
    }

    .topbar-close {
        right: 10px;
        top: 10px;
        transform: none;
        font-size: 24px;
    }

    .topbar-close:hover {
        transform: rotate(90deg);
    }

    .floating-element {
        display: none;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .topbar {
        padding: 12px 15px;
        gap: 10px;
    }

    .topbar-icon {
        font-size: 24px;
    }

    .topbar-text {
        font-size: 12px;
    }

    .highlight {
        font-size: 16px;
    }

    .black-friday-topbar .black-friday-logo {
        height: 80px;
    }

    .countdown-timer {
        gap: 4px;
    }

    .timer-block {
        min-width: 35px;
        padding: 3px 5px;
        border-width: 1px;
    }

    .timer-value {
        font-size: 14px;
    }

    .timer-label {
        font-size: 7px;
    }

    .cta-button {
        padding: 8px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .topbar-close {
        right: 8px;
        top: 8px;
        font-size: 20px;
    }
}
