/* ===================================
   Calendar2026.co.uk - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    --secondary-color: #e74c3c;
    --accent-color: #27ae60;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ===================================
   Breadcrumbs
   =================================== */
.breadcrumbs {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs li:last-child {
    color: var(--text-light);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    padding: 40px 20px;
}

/* ===================================
   Introduction Section
   =================================== */
.intro-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Calendar Section
   =================================== */
.calendar-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.calendar-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.month-year-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

#month-select {
    font-size: 1.2rem;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.year-display {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav {
    background: var(--primary-light);
    color: var(--white);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-view {
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-view.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Calendar Grid */
.calendar-container {
    margin-bottom: 30px;
}

.calendar-grid {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary-color);
    color: var(--white);
}

.day-header {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.day-header.weekend {
    background: var(--primary-dark);
}

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

.day-cell {
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.day-cell:hover {
    background: #f0f7ff;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-hover);
}

.day-cell.other-month {
    background: #fafafa;
    color: var(--text-light);
}

.day-cell.weekend {
    background: #fff5f5;
}

.day-cell.today {
    background: #e8f4fd;
    border: 2px solid var(--primary-color);
}

.day-cell.bank-holiday {
    background: #ffe6e6;
    border-left: 4px solid var(--secondary-color);
}

.day-cell.notable-date {
    background: #fff8e6;
    border-left: 4px solid #f39c12;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.day-event {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.3;
}

/* Year View */
.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mini-month {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.mini-month-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.mini-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 5px;
    gap: 2px;
}

.mini-day-header {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-light);
    padding: 3px;
}

.mini-day {
    font-size: 0.75rem;
    text-align: center;
    padding: 4px 2px;
    border-radius: 3px;
    cursor: pointer;
}

.mini-day:hover {
    background: #e8f4fd;
}

.mini-day.bank-holiday {
    background: #ffe6e6;
    color: var(--secondary-color);
    font-weight: 600;
}

.mini-day.today {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

/* Legend */
.legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.legend h3 {
    margin-bottom: 0;
    margin-right: 10px;
}

.legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.legend-color.bank-holiday {
    background: #ffe6e6;
    border-left: 4px solid var(--secondary-color);
}

.legend-color.notable-date {
    background: #fff8e6;
    border-left: 4px solid #f39c12;
}

.legend-color.today {
    background: #e8f4fd;
    border: 2px solid var(--primary-color);
}

.legend-color.weekend-legend {
    background: #fff5f5;
}

/* Date Info */
.date-info {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.date-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Print Section */
.print-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Holidays Section
   =================================== */
.holidays-section {
    margin-bottom: 40px;
}

.holidays-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.holiday-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.holiday-card h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.holiday-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
}

.holiday-list li:last-child {
    border-bottom: none;
}

.holiday-list .date {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 100px;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.user-guide {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.user-guide h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.faq-container h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===================================
   Latest Articles Section
   =================================== */
.latest-articles {
    margin-bottom: 40px;
}

.latest-articles h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.article-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.article-card h3 a {
    color: var(--text-color);
}

.article-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 500;
    color: var(--primary-color);
}

.view-all {
    text-align: center;
}

.view-all a {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===================================
   SEO Section
   =================================== */
.seo-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.seo-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Footer
   =================================== */
.main-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Blog Page Styles
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 0;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-content {
    padding: 25px;
}

.blog-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.blog-card h2 a {
    color: var(--text-color);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Blog Post Styles */
.blog-post {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.blog-post h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.blog-post .post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-post ul,
.blog-post ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.blog-post ol li {
    list-style: decimal;
}

.cta-box {
    background: var(--background-color);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.cta-box p {
    margin-bottom: 0;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===================================
   Static Pages (About, Contact, etc.)
   =================================== */
.static-page {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.static-page h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.static-page h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .holidays-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .year-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .articles-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-controls {
        flex-direction: column;
        gap: 10px;
    }

    .day-cell {
        min-height: 60px;
        padding: 5px;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .day-event {
        font-size: 0.65rem;
    }

    .intro-section,
    .calendar-section,
    .faq-section,
    .seo-section,
    .static-page,
    .blog-post {
        padding: 25px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .day-header {
        padding: 10px 5px;
        font-size: 0.8rem;
    }

    .year-grid {
        grid-template-columns: 1fr;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-items {
        flex-direction: column;
        gap: 10px;
    }

    .print-section {
        flex-direction: column;
    }

    .print-section .btn {
        width: 100%;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .main-nav,
    .breadcrumbs,
    .hero,
    .intro-section,
    .view-toggle,
    .legend,
    .date-info,
    .print-section,
    .holidays-section,
    .faq-section,
    .latest-articles,
    .seo-section,
    .main-footer {
        display: none !important;
    }

    body {
        background: white;
        font-size: 12pt;
    }

    .calendar-section {
        box-shadow: none;
        padding: 0;
    }

    .calendar-section h2 {
        margin-bottom: 20px;
    }

    .calendar-controls {
        margin-bottom: 15px;
    }

    .btn-nav {
        display: none;
    }

    .day-cell {
        border: 1px solid #ccc;
        min-height: 50px;
    }

    .day-cell.bank-holiday {
        background: #f5f5f5 !important;
    }
}

/* Print Year View */
@media print {
    .year-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .mini-month {
        break-inside: avoid;
    }
}
