/* Calendar Page Styles */

/* Calendar header with year navigation */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 95%;
    margin: 15px auto;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Month grid (year view) */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 95%;
    margin: 20px auto;
    padding: 0 15px;
}

.calendar-month-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-month-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.calendar-month-card.no-movies {
    opacity: 0.5;
    pointer-events: none;
}

.calendar-month-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.calendar-month-count {
    font-size: 2.2em;
    font-weight: bold;
    color: #3498db;
}

.calendar-month-label {
    font-size: 0.8em;
    color: #777;
}

/* Month detail view */
.calendar-month-header {
    max-width: 95%;
    margin: 15px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.calendar-month-header h2 {
    margin: 0;
    font-size: 1.6em;
}

.calendar-month-header .month-year {
    font-size: 1em;
    opacity: 0.9;
    margin-top: 5px;
}

/* Day groupings */
.calendar-day-group {
    max-width: 95%;
    margin: 20px auto;
    padding: 0 15px;
}

.calendar-day-header {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-day-number {
    width: 32px;
    height: 32px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.calendar-day-movies {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

/* Back link for month view */
.calendar-back-link {
    max-width: 95%;
    margin: 15px auto;
    padding: 0 15px;
}

.calendar-back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendar-back-link a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .calendar-month-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .calendar-header h2 {
        font-size: 1.4em;
    }

    .calendar-nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .calendar-month-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .calendar-month-card {
        padding: 15px;
    }

    .calendar-month-count {
        font-size: 1.8em;
    }

    .calendar-header {
        gap: 10px;
        padding: 10px;
    }

    .calendar-header h2 {
        font-size: 1.2em;
    }
}