/* ================================
   EVENTS PAGE - MODERN DESIGN
   ================================ */

.events-page-wrapper {
    background: #9C70C3;
    min-height: 100vh;
    padding: 2rem 0;
}

/* ================================
   FILTERS SIDEBAR
   ================================ */
.filters-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.filters-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.filter-group {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-header {
    margin-bottom: 0.75rem;
}

.filter-label {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-check-icon {
    font-size: 1.1rem;
}

.filter-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-apply-filters {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-reset-filters {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

/* ================================
   SEARCH BAR
   ================================ */
.search-bar-container {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-bar-container .input-group-text {
    border: none;
    background: transparent;
    padding-left: 1rem;
}

.search-bar-container .form-control {
    border: none;
    font-size: 0.95rem;
    padding: 0.75rem;
}

.search-bar-container .form-control:focus {
    box-shadow: none;
}

/* ================================
   EVENT CARDS GRID
   ================================ */
.event-card-wrapper {
    transition: all 0.3s ease;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.event-card.today-highlight {
    border: 3px solid #8b5cf6;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.3);
}

.event-card.event-ended {
    opacity: 0.8;
    filter: grayscale(0.5);
}

.event-card.event-ended:hover {
    filter: grayscale(0.2);
    opacity: 0.9;
}

/* ================================
   EVENT IMAGE
   ================================ */
.event-image-container {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* 5:3 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

/* ================================
   BADGES
   ================================ */
.today-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.price-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.price-badge-inline.paid {
    background: #fdf2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.price-badge-inline.free {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

/* ================================
   EVENT CARD BODY
   ================================ */
.event-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-meta-info {
    margin-bottom: 1rem;
    flex: 1;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-row i {
    width: 20px;
}

/* ================================
   VIEW DETAILS BUTTON
   ================================ */
.btn-view-details {
    color: #6366f1;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    color: #4f46e5;
}

.btn-view-details i {
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(4px);
}

.event-card .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.event-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

/* ================================
   NO RESULTS
   ================================ */
.no-results {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ================================
   VIEW SWITCHER
   ================================ */
.view-switcher .btn-view-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.view-switcher .btn-view-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.view-switcher .btn-view-toggle.active {
    background: white;
    color: #764ba2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ================================
   ROW VIEW STYLES
   ================================ */
.events-row-list {
    animation: fadeInUp 0.6s ease backwards;
}

.date-badge-large {
    background: #3b82f6;
    /* Modern Blue */
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.date-group-wrapper:hover .date-badge-large {
    transform: scale(1.05);
}

.date-badge-large .month {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0.9;
}

.date-badge-large .day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.day-name {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.row-event-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.row-event-item:hover {
    transform: translateX(8px);
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.time-badge {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.location-text-row {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-title-row {
    color: #1e293b;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    margin: 0.4rem 0;
}

.event-subtitle-row {
    color: #64748b;
    font-weight: 500;
}

.btn-detail-row {
    background: white;
    color: #3b82f6;
    border: 2px solid #f1f5f9;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-detail-row:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* ENDED EVENT IN ROW VIEW */
.row-event-item.event-ended {
    opacity: 0.7;
    filter: grayscale(0.6);
}

.row-event-item.event-ended:hover {
    filter: grayscale(0.3);
    opacity: 0.9;
}

@media (max-width: 767px) {
    .row-event-item {
        padding: 1.25rem;
    }

    .event-title-row {
        font-size: 1.15rem;
    }

    .date-badge-large {
        width: 60px;
        height: 60px;
    }

    .date-badge-large .day {
        font-size: 1.4rem;
    }

    .date-header-row {
        margin-bottom: 1.5rem !important;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 991px) {
    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .events-page-wrapper {
        padding: 1rem 0;
    }
}

@media (max-width: 767px) {
    .event-card-wrapper {
        margin-bottom: 1.5rem;
    }

    .filters-sidebar {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-image-container {
        padding-top: 65%;
    }
}

/* ================================
   ANIMATIONS
   ================================ */
.event-card-wrapper {
    animation: fadeInUp 0.6s ease backwards;
}

.event-card-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.event-card-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.event-card-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.event-card-wrapper:nth-child(5) {
    animation-delay: 0.5s;
}

.event-card-wrapper:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ================================
   SCROLLBAR CUSTOM
   ================================ */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}