/* Archive Calendar Styles */
/* Uses css/common.css for shared styles */

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.navigation button {
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    font-size: 18px;
    min-width: 50px;
}

.navigation button:hover {
    background: #1976D2;
}

.navigation button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.navigation button:disabled:hover {
    background: #ccc;
}

.month-display {
    min-width: 200px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    min-height: 400px;
}

/* Calendar Day Cells */
.calendar-day {
    aspect-ratio: 1;
    min-height: 40px;
    border: 2px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    border: none;
    background: transparent;
}

.calendar-day.has-puzzle {
    cursor: pointer;
    border-color: #2196F3;
    background: #f0f8ff;
}

.calendar-day.has-puzzle:hover {
    background: #e3f2fd;
    border-color: #1976D2;
    transform: scale(1.05);
}

.calendar-day.completed {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.calendar-day.today {
    border-color: #ff9800;
    border-width: 3px;
    font-weight: bold;
}

.calendar-day.future {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.no-puzzle {
    opacity: 0.3;
    cursor: default;
}

.day-number {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.day-status {
    position: absolute;
    bottom: 5px;
    font-size: 20px;
}

.day-status.completed {
    color: #4CAF50;
}

/* Footer buttons inherit from common.css */

/* Cookie consent banner styles in common.css */

/* Mobile responsiveness */
@media (max-width: 768px) {
    
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        aspect-ratio: auto;
        border-width: 1px;
    }
    
    .navigation button {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .month-display {
        font-size: 18px;
    }
    
}