/**
 * Responsive Styles
 *
 * @package My_Premium_Theme
 */

/* ==========================================================================
   Large Screens (1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    .mpt-container {
        max-width: var(--mpt-container-xl);
    }
}

/* ==========================================================================
   Medium Screens (1024px and below)
   ========================================================================== */
@media (max-width: 1024px) {
    .mpt-content-wrapper.mpt-has-sidebar {
        grid-template-columns: 1fr;
    }
    
    .mpt-content-wrapper.mpt-has-sidebar.mpt-sidebar-left .mpt-sidebar {
        order: 0;
    }
    
    .mpt-posts-grid.mpt-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Tablet (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --mpt-spacing-3xl: 3rem;
        --mpt-spacing-4xl: 4rem;
    }
    
    .mpt-posts-grid.mpt-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .mpt-entry-title {
        font-size: var(--mpt-text-3xl);
    }
    
    .mpt-entry-info {
        flex-wrap: wrap;
        gap: var(--mpt-spacing-sm);
    }
    
    .mpt-entry-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mpt-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .mpt-search-result-inner {
        flex-direction: column;
    }
    
    .mpt-search-thumbnail {
        width: 100%;
    }
    
    .mpt-error-code {
        font-size: 6rem;
    }
}

/* ==========================================================================
   Mobile (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --mpt-spacing-2xl: 2rem;
        --mpt-spacing-3xl: 2.5rem;
        --mpt-spacing-4xl: 3rem;
    }
    
    .mpt-container {
        padding-left: var(--mpt-spacing-md);
        padding-right: var(--mpt-spacing-md);
    }
    
    .mpt-header-inner {
        height: 70px;
    }
    
    .mpt-mobile-menu {
        top: 70px;
    }
    
    .mpt-page-title,
    .mpt-archive-title,
    .mpt-search-title {
        font-size: var(--mpt-text-3xl);
    }
    
    .mpt-entry-title {
        font-size: var(--mpt-text-2xl);
    }
    
    .mpt-post-title {
        font-size: var(--mpt-text-lg);
    }
    
    .mpt-error-code {
        font-size: 4rem;
    }
    
    .mpt-error-title {
        font-size: var(--mpt-text-2xl);
    }
    
    .mpt-pagination .nav-links {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .mpt-header,
    .mpt-footer,
    .mpt-sidebar,
    .mpt-mobile-menu,
    .mpt-search-modal,
    .mpt-share-links,
    .mpt-pagination,
    .mpt-comment-form,
    .mpt-breadcrumb {
        display: none !important;
    }
    
    .mpt-content-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Dark Mode (if enabled)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .mpt-auto-dark-mode {
        --mpt-white: #0f172a;
        --mpt-gray-50: #1e293b;
        --mpt-gray-100: #334155;
        --mpt-gray-200: #475569;
        --mpt-gray-300: #64748b;
        --mpt-gray-400: #94a3b8;
        --mpt-gray-500: #cbd5e1;
        --mpt-gray-600: #e2e8f0;
        --mpt-gray-700: #f1f5f9;
        --mpt-gray-800: #f8fafc;
        --mpt-gray-900: #ffffff;
        --mpt-secondary: #f8fafc;
    }
}

