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

/* Tablet landscape */
@media (max-width: 1200px) {
    :root {
        --flavor-spacing-4xl: 4rem;
    }

    .flavor-header__inner {
        padding: 0 var(--flavor-spacing-md);
    }
}

/* Tablet portrait */
@media (max-width: 1024px) {
    .flavor-layout-sidebar,
    .flavor-layout-sidebar--left,
    .flavor-layout-sidebar--right {
        grid-template-columns: 1fr !important;
    }

    .flavor-footer__widgets {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .flavor-hero {
        min-height: 50vh;
    }

    .flavor-hero--full {
        min-height: 80vh;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --flavor-spacing-4xl: 3rem;
        --flavor-spacing-3xl: 2.5rem;
        --flavor-spacing-2xl: 2rem;
    }

    .flavor-header__inner {
        height: 64px;
    }

    .flavor-nav__menu {
        top: 64px;
    }

    .flavor-hero {
        min-height: 40vh;
        padding: var(--flavor-spacing-2xl) 0;
    }

    .flavor-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .flavor-hero__subtitle {
        font-size: 1rem;
    }

    .flavor-footer__widgets {
        grid-template-columns: 1fr !important;
    }

    .flavor-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .flavor-post-nav {
        grid-template-columns: 1fr !important;
    }

    .flavor-post-nav > div:last-child {
        text-align: left !important;
    }

    .flavor-btn--lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .flavor-container {
        padding: 0 var(--flavor-spacing-md);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .flavor-card__body {
        padding: var(--flavor-spacing-md);
    }
}

/* High DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
    }
}

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

    .flavor-animate {
        opacity: 1 !important;
    }
}

/* Print */
@media print {
    .flavor-header,
    .flavor-footer,
    .flavor-sidebar,
    .flavor-nav__toggle,
    .flavor-pagination,
    .flavor-comments,
    .flavor-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

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