/**
 * JEDH Responsive Styles
 *
 * Mobile and tablet responsive breakpoints
 */

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }

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

    .nav-menu {
        gap: var(--spacing-4);
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 var(--spacing-4);
    }

    /* Top bar - stack vertically */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-2);
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: var(--spacing-2);
    }

    /* Navigation - mobile menu */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-neutral-0);
        flex-direction: column;
        padding: var(--spacing-20) var(--spacing-8);
        z-index: var(--z-index-modal);
        gap: var(--spacing-6);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* Blog grid - single column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }

    /* Blog filters - stack vertically */
    .blog-filters {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
        margin: var(--spacing-1) 0;
    }

    /* Hero sections */
    .page-hero {
        padding: var(--spacing-12) 0 var(--spacing-8);
    }

    .page-hero h1 {
        font-size: var(--font-size-4xl);
    }

    .page-hero .lead {
        font-size: var(--font-size-lg);
    }

    /* Single post */
    .post-hero {
        padding: var(--spacing-8) 0 var(--spacing-6);
    }

    .post-title {
        font-size: var(--font-size-3xl);
    }

    .post-meta {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: flex-start;
    }

    .post-content {
        font-size: var(--font-size-base);
    }

    /* Social share buttons */
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    /* Related posts */
    .related-posts h2 {
        font-size: var(--font-size-3xl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-10);
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-3);
    }

    /* CTA banner */
    .cta-text h2 {
        font-size: var(--font-size-3xl);
    }

    .cta-text p {
        font-size: var(--font-size-base);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* WhatsApp float button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: var(--font-size-2xl);
    }

    /* Error page */
    .error-title {
        font-size: 8rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .post-title {
        font-size: var(--font-size-2xl);
    }

    .error-title {
        font-size: 6rem;
    }

    .cta-text h2 {
        font-size: var(--font-size-2xl);
    }

    .related-posts h2 {
        font-size: var(--font-size-2xl);
    }

    .breadcrumbs {
        font-size: var(--font-size-xs);
    }
}

/* ========================================
   LANDSCAPE MOBILE (max-height: 600px)
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        padding: var(--spacing-8) var(--spacing-6);
        gap: var(--spacing-3);
    }

    .page-hero,
    .post-hero {
        padding: var(--spacing-8) 0 var(--spacing-6);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .top-bar,
    .navbar,
    .footer,
    .whatsapp-float,
    .blog-filters,
    .post-share,
    .related-posts,
    .back-to-blog,
    .cta-banner {
        display: none !important;
    }

    .post-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .post-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}
