/* ================================================
   home.css — MehendiHub
   Styles only for index.html (homepage).
================================================ */


/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 88vh;
    background-color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-2xl);
    overflow: hidden;
}

/* Decorative pattern background */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 12px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 12px);
    pointer-events: none;
}

/* Hero left text content */
.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 580px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(245, 197, 24, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(245, 197, 24, 0.3);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: var(--text-4xl);
    color: var(--text-on-dark);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero-content h1 span {
    color: var(--color-gold);
}

.hero-content p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* Override secondary button color for dark hero */
.hero .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-gold);
}

.hero-stat span {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hero right image */
.hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-img-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 380px;
}

.hero-img-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-img-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background-color: var(--color-gold);
    color: var(--text-on-gold);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
}


/* ══════════════════════════════════════════════
   CATEGORIES SECTION
══════════════════════════════════════════════ */

.categories-section {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-page);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.cat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.cat-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.cat-info {
    flex: 1;
}

.cat-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cat-info p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.cat-arrow {
    font-size: var(--text-lg);
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--transition-fast);
}

.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ══════════════════════════════════════════════
   DESIGN OF THE DAY SECTION
══════════════════════════════════════════════ */

.dotd-section {
    background-color: var(--bg-section-alt);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.dotd-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.dotd-text {
    flex: 1;
}

.dotd-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.dotd-text h2 {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.dotd-text p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 440px;
}

.dotd-badge-row {
    margin-bottom: var(--space-xl);
}

.dotd-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.dotd-image {
    flex-shrink: 0;
    width: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dotd-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.dotd-image:hover img {
    transform: scale(1.03);
}


/* ══════════════════════════════════════════════
   FEATURED DESIGNS SECTION
══════════════════════════════════════════════ */

.featured-section {
    padding: var(--space-3xl) 0;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.featured-cta {
    text-align: center;
    margin-top: var(--space-xl);
}


/* ══════════════════════════════════════════════
   SECTION TITLE OVERRIDE
══════════════════════════════════════════════ */

.section-title span {
    color: var(--color-primary);
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: var(--space-2xl) var(--space-xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-img-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-img-card img {
        height: 320px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dotd-wrapper {
        flex-direction: column-reverse;
    }

    .dotd-image {
        width: 100%;
    }

    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .design-grid {
        grid-template-columns: 1fr;
    }
}