/* ===== RESPONSIVE STYLES ===== */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        padding-left: 0;
        order: -1;
    }
    
    .sidebar-widget {
        display: inline-block;
        width: calc(50% - 1rem);
        margin-right: 1rem;
        vertical-align: top;
    }
    
    .sidebar-widget:nth-child(even) {
        margin-right: 0;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Map */
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Articles */
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        background-color: #f9fafb;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    /* Action buttons */
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Contact options */
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    /* Quick buttons */
    .quick-buttons {
        flex-direction: column;
    }
    
    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Sidebar widgets */
    .sidebar-widget {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Mobile screens (480px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    /* Spacing */
    .hero {
        padding: 60px 0;
    }
    
    .features,
    .about-content,
    .team,
    .stats,
    .courses,
    .modules,
    .testimonials,
    .blog-articles,
    .blog-categories,
    .newsletter,
    .contact-section,
    .map-section,
    .article-content,
    .legal-page,
    .cta {
        padding: 60px 0;
    }
    
    .thanks-section {
        padding: 80px 0;
    }
    
    /* Page header */
    .page-header {
        padding: 40px 0;
    }
    
    .article-header {
        padding: 40px 0;
    }
    
    /* Grids */
    .features-grid,
    .courses-grid,
    .modules-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Article meta */
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Article author */
    .article-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Share buttons */
    .share-buttons {
        flex-direction: column;
    }
    
    /* Related articles */
    .related-articles {
        gap: 0.5rem;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
    
    /* Forms */
    .contact-form {
        margin-top: 1rem;
    }
    
    .checkbox-group {
        align-items: flex-start;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    /* Contact items */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Small mobile screens (up to 479px) */
@media (max-width: 479px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1,
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    .hero,
    .features,
    .about-content,
    .team,
    .stats,
    .courses,
    .modules,
    .testimonials,
    .blog-articles,
    .blog-categories,
    .newsletter,
    .contact-section,
    .map-section,
    .article-content,
    .legal-page,
    .cta {
        padding: 40px 0;
    }
    
    .thanks-section {
        padding: 60px 0;
    }
    
    /* Cards */
    .feature-card,
    .course-card,
    .module-card,
    .testimonial-card,
    .category-card,
    .team-member {
        padding: 1.5rem;
    }
    
    .article-card .article-content {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Cookie banner */
    .cookie-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem 0;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 35px;
    }
    
    /* Article sidebar */
    .article-sidebar {
        order: -1;
    }
    
    /* Newsletter form */
    .newsletter-form {
        max-width: 250px;
    }
    
    /* Contact options */
    .contact-options {
        gap: 1rem;
    }
    
    .contact-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Map info */
    .map-info ul li {
        font-size: 0.9rem;
    }
    
    /* Legal content */
    .legal-content {
        font-size: 0.9rem;
    }
    
    /* Tables */
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 6px;
    }
    
    /* Article content */
    .article-body {
        font-size: 0.95rem;
    }
    
    /* Tags */
    .article-tags {
        gap: 0.25rem;
    }
    
    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
        padding-top: 1rem;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    main {
        margin-top: 60px;
    }
}

/* High resolution screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .nav-toggle,
    .share-buttons,
    .quick-actions,
    .action-buttons,
    .newsletter,
    .cta {
        display: none !important;
    }
    
    main {
        margin-top: 0;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .article-card,
    .course-card,
    .feature-card {
        break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        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) {
    .btn-outline {
        border-width: 3px;
    }
    
    .feature-card,
    .course-card,
    .article-card {
        border: 2px solid #000;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for dark mode styles */
    /* Uncomment and customize if you want to support dark mode */
    /*
    body {
        background-color: #1f2937;
        color: #e5e7eb;
    }
    
    .header {
        background-color: #111827;
    }
    
    .feature-card,
    .course-card,
    .article-card {
        background-color: #374151;
        color: #e5e7eb;
    }
    */
}
