/* ================================================
   Moon Calendar CSS
   Mobile-First Responsive Design
   ================================================ */

.calendar-month {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-xs);
}

.calendar-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    text-align: center;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.calendar-nav .nav-btn {
    flex: 1;
    min-width: 120px;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-secondary), #357abd);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    text-align: center;
    display: block;
}

.calendar-nav .nav-btn.current {
    background: linear-gradient(135deg, var(--accent-primary), #e6c200);
    color: var(--bg-primary);
}

.calendar-nav .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Calendar Grid */
.calendar-main {
    margin-bottom: var(--spacing-lg);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: var(--bg-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Weekday Headers */
.calendar-weekday {
    background: var(--bg-card);
    padding: var(--spacing-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calendar Day Cell */
.calendar-day {
    background: var(--bg-card);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    min-height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.calendar-day.fullmoon {
    background: linear-gradient(135deg, #4a5f8f, #2a3a5f);
    border: 2px solid var(--accent-primary);
}

.calendar-day.fullmoon:hover {
    background: linear-gradient(135deg, #5a6f9f, #3a4a6f);
}

/* Day Number */
.day-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.calendar-day.fullmoon .day-number {
    color: var(--accent-primary);
}

/* Moon Phase Icon */
.day-moon {
    font-size: 2rem;
    line-height: 1;
    margin: var(--spacing-xs) 0;
    text-align: center;
}

/* Moon Age */
.day-age {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

.calendar-day.fullmoon .day-age {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Full Moon Info Section */
.fullmoon-info {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.fullmoon-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.fullmoon-details {
    display: grid;
    gap: var(--spacing-md);
}

.fullmoon-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.fullmoon-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.fullmoon-time {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.fullmoon-constellation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-month {
        font-size: 1.2rem;
    }
    
    .calendar-nav .nav-btn {
        font-size: 0.8rem;
        padding: var(--spacing-xs);
        min-width: 90px;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: var(--spacing-xs);
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .day-moon {
        font-size: 1.5rem;
    }
    
    .day-age {
        font-size: 0.6rem;
    }
    
    .calendar-weekday {
        font-size: 0.7rem;
        padding: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 2px;
        padding: var(--spacing-xs);
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .day-moon {
        font-size: 1.2rem;
    }
    
    .day-age {
        display: none;
    }
}
