/**
 * KC Nijmegen Responsive Styles
 *
 * Mobile-first responsive design
 */

/* =Tablet (max-width: 1024px)
-------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

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

/* =Mobile Landscape (max-width: 768px)
-------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    /* Header */
    .header-top-content {
        flex-direction: row;
        gap: 10px;
    }

    .quick-links,
    .header-contact {
        width: auto; flex: 1;
        justify-content: center;
    }

    .header-contact {
        display: flex;
        gap: 15px;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .main-navigation.toggled {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation a {
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
    }

    .main-navigation .sub-menu a {
        padding-left: 40px;
    }

    /* Hero */
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    /* Content */
    .site-content {
        padding: 15px 0;
    }

    .content-area {
        padding: 20px;
    }

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

    /* Footer */
    .footer-widget-areas {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 5px;
    }

    .footer-legal .separator {
        display: none;
    }

    .sponsor-logos {
        gap: 20px;
    }

    .sponsor-logo img {
        max-height: 40px;
    }
}

/* =Mobile Portrait (max-width: 480px)
-------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    /* Typography */
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }

    /* Header */
    .site-title {
        font-size: 20px;
    }

    .header-top {
        font-size: 12px;
    }

    /* Hero */
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    /* Content */
    .content-area {
        padding: 20px;
    }

    .post-content {
        padding: 20px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Announcements Bar */
    .announcements-bar {
        font-size: 12px;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    /* Sidebar */
    .sidebar {
        padding: 15px;
    }

    .widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Pagination */
    .pagination {
        margin: 30px 0;
    }

    .pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* =Print Styles
-------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .announcements-bar,
    .menu-toggle,
    .back-to-top,
    .sidebar,
    .pagination,
    .hero-buttons,
    .entry-footer {
        display: none !important;
    }

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

    .container {
        max-width: 100%;
        padding: 0;
    }

    .content-area {
        box-shadow: none;
        padding: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .hero-section {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .hero-title,
    .hero-subtitle {
        color: black;
    }
}

/* =Accessibility
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #003d82;
        --secondary-color: #d63000;
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
    }

    .btn {
        border-width: 3px;
    }

    input,
    textarea,
    select {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e4e4e4;
        --text-light: #b4b4b4;
        --text-muted: #848484;
        --bg-color: #1a1a1a;
        --bg-light: #2a2a2a;
        --bg-dark: #0a0a0a;
        --border-color: #3a3a3a;
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .site-header,
    .content-area,
    .widget,
    .post-card {
        background-color: var(--bg-light);
    }

    .main-navigation {
        background-color: var(--bg-dark);
    }

    .footer-social a {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .sponsor-logo img {
        filter: brightness(0.8);
    }
}/* Mobile Header Fixes - Better compact layout */

@media screen and (max-width: 768px) {
    .header-top {
        padding: 6px 0;
        padding: 8px 0;
        font-size: 11px;
    }
    
    .header-top-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .quick-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        flex: 1;
        justify-content: flex-start;
    }
    
    .quick-links a,
    .header-contact a {
        font-size: 11px;
        margin-left: 0;
        padding: 4px 8px;
    }
    
    .quick-links .dashicons,
    .header-contact .dashicons {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }
    
    .header-contact {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .welcome-message {
        display: none; /* Hide welcome message on mobile to save space */
    }
}

@media screen and (max-width: 480px) {
    .header-top {
        padding: 6px 0;
        font-size: 10px;
    }
    
    .header-top-content {
        gap: 5px;
    }
    
    .quick-links,
    .header-contact {
        width: 100%;
        justify-content: center;
    }
    
    .quick-links a,
    .header-contact a {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .contact-phone,
    .contact-email {
        font-size: 0;
    }
    
    .contact-phone .dashicons,
    .contact-email .dashicons {
        margin-right: 0;
    }
    
    .contact-phone::after {
        content: "Tel";
        font-size: 10px;
        margin-left: 3px;
    }
    
    .contact-email::after {
        content: "Mail";
        font-size: 10px;
        margin-left: 3px;
    }
}
