/**
 * ============================================
 * CASIO ELITE - Offers Page Styles
 * Special styles for offers and discounts
 * ============================================
 */

/* ============================================
   FLOATING BUTTONS
============================================ */
.chat-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb300, #e5a100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-center: center;
    color: #000;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 179, 0, 0.6);
}

/* ============================================
   CHAT WIDGET STYLES (overrides for offers page)
============================================ */
/* Chat box uses base styles from style.css */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        left: 15px;
    }
    
    .chat-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
    
    .chat-widget {
        left: 1rem;
        bottom: 80px;
    }
    
    .chat-widget .chat-box {
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}

/* ============================================
   FLASH SALE BANNER
============================================= */
.flash-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
}

.flash-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.flash-banner-text,
.flash-banner-timer {
    flex-shrink: 0;
}

.flash-icon {
    animation: flash 1s ease-in-out infinite;
    color: #fbbf24;
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.countdown-unit {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

/* ============================================
   OFFERS HERO SECTION
============================================= */
.offers-hero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
}

/* ============================================
   GLASS RED EFFECT
============================================= */
.glass-red {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   FLASH DEAL CARDS
============================================= */
.flash-deal-card {
    border: 2px solid transparent;
    background: 
        linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
        linear-gradient(135deg, var(--color-sale), var(--color-orange)) border-box;
    animation: flashDealPulse 2s ease-in-out infinite;
}

@keyframes flashDealPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.5), 0 0 60px rgba(239, 68, 68, 0.3);
    }
}

/* ============================================
   TIMER BADGE
============================================= */
.timer-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer-badge i {
    color: var(--color-accent);
    animation: pulse 1s ease-in-out infinite;
}

/* ============================================
   PAGE TRANSITIONS
============================================= */
.hidden-page {
    display: none;
}

.active-page {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   OFFERS STATS CARDS
============================================= */
.offers-stats-card {
    transition: all 0.3s ease;
}

.offers-stats-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

/* ============================================
   RESPONSIVE
============================================= */
/* Force override Tailwind classes */
#navbar.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#navbar.px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

#navbar .text-xl {
    font-size: 1.125rem !important;
}

#navbar .w-9,
#navbar .h-9 {
    width: 2rem !important;
    height: 2rem !important;
}

@media (max-width: 1024px) {
    #navbar {
        padding: 0.625rem 0.875rem !important;
    }
    
    #navbar .logo-wrapper span {
        font-size: 1.375rem !important;
    }
    
    #navbar button,
    #navbar a[onclick] {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 768px) {
    .flash-banner {
        font-size: 11px;
        padding: 5px 4px;
        height: auto;
        min-height: 32px;
    }
    
    .flash-banner .container {
        padding: 0 0.5rem;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    .flash-banner-text,
    .flash-banner-timer {
        font-size: 0.75rem;
    }
    
    .flash-banner span:not(.countdown-unit) {
        font-size: 0.75rem;
    }
    
    .countdown-unit {
        min-width: 22px;
        font-size: 11px;
        padding: 2px 5px;
    }
    
    /* Navbar Mobile Styles */
    #navbar {
        top: 28px !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 48px !important;
    }
    
    #navbar .container {
        padding: 0 !important;
    }
    
    #navbar .logo-wrapper {
        flex-shrink: 0 !important;
    }
    
    #navbar .logo-wrapper span {
        font-size: 1.125rem !important;
        line-height: 1.2 !important;
    }
    
    #navbar button,
    #navbar a[onclick] {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.75rem !important;
        padding: 0 !important;
        min-width: 2rem !important;
        min-height: 2rem !important;
    }
    
    #navbar .flex.items-center.gap-2,
    #navbar .flex.items-center.gap-4 {
        gap: 0.375rem !important;
    }
    
    #navbar .hidden.md\:flex {
        display: none !important;
    }
    
    #navbar .hidden.lg\:flex {
        display: none !important;
    }
    
    main {
        padding-top: 100px !important;
    }
    
    .offers-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .offers-stats-card {
        padding: 0.875rem !important;
    }
    
    .offers-stats-card .text-4xl {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .flash-banner {
        font-size: 10px;
        padding: 4px 2px;
        min-height: 28px;
    }
    
    .flash-banner .container {
        flex-wrap: nowrap !important;
        gap: 0.375rem !important;
        padding: 0 0.25rem;
    }
    
    .flash-banner-text,
    .flash-banner-timer {
        font-size: 0.625rem;
    }
    
    .flash-banner span:not(.countdown-unit) {
        font-size: 0.625rem;
    }
    
    .countdown-unit {
        min-width: 20px;
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .flash-banner i {
        font-size: 0.625rem;
    }
    
    /* Navbar Small Mobile Styles */
    #navbar {
        top: 24px !important;
        padding: 0.375rem 0.5rem !important;
        min-height: 44px !important;
    }
    
    #navbar .logo-wrapper span {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    #navbar button,
    #navbar a[onclick] {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.625rem !important;
        padding: 0 !important;
        min-width: 1.75rem !important;
        min-height: 1.75rem !important;
    }
    
    #navbar .flex.items-center.gap-2,
    #navbar .flex.items-center.gap-4 {
        gap: 0.25rem !important;
    }
    
    #navbar i {
        font-size: 0.75rem !important;
    }
    
    main {
        padding-top: 90px !important;
    }
    
    .offers-hero h1 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    #navbar {
        top: 22px !important;
        padding: 0.25rem 0.375rem !important;
        min-height: 40px !important;
    }
    
    #navbar .logo-wrapper span {
        font-size: 0.875rem !important;
    }
    
    #navbar button,
    #navbar a[onclick] {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.5rem !important;
        min-width: 1.5rem !important;
        min-height: 1.5rem !important;
    }
    
    #navbar i {
        font-size: 0.625rem !important;
    }
    
    main {
        padding-top: 85px !important;
    }
}

