/* Calendar Page Styles */

.calendar-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.calendar-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #1a1a2e;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #1a1a2e;
}

.calendar-nav {
    display: flex;
    gap: 0.75rem;
}

.calendar-nav button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-nav button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 120px);
        gap: 1px;
        min-width: min-content;
        border-radius: 0;
        overflow: visible;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .calendar-day {
        min-height: 80px;
        min-width: 120px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-event {
        font-size: 0.6rem;
        padding: 0.125rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 100px);
        gap: 1px;
    }
    
    .calendar-day-header {
        min-width: 100px;
        padding: 0.375rem 0.125rem;
        font-size: 0.6rem;
    }
    
    .calendar-day {
        min-height: 70px;
        min-width: 100px;
        padding: 0.125rem;
    }
    
    .calendar-day-header {
        padding: 0.375rem 0.125rem;
        font-size: 0.6rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.125rem;
    }
    
    .calendar-day-number {
        font-size: 0.65rem;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 0.0625rem 0.125rem;
    }
}

.calendar-day-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    background-color: white;
    min-height: 90px;
    padding: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day:hover {
    background-color: #f7fafc;
    transform: scale(1.02);
    z-index: 1;
}

.calendar-day.other-month {
    background-color: #fafafa;
    color: #cbd5e0;
}

.calendar-day.today {
    background-color: #fff3cd;
    border: 2px solid #e94560;
}

.calendar-day.has-event {
    background-color: #e3f2fd;
}

.calendar-day-number {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1rem;
}

.calendar-event {
    font-size: 0.75rem;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-event.recurring {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.calendar-event.canceled {
    background-color: #a0aec0;
    text-decoration: line-through;
    opacity: 0.6;
}

.event-details {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e94560;
}

.event-details.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

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

.event-details h3 {
    margin-top: 0;
    color: #1a1a2e;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-item h4 {
    color: #0f3460;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.event-item p {
    margin: 0.5rem 0;
    color: #718096;
}

.event-item strong {
    color: #2d3748;
}

.regular-activities {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4CAF50;
}

.regular-activities h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.regular-activities h4 {
    color: #0f3460;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.regular-activities p,
.regular-activities li {
    color: #718096;
    line-height: 1.8;
}

.regular-activities ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.calendar-legend {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-color.special {
    background-color: #2196F3;
}

.legend-color.regular {
    background-color: #4CAF50;
}

.legend-color.today {
    background-color: #fff3cd;
    border: 1px solid #ddd;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .calendar-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .calendar-container h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .calendar-header h2 {
        font-size: 1.5rem;
    }
    
    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-nav button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        flex: 1;
    }
    
    .calendar-day-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 0.5rem;
    }
    
    .calendar-day-number {
        font-size: 0.875rem;
    }
    
    .calendar-event {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .event-details {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .event-details h3 {
        font-size: 1.25rem;
    }
    
    .event-item h4 {
        font-size: 1.125rem;
    }
    
    .regular-activities {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .regular-activities h3 {
        font-size: 1.25rem;
    }
    
    .regular-activities h4 {
        font-size: 1rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .calendar-container h1 {
        font-size: 1.75rem;
    }
    
    .calendar-header {
        padding: 1rem;
    }
    
    .calendar-header h2 {
        font-size: 1.25rem;
    }
    
    .calendar-nav button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.375rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-event {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    .regular-activities {
        padding: 1rem;
    }
}
