/*
 * Ethan's Appliance Center - Home Page Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   Hero Section Enhancements
   ========================================================================== */

.hero {
    min-height: 650px;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   Category Section
   ========================================================================== */

.section-categories {
    position: relative;
    overflow: hidden;
}

    .section-categories::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(196, 30, 58, 0.05) 0%, transparent 70%);
        border-radius: 50%;
    }

/* ==========================================================================
   Featured Products Grid
   ========================================================================== */

.section-featured .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.section-featured .product-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

    .section-featured .product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .section-featured .product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .section-featured .product-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .section-featured .product-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .section-featured .product-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .section-featured .product-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .section-featured .product-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .section-featured .product-card:nth-child(8) {
        animation-delay: 0.8s;
    }

/* ==========================================================================
   Promo Banner Enhanced
   ========================================================================== */

.section-promo .promo-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 50%, #4A0E1A 100%);
    position: relative;
    overflow: hidden;
}

    .section-promo .promo-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
        background-size: 50px 50px;
    }

    .section-promo .promo-banner::after {
        content: '';
        position: absolute;
        bottom: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
        border-radius: 50%;
    }

.promo-banner-content {
    position: relative;
    z-index: 2;
}

.promo-banner-image {
    position: absolute;
    right: 5%;
    bottom: 0;
    max-width: 400px;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* ==========================================================================
   Promo Products Section
   ========================================================================== */

.section-promo-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* ==========================================================================
   Branch Grid
   ========================================================================== */

.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ==========================================================================
   Features/Why Choose Us Section
   ========================================================================== */

.section-features {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

    .section-features::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 30%);
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(196, 30, 58, 0.3);
        transform: translateY(-5px);
    }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: var(--text-3xl);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-5);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.feature-text {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Brand Carousel Enhancements
   ========================================================================== */

.brand-carousel {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1199.98px) {
    .section-featured .product-grid,
    .section-promo-products .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .hero {
        min-height: 500px;
    }

    .section-featured .product-grid,
    .section-promo-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner-image {
        display: none;
    }

    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 450px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .feature-card {
        padding: var(--space-6) var(--space-4);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }

    .section-promo .promo-banner {
        padding: var(--space-8) var(--space-5);
        min-height: auto;
    }

    .promo-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 575.98px) {
    .section-featured .product-grid,
    .section-promo-products .product-grid {
        grid-template-columns: 1fr;
    }
}
