/* Calendar 2024 Australia - Main Stylesheet */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #009B3A 0%, #FFCD00 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Year Overview */
.year-overview {
    margin-bottom: 3rem;
}

.year-overview h2 {
    color: #009B3A;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.month-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #009B3A;
}

.month-card h3 {
    color: #009B3A;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

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

.day-header {
    background: #009B3A;
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.day-cell {
    background: #f8f9fa;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-cell:hover {
    background: #e9ecef;
}

.day-cell.today {
    background: #FFCD00;
    color: #333;
    font-weight: 600;
}

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

.day-cell.other-month {
    color: #ccc;
    background: #f8f9fa;
}

/* Month Navigation */
.month-navigation {
    margin-bottom: 3rem;
}

.month-navigation h2 {
    color: #009B3A;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.month-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.month-link {
    background: white;
    color: #009B3A;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 2px solid #009B3A;
    transition: all 0.3s ease;
}

.month-link:hover {
    background: #009B3A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 155, 58, 0.3);
}

/* Holidays Summary */
.holidays-summary {
    margin-bottom: 3rem;
}

.holidays-summary h2 {
    color: #009B3A;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.holiday-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #009B3A;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.holiday-date {
    font-weight: 600;
    color: #009B3A;
    font-size: 1.1rem;
}

.holiday-name {
    color: #333;
    margin-top: 0.25rem;
}

/* School Terms */
.school-terms {
    margin-bottom: 3rem;
}

.school-terms h2 {
    color: #009B3A;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.terms-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.term {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #FFCD00;
}

.term h3 {
    color: #009B3A;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.term p {
    color: #666;
    font-weight: 500;
}

.note {
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* SEO Content Section */
.seo-content {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seo-content h2 {
    color: #009B3A;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-content h3 {
    color: #009B3A;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #FFCD00;
    padding-bottom: 0.5rem;
}

.content-text {
    line-height: 1.8;
    color: #444;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-text ul {
    margin: 1rem 0 1.5rem 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.content-text strong {
    color: #009B3A;
    font-weight: 600;
}

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

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

.contact-info {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.contact-info a {
    color: #FFCD00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

.footer-links p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #FFCD00;
}

.footer-links a {
    color: #FFCD00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header {
        background: white;
        color: black;
        border-bottom: 2px solid #009B3A;
    }
    
    .month-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .day-cell.holiday {
        background: #f0f0f0;
        color: black;
        border: 1px solid #009B3A;
    }
    
    .footer {
        display: none;
    }
    
    .month-navigation {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .year-grid {
        grid-template-columns: 1fr;
    }
    
    .month-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terms-info {
        grid-template-columns: 1fr;
    }
    
    .day-cell {
        min-height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .month-links {
        grid-template-columns: 1fr;
    }
    
    .day-cell {
        min-height: 30px;
        font-size: 0.7rem;
    }
    
    .calendar-grid {
        gap: 1px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.month-link:focus,
.day-cell:focus {
    outline: 3px solid #FFCD00;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .day-cell.holiday {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .day-cell.today {
        background: #FFCD00;
        color: #000;
        border: 2px solid #000;
    }
}
