/* Events Page Styles */
.events-page {
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    padding: 4rem 0;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.header-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-text p {
    font-size: 1.25rem;
    opacity: 1;
    max-width: 600px;
    color: white;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Search and Filters */
.search-filters {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
    z-index: 100;
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.search-input-group {
    display: flex;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
}

.search-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.search-btn:hover {
    background: #b91c1c;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: #dc2626;
}

/* Featured Events and Calendar Section */
.featured-events-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.featured-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.featured-events {
    padding: 10px;
}

.featured-events .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #1f2937;
}

.featured-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px;
}

.featured-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.featured-carousel .featured-event {
    flex: 0 0 calc(50% - 0.75rem - 10px);
    min-width: calc(50% - 0.75rem - 10px);
    max-width: calc(50% - 0.75rem - 10px);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: #dc2626;
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.active {
    background: #dc2626;
}

.calendar-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky;
    top: 200px;
}

.featured-event {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.featured-event:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.featured-event img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-event-content {
    padding: 1.5rem;
}

.event-badge {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.featured-event h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.meta-icon {
    font-size: 1rem;
}

.event-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #dc2626;
}

/* Calendar Sidebar */
.calendar-sidebar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-sidebar .calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.calendar-nav-btn:hover {
    background: #dc2626;
    color: white;
}

#current-month {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    min-width: 100px;
    text-align: center;
}

.calendar-sidebar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: 0.75rem;
}

.calendar-sidebar .calendar-day {
    background: white;
    padding: 0.5rem 0.25rem;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.calendar-sidebar .calendar-day:hover {
    background: #f9fafb;
}

.calendar-sidebar .calendar-day.header {
    background: #6b7280;
    color: white;
    font-weight: 500;
    text-align: center;
    min-height: auto;
    padding: 0.5rem 0.25rem;
    cursor: default;
    font-size: 0.625rem;
}

.calendar-sidebar .calendar-day.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

.calendar-sidebar .calendar-day.today {
    background: #fef2f2;
    border: 1px solid #dc2626;
}

.calendar-sidebar .day-number {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.calendar-sidebar .day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.calendar-sidebar .day-event {
    background: #dc2626;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
    font-size: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.calendar-sidebar .day-event:hover {
    background: #b91c1c;
}

.calendar-sidebar .day-event.truncated {
    background: #6b7280;
}

/* Events List */
.events-list-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.list-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.view-btn:hover,
.view-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.events-container {
    margin-bottom: 3rem;
}

/* List View */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: all 0.3s;
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.event-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.event-item-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.event-item p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-icon {
    font-size: 1rem;
}

.event-item-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.primary {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
}

.action-btn.secondary {
    background: #7c3aed;
    color: white;
}

.action-btn.outline {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* Grid View */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.event-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.card-action-btn.primary {
    background: #dc2626;
    color: white;
}

.card-action-btn.outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 4rem 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #b91c1c;
}

/* Event Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #dc2626;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

#modal-event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.modal-event-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .search-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-carousel .featured-event {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }
    
    .featured-carousel-container {
        padding: 10px;
    }
    
    .calendar-sidebar {
        position: static;
    }
    
    .calendar-sidebar .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .list-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .event-item {
        grid-template-columns: 1fr;
    }
    
    .event-item img {
        height: 200px;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        min-width: auto;
        flex-direction: column;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .search-input-group {
        max-width: none;
    }
    
    .filter-group select {
        min-width: auto;
        flex: 1;
    }
    
    .featured-events .section-title {
        font-size: 1.5rem;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
    }
    
    .calendar-sidebar {
        padding: 1rem;
    }
    
    .calendar-sidebar .calendar-grid {
        font-size: 0.625rem;
    }
    
    .calendar-sidebar .calendar-day {
        min-height: 40px;
        padding: 0.25rem 0.125rem;
    }
    
    .calendar-sidebar .day-event {
        font-size: 0.375rem;
        padding: 0.0625rem 0.125rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}