/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1e293b;
}

.year-overview,
.holidays-section,
.months-section {
    padding: 4rem 0;
}

.year-overview {
    background: white;
}

.holidays-section {
    background: #f8fafc;
}

.months-section {
    background: white;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.month-preview {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.month-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.month-preview h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    text-align: center;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
}

.day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.5rem 0;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.day-cell:hover {
    background-color: #f1f5f9;
}

.day-cell.other-month {
    color: #cbd5e1;
}

.day-cell.today {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.day-cell.holiday {
    background-color: #ef4444;
    color: white;
    font-weight: 600;
}

.day-cell.holiday:hover {
    background-color: #dc2626;
}

/* Holidays Grid */
.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.holiday-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #3b82f6;
}

.holiday-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.holiday-name {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.holiday-states {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Months Grid */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.month-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.month-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.month-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Month Page Styles */
.month-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.month-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.month-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.month-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.month-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.month-calendar {
    padding: 3rem 0;
    background: white;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.calendar-header {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
}

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

.calendar-day-header {
    background: #f1f5f9;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #475569;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    position: relative;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.other-month {
    color: #cbd5e1;
    background: #f8fafc;
}

.calendar-day.today {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

.calendar-day.holiday {
    background: #ef4444;
    color: white;
    font-weight: 600;
}

.calendar-day.holiday:hover {
    background: #dc2626;
}

.holiday-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.calendar-day.holiday:hover .holiday-tooltip {
    opacity: 1;
}

/* Calendar Description */
.calendar-description {
    background: #f8fafc;
    padding: 4rem 0;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.1rem;
}

.description-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.description-content li {
    margin-bottom: 0.8rem;
    color: #374151;
    font-size: 1.1rem;
}

.description-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .month-nav,
    .hero,
    .year-overview,
    .holidays-section,
    .months-section {
        display: none;
    }
    
    .month-calendar {
        padding: 0;
    }
    
    .calendar-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .calendar-day {
        border: 1px solid #000;
    }
    
    .calendar-day.holiday {
        background: #f0f0f0 !important;
        color: #000 !important;
        font-weight: bold;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .month-card {
        padding: 1.5rem;
    }
    
    .month-title {
        font-size: 2rem;
    }
    
    .month-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
}
