/* ===== Home Page Specific Styles ===== */

.home-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 24px;
}

.category-sections {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* ===== Category Section ===== */
.category-section {
    position: relative;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 32px;
    color: var(--color-primary);
}

.btn-view-all {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.btn-view-all:hover {
    gap: 8px;
}

/* ===== Carousel ===== */
.carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel {
    display: flex;
    gap: 20px;
    padding: 4px;
}

/* ===== Business Card (Horizontal) ===== */
.business-card-horizontal {
    flex: 0 0 300px;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.business-card-horizontal:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.business-card-horizontal-image {
    width: 100%;
    height: 200px;
    background: var(--color-bg-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

.business-card-horizontal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.business-card-horizontal-content {
    padding: 16px;
}

.business-card-horizontal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-card-horizontal-category {
    display: inline-block;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.business-card-horizontal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.business-card-horizontal-address {
    color: var(--color-text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Carousel Navigation Buttons ===== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    z-index: 10;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-lg);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav-prev {
    left: -20px;
}

.carousel-nav-next {
    right: -20px;
}

/* ===== Loading State ===== */
.loading-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--color-text-secondary);
}

.error-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--color-primary);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.empty-state p {
    color: var(--color-text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .home-main {
        padding: 32px 16px;
    }

    .category-sections {
        gap: 40px;
    }

    .category-title {
        font-size: 22px;
    }

    .category-icon {
        font-size: 26px;
    }

    .btn-view-all {
        font-size: 14px;
    }

    .business-card-horizontal {
        flex: 0 0 280px;
    }

    .carousel-nav-prev {
        left: 0;
    }

    .carousel-nav-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .business-card-horizontal {
        flex: 0 0 260px;
    }

    .carousel {
        gap: 16px;
    }
}
