/* ============================================
   Artos Cafe & Bakehouse - Custom Styles
   Custom CSS for elements not covered by Tailwind
   ============================================ */

/* Header scroll effect */
.header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(245, 230, 211, 0.98);
}

.header.scrolled .logo {
    height: 60px;
}

/* Navigation link underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8B5A3C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Carousel item styles */
.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    aspect-ratio: 3/4;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video play overlay */
.carousel-item .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-item.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Play button */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(245, 230, 211, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-item:hover .play-button {
    background: #F5E6D3;
    transform: scale(1.1);
}

/* Play button triangle icon */
.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #8B5A3C;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Carousel indicators */
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8B5A3C;
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    opacity: 1;
    transform: scale(1.3);
}

/* ============================================
   Product Category Cards
   ============================================ */

.category-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 320px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(139, 90, 60, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(61, 40, 23, 0.95), rgba(61, 40, 23, 0.7), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(139, 90, 60, 0.95), rgba(139, 90, 60, 0.7), transparent);
}

.category-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
}

/* ============================================
   Swiper Slider Customization
   ============================================ */

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: rgba(245, 230, 211, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #F5E6D3;
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
    color: #8B5A3C;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #8B5A3C;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    background: #8B5A3C;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 100%;
    }

    .category-card {
        height: 280px;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        height: 250px;
    }

    .category-card h3 {
        font-size: 1.25rem;
    }

    .category-card .category-overlay {
        padding: 2rem 1rem 1rem;
    }
}
