/**
 * Home Page Specific Styles
 * Only styles unique to the home page
 */

/* ========== Hero Section ========== */
.hero-section {
    padding: var(--spacing-md) 0;
    background: var(--gray-50);
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 0 var(--spacing-md);
}

.hero-swiper {
    width: 100%;
    /* Mobile: 4:3 aspect ratio untuk konten portrait-friendly */
    aspect-ratio: 4 / 3;
    max-height: 280px;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

/* Hero Pagination Dots */
.hero-swiper .swiper-pagination {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: auto;
}

.hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 3px;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Dynamic bullets pagination */
.hero-swiper .swiper-pagination-bullets-dynamic {
    overflow: hidden;
}

.hero-swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(0.5);
    opacity: 0;
}

.hero-swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(0.8);
    opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
    transform: scale(0.6);
    opacity: 0.4;
}

.hero-swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(0.6);
    opacity: 0.4;
}

.hero-swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
    transform: scale(1);
    opacity: 1;
}

/* ========== Featured Items Section ========== */
.featured-items {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

/* ========== Contact Section ========== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.contact-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.contact-btn i {
    font-size: var(--font-size-lg);
}

/* ========== Operating Hours ========== */
.hours-section {
    background: var(--gray-50);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-xl);
    margin: var(--spacing-lg) var(--spacing-md);
}

.hours-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.status-badge.closed {
    background: var(--error-color);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
}

.hours-time {
    color: var(--gray-600);
}

/* ========== Responsive ========== */
@media (min-width: 576px) {
    .hero-swiper {
        aspect-ratio: 16 / 10;
        max-height: 350px;
    }
}

@media (min-width: 768px) {
    .hero-swiper {
        /* Tablet: 16:9 aspect ratio untuk landscape */
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .hero-slider {
        margin: 0 var(--spacing-lg);
    }

    .hero-nav-btn {
        width: 48px;
        height: 48px;
    }

    .hero-nav-btn i {
        font-size: var(--font-size-base);
    }

    .contact-section {
        padding: var(--spacing-3xl) var(--spacing-lg);
    }

    .contact-title {
        font-size: var(--font-size-3xl);
    }

    .contact-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 992px) {
    .hero-swiper {
        /* Desktop: 21:9 aspect ratio untuk wide display */
        aspect-ratio: 21 / 9;
        max-height: 500px;
    }

    .hero-slider {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1400px) {
    .hero-swiper {
        /* Ultra wide: 24:9 aspect ratio untuk large screens */
        aspect-ratio: 24 / 9;
        max-height: 550px;
    }
}