/**
 * Home Slider & Banner Styles
 * Optimized for E-commerce Website
 */

/* ============================================
   HERO SLIDER SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* E-commerce standard hero height */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

/* Directional transitions for proper swipe animation */
.hero-slide.slide-from-right {
    transform: translateX(100%);
}

.hero-slide.slide-from-left {
    transform: translateX(-100%);
}

.hero-slide.slide-to-left {
    transform: translateX(-100%);
}

.hero-slide.slide-to-right {
    transform: translateX(100%);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.hero-slide.no-text::before {
    background: none;
}

.hero-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 80px 0;
    color: white;
    text-align: center;
    margin: 0 auto;
}

.hero-content.button-only {
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #7d3cff 0%, #ff7f32 50%, #00cfe8 100%);
    background-size: 200% 200%;
    backdrop-filter: blur(15px);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 25px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.4), 0 0 30px rgba(255, 127, 50, 0.3);
    animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-shop-now {
    padding: 22px 55px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50px;
    background: #ff6b35;
    color: white;
    border: 4px solid white;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6), 
                0 0 0 0 rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6), 
                    0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6), 
                    0 0 0 20px rgba(255, 107, 53, 0);
    }
}

.btn-shop-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s ease;
}

.btn-shop-now::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b35, #ff8c5a, #ff6b35);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-shop-now:hover::before {
    left: 100%;
}

.btn-shop-now:hover::after {
    opacity: 1;
}

.btn-shop-now:hover {
    transform: translateY(-8px) scale(1.1);
    background: #ff8c5a;
    border-color: #fff;
    box-shadow: 0 25px 60px rgba(255, 107, 53, 0.8), 
                0 0 0 8px rgba(255, 107, 53, 0.2),
                0 0 80px rgba(255, 107, 53, 0.4);
}

.btn-shop-now:active {
    transform: translateY(-4px) scale(1.05);
}

.btn-shop-now i {
    margin-right: 12px;
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* ============================================
   PROMOTIONAL BANNERS (HOME BANNER)
   ============================================ */
.promo-banners {
    padding: 60px 0;
    background: #f8f9fa;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.promo-banner {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 500px; /* Increased height for better visibility */
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.promo-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-badge {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7d3cff 0%, #ff7f32 50%, #00cfe8 100%);
    background-size: 200% 200%;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    border: 3px solid rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.4), 0 0 30px rgba(255, 127, 50, 0.3);
    animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.promo-subtitle {
    font-size: 16px !important;
    opacity: 0.95 !important;
    margin-bottom: 20px !important;
    font-weight: 500;
}

.promo-overlay .promo-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #7d3cff 0%, #ff7f32 50%, #28c76f 100%);
    background-size: 200% 200%;
    color: white;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(125, 60, 255, 0.5), 0 0 40px rgba(255, 127, 50, 0.3);
    transition: all 0.4s ease;
    animation: buttonGradient 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.promo-overlay .promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.promo-overlay .promo-btn:hover::before {
    left: 100%;
}

.promo-overlay .promo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(125, 60, 255, 0.7), 0 0 60px rgba(255, 127, 50, 0.5), 0 0 80px rgba(40, 199, 111, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.promo-overlay {
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 20px;
    }
    
    .slider-next {
        right: 20px;
    }
    
    .promo-banner {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-shop-now {
        width: 100%;
        justify-content: center;
    }
    
    .slider-nav {
        display: none;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-banner {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 30px;
    }
}

/* Small mobile screens - Reduce banner sizes for full content visibility */
@media (max-width: 480px) {
    .hero-slider {
        height: 280px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero-badge {
        padding: 10px 24px;
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn-shop-now {
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .btn-shop-now i {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 24px;
    }
    
    .promo-banner {
        height: 250px;
    }
    
    .promo-overlay {
        padding: 20px;
    }
    
    .promo-badge {
        padding: 8px 20px;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .promo-overlay h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .promo-subtitle {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    .promo-overlay .promo-btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* Ultra-small mobile screens - Even more compact banners */
@media (max-width: 360px) {
    .hero-slider {
        height: 240px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .hero-badge {
        padding: 8px 20px;
        font-size: 12px;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .btn-shop-now {
        padding: 14px 32px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .btn-shop-now i {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 6px;
    }
    
    .slider-dot {
        width: 7px;
        height: 7px;
    }
    
    .slider-dot.active {
        width: 20px;
    }
    
    .promo-banner {
        height: 220px;
    }
    
    .promo-overlay {
        padding: 15px;
    }
    
    .promo-badge {
        padding: 6px 16px;
        font-size: 12px !important;
        margin-bottom: 8px !important;
        letter-spacing: 1px;
    }
    
    .promo-overlay h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .promo-subtitle {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    
    .promo-overlay .promo-btn {
        padding: 10px 24px;
        font-size: 12px;
        letter-spacing: 1px;
    }
}
