

/* ========== Main Content Styles ========== */

.main-content {
    /* padding-top: 90px; */
    width: 100%;
    padding: 0 10px;
}


/* ========== Flyer Carousel Styles ========== */

.flyer-carousel-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    /* margin-top: 35px; */
    padding: 20px;

    .flyer-carousel.hidden {
        /* display: none; */
        visibility: hidden;
    }
    
    .flyer-image {
        cursor: pointer;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        border-radius: 16px;
        overflow: hidden;
        transform: scale(0.97);
        width: 100%;
        height: auto;
        box-shadow: 0 4px 8px rgba(111, 68, 255, 0.15);
        
        &:hover {
            transform: scale(1);
            filter: brightness(1.2) contrast(0.95);
            overflow: hidden;
            border-radius: 16px;
            box-shadow: var(--hover-shadow);
        }
    }
    
    /* Custom Slick Carousel Styling */
    .slick-prev,
    .slick-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: var(--light);
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 8px rgba(111, 68, 255, 0.15);
        width: 45px;
        height: 45px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        transition: all 0.3s ease;
        color: var(--primary);
    
        &:hover {
            background-color: var(--primary);
            color: var(--light);
            transform: translateY(-50%) scale(1.1);
        }

        &::before {
            display: none;
        }
    
        i {
            /* color: var(--primary); */
            font-size: 28px;
        }
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
    
    .slick-dots {
        bottom: -30px;

        li {
            button::before {
                color: var(--primary);
                opacity: 0.25;
                font-size: 10px;
            }
            
            &.slick-active button::before {
                color: var(--primary);
                opacity: 0.75;
            }
        }
    }
}


/* ========== Events Section Styles ========== */

.events-section-container {
    max-width: 1200px;
    padding: 10px 20px;
    margin: 0 auto 40px;
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 30px;
        
        .section-title {
            font-size: 38px;
            font-weight: 800;
            margin-bottom: 16px;
            color: var(--dark);
            letter-spacing: -0.5px;
        }
        
        .location-dropdown {
            position: relative;
            display: inline-flex;
            cursor: pointer;
            align-items: center;
            padding: 4px;
            border-radius: 5px;
            transition: all 300ms ease, font-size 0s ease;

            * {
                user-select: none;
            }
            
            .selected-location {
                color: var(--primary);
                font-weight: 700;
                letter-spacing: 0.5px;
                border-bottom: 2px solid var(--primary);
                padding-bottom: 2px;
            }
            
            .dropdown-arrow {
                margin-left: 3px;
                transition: transform 0.3s ease;
                font-size: 30px;
                color: var(--primary);
                pointer-events: none;
                cursor: pointer;
                
                &.open {
                    transform: translateY(-5%) rotate(180deg);
                }
            }
            
            .location-dropdown-content {
                position: absolute;
                top: calc(100% + 8px);
                left: calc(50% - 15px);
                translate: -50% 0;
                width: calc(100% - 30px);
                min-width: 175px;
                max-height: 300px;
                overflow-y: auto;
                background-color: var(--light);
                box-shadow: 0 8px 24px rgba(111, 68, 255, 0.15);
                border-radius: 16px;
                z-index: 1000;
                padding: 8px 0;
                animation: fadeIn 0.25s cubic-bezier(0.25, 1, 0.5, 1);
                border: 1px solid var(--purple-100);
            
                &.hidden {
                    display: none;
                }
                
                .location-dropdown-item {
                    padding: 16px 18px;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    font-weight: 500;
                    border-left: 3px solid transparent;
                    font-size: 15px;
                    
                    &:not(:last-child) {
                        border-bottom: 1px solid var(--purple-100);
                    }
                    
                    &:hover {
                        background-color: var(--purple-100);
                        border-left: 3px solid var(--primary-light) !important;
                    }
                    
                    &.selected {
                        background-color: var(--purple-200);
                        border-left: 3px solid var(--primary) !important;
                        font-weight: 600;
                        color: var(--primary);
                    }
                }
            }
        }
        
        .section-subtitle {
            font-size: 18px;
            color: var(--gray-light);
            margin-bottom: 0;
            /* max-width: 600px; */
        }
        
        .filter-options-container {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            
            .filter-tabs {
                display: flex;
                align-items: center;
                gap: 8px;
                border: 1px solid rgba(107, 56, 251, 0.2);
                border-radius: 50px;
                padding: 4px;
                background: rgba(107, 56, 251, 0.05);
                
                .filter-tab {
                    padding: 8px 16px;
                    cursor: pointer;
                    font-family: var(--font-primary);
                    font-size: 15px;
                    font-weight: 500;
                    /* transition: all 0.3s ease; */
                    background: none;
                    border: none;
                    outline: none;
                    position: relative;
                    border-radius: 30px;
                    white-space: nowrap;
                    transition: all 250ms ease;
                    
                    &.active {
                        font-weight: 600;
                        color: var(--light);
                        background-color: var(--primary);
                    }
                    
                    &:hover:not(.active) {
                        background-color: rgba(111, 68, 255, 0.1);
                        color: var(--primary);
                    }
                }
            }
        }
    }
    
    .cards-container-wrapper {
        position: relative;
        
        .navigation-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--light);
            color: var(--primary);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease, display 0s ease;
            box-shadow: 0 4px 20px rgba(111, 68, 255, 0.2);
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            opacity: 0;
            
            i {
                font-size: 28px;
            }
            
            &.show {
                opacity: 1;
            }

            &.hidden {
                display: none;
            }
            
            &.prev-btn {
                left: -20px;
            }
            
            &.next-btn {
                right: -20px;
            }
            
            &:hover {
                background: var(--primary);
                color: var(--light);
                transform: translateY(-50%) scale(1.1);
            }
        }

        .event-cards-container {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            padding: 10px 0 30px 0;
            scrollbar-width: thin;
            scroll-behavior: smooth;
            position: relative;

            .no-events-container {
                width: 100%;
                text-align: center;
                padding: 60px 0;
                color: var(--gray-medium);
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 15px;

                &.hidden {
                    display: none;
                }

                .no-events-title {
                    font-size: 24px;
                    margin-bottom: 10px;
                    color: var(--dark);
                }

                .view-all-btn {
                    margin-top: 15px;
                    padding: 12px 24px;
                    border-radius: 50px;
                    border: none;
                    font-weight: 600;
                    cursor: pointer;
                    transition: all 200ms ease;
                    font-family: var(--font-primary);
                    
                    background-color: var(--primary);
                    color: var(--light);
                    
                    &:hover {
                        background-color: var(--primary-dark);
                        transform: translateY(-2px);
                        box-shadow: 0 6px 15px rgba(107, 56, 251, 0.3);
                    }
                }
            }

            .event-card {
                flex: none;
                width: 300px;
                height: 450px !important;
                border-radius: 16px;
                overflow: hidden;
                background-color: var(--neutral-50);
                box-shadow: rgba(22, 22, 43, 0.04) 0px 8px 20px;
                cursor: pointer;
                border: 1px solid var(--neutral-200);
                position: relative;
                min-width: 270px;
                /* margin: 0 auto; */
                display: flex;
                flex-direction: column;
                word-wrap: break-word;
                transition: transform 250ms ease;

                &.filter-hide {
                    display: none !important;
                }
    
                &:hover {
                    transform: translateY(-5px);
                    box-shadow: rgba(22, 22, 43, 0.08) 0px 12px 24px;

                    .card-image-container .card-image {
                        transform: scale(1.05);
                        filter: brightness(1.3);
                    }
                }

                .event-link {
                    position: absolute;
                    inset: 0;
                    z-index: 5;
                }

                .rank-badge {
                    position: absolute;
                    top: 12px;
                    left: 12px;
                    z-index: 1;
                    width: 40px;
                    height: 40px;
                    border-radius: 12px;
                    background-color: rgba(0, 0, 0, 0.7);
                    backdrop-filter: blur(5px);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px;
                    /* transition: transform 0.3s; */
                    border: 1px solid rgba(255, 255, 255, 0.2);
    
                    font-size: 22px;
                    font-weight: 700;
                    line-height: 1;
                    color: white;
                    font-family: var(--font-primary);
                }

                .card-image-container {
                    position: relative;
                    height: 200px;
                    overflow: hidden;
                    
                    .card-image {
                        position: absolute;
                        top: 0px;
                        left: 0px;
                        width: 100%;
                        height: 100%;
                        background-size: cover;
                        background-position: center center;
                        transition: all 250ms ease;
                        transform: scale(1);
                    }
    
                    .card-price {
                        position: absolute;
                        bottom: 12px;
                        right: 12px;
                        z-index: 1;
                        background-color: rgba(0, 0, 0, 0.75);
                        color: white;
                        border-radius: 30px;
                        padding: 6px 12px;
                        font-size: 14px;
                        font-weight: 600;
                        backdrop-filter: blur(5px);
                        border: 1px solid rgba(255, 255, 255, 0.2);
                        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
                    }
                }

                .card-content {
                    padding: 20px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    gap: 12px;
                    flex: 1;
    
                    .card-date {
                        display: flex;
                        align-items: center;
                        font-size: 14px;
                        color: var(--primary);
                        font-weight: 600;
                    }
    
                    .card-title {
                        font-size: 18px;
                        font-weight: 700;
                        line-height: 1.4;
                        color: var(--dark);
                        margin: 0px;
                        transition: color 0.3s;
                    }
    
                    .card-location {
                        display: flex;
                        align-items: flex-start;
                        font-size: 14px;
                        color: var(--gray-medium);
        
                        span {
                            line-height: 1.4;
                        }
                    }
    
                    .card-button {
                        background-color: var(--neutral-100);
                        color: var(--dark);
                        border: none;
                        border-radius: 10px;
                        padding: 12px;
                        font-weight: 600;
                        font-size: 15px;
                        cursor: pointer;
                        transition: 250ms;
                        width: 100%;
                        text-align: center;
                        z-index: 6;
        
                        &:hover {
                            background-color: var(--primary);
                            color: white;
                        }
                    }
                }
            }
        }
    }
}






/* ========== Media Queries ========== */
@media (max-width: 767px) {

    .main-content {
        padding: 0;
    }

    .flyer-carousel-container {
        padding: 0;
        margin-top: 5px;

        .flyer-image:hover {
            transform: scale(0.97);
        }

        .slick-dots li {
            margin: 0 2px;
        }
    }

    .events-section-container {
        .section-header {
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 10px;
            gap: 15px;
            
            .section-title {
                font-size: 28px;
                margin-bottom: 10px;
            }
    
            .section-subtitle {
                font-size: 16px;
                /* margin-bottom: 16px; */
            }

            .location-dropdown .dropdown-arrow {
                font-size: 20px;
            }
    
            .filter-options-container {
                width: 100%;
                overflow-x: auto;
                margin-bottom: 10px;
                
                .filter-tabs {
                    flex-wrap: wrap;
                    justify-content: center;
                    border-radius: 25px;
                    margin: auto;
                    gap: 5px;
            
                    .filter-tab {
                        flex: 1;
                        font-size: 14px;
                        padding: 8px 12px;
                    }
                }
            }
        }

        .cards-container-wrapper {
            .navigation-btn {
                display: none !important;
            }

            .event-cards-container {
                gap: 16px;
                scroll-snap-type: x mandatory;
                flex-wrap: wrap;
                justify-content: center;
        
                .event-card {
                    scroll-snap-align: start;

                    .card-content .card-button {
                        background-color: var(--primary);
                        color: white;
                    }
                }
            }
        }


    }




}







/* ========== Keyframes ========== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}