/* Index/Homepage Specific Styles */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--black);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.slide-content {
    position: absolute;
    text-align: center;
    color: var(--white);
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    color: var(--white);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.slider-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-arrow:hover {
    background-color: rgba(211, 47, 47, 0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Favorites Section */
.favorites-section {
    background-color: var(--light-gray);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Fade-in Animation */
.favorite-item,
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.favorite-item.fade-in,
.testimonial-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Favorites Slider */
.favorites-slider-container {
    display: none;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.favorites-slider {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y pinch-zoom;
    width: 100%;
}

.favorites-slider .favorite-item {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
}

.favorites-slider .favorite-content {
    padding: 20px;
}

.favorites-slider .favorite-name {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.favorites-slider .favorite-description {
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.favorites-slider .favorite-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.favorites-slider-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.favorites-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.favorites-slider-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.3);
}

.favorite-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2);
}

.favorite-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.favorite-content {
    padding: 20px;
}

.favorite-name {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-weight: 700;
}

.favorite-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.favorite-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

/* Hours Section */
.hours-section {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    color: var(--white);
}

.hours-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.hours-info h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day {
    font-weight: 600;
}

.time {
    color: var(--accent-red);
}

/* Location Section */
.location-section {
    background-color: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.location-info h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

.location-details {
    margin-bottom: 20px;
}

.location-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.location-details i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Mobile Testimonials Slider */
.testimonials-slider-container {
    display: none;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y pinch-zoom;
    width: 100%;
}

.testimonials-slider .testimonial-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
}

.testimonials-slider .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonials-slider-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonials-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonials-slider-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.3);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-red);
    margin-bottom: 5px;
}

.author-info .rating {
    color: #ffa000;
}

/* Special Offers Section */
.offers-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    text-align: center;
}

.offers-section .section-title h2 {
    color: var(--white);
}

.offers-content {
    max-width: 800px;
    margin: 0 auto;
}

.offers-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.offers-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .favorites-grid,
    .testimonials-grid {
        display: none;
    }

    .favorites-slider-container,
    .testimonials-slider-container {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .favorite-image {
        height: 200px;
    }

    .hours-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
