/* Black Friday Banner Styles */

.black-friday-banner {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border-bottom: 3px solid #e61e2a;
    padding: 15px 20px;
    position: relative;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(230, 30, 42, 0.3);
    margin-top: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bf-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.bf-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bf-icon {
    font-size: 3rem;
    animation: heartbeat 1.5s infinite;
}

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

.bf-text {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
}

.bf-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bf-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.bf-price {
    color: #e61e2a;
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(230, 30, 42, 0.5);
}

.bf-urgency {
    color: #ffc107;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    animation: pulse 2s infinite;
}

.bf-urgency span {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 900;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.bf-cta {
    background: linear-gradient(135deg, #e61e2a 0%, #c91a23 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(230, 30, 42, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.bf-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(230, 30, 42, 0.6);
    background: linear-gradient(135deg, #ff2a36 0%, #e61e2a 100%);
}

.bf-cta i {
    transition: transform 0.3s ease;
}

.bf-cta:hover i {
    transform: translateX(5px);
}

.bf-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.bf-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .black-friday-banner {
        padding: 15px 10px;
    }
    
    .bf-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bf-icon {
        font-size: 2.5rem;
    }
    
    .bf-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .bf-subtitle {
        font-size: 1rem;
    }
    
    .bf-price {
        font-size: 1.3rem;
    }
    
    .bf-urgency {
        font-size: 0.9rem;
    }
    
    .bf-urgency span {
        font-size: 1.1rem;
    }
    
    .bf-cta {
        padding: 12px 25px;
        font-size: 1rem;
        letter-spacing: 1px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .bf-text {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .bf-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .bf-subtitle {
        font-size: 0.9rem;
    }
    
    .bf-price {
        font-size: 1.2rem;
    }
}

/* Animation for when spots are running low */
.bf-urgency.low-spots {
    animation: urgentPulse 1s infinite;
    color: #ff6b35;
}

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

/* Hide banner class */
.black-friday-banner.hidden {
    display: none;
}

/* Adjust navbar position when banner is visible */
body:has(.black-friday-banner:not(.hidden)) .navbar {
    top: 0;
}

/* Smooth transition when banner closes */
.black-friday-banner.closing {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}
