/* Event Calendar Styles */
.event-calendar-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 1.5rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.calendar-header h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
    color: white;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

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

.view-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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

.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #4b5563;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    min-height: 80px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0.25rem;
}

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

.calendar-day.today {
    background: #eff6ff;
}

.calendar-day.selected {
    border-color: #dc2626;
    background: #fef2f2;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.calendar-day.today .day-number {
    color: #2563eb;
}

.calendar-day.selected .day-number {
    color: #dc2626;
}

.event-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #dc2626;
    border-radius: 50%;
    margin: 0.5rem auto 0;
}

.event-count {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 0.125rem;
}

.events-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: linear-gradient(135deg, #111131 0%, #490505 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.event-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.event-date-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.event-card h3 {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
}

.event-card p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.event-venue,
.event-organizer {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

.event-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s;
}

.event-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

.event-calendar-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    margin: 20px 0;
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-events svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.5rem;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #e5e7eb;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: #d1d5db;
}

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

.pagination button svg {
    width: 1rem;
    height: 1rem;
}

.pagination span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .calendar-body {
        grid-template-columns: 2fr 1fr;
    }
    
    .events-section {
        position: sticky;
        top: 1.5rem;
        align-self: start;
    }
}

@media (max-width: 768px) {
    .calendar-header h1 {
        font-size: 1.5rem;
    }
    
    .calendar-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .weekday {
        font-size: 0.75rem;
    }
    
    .view-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .calendar-header {
        padding: 1rem;
    }
    
    .calendar-body {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 50px;
        font-size: 0.875rem;
    }
}