/* ============================================
   PinVibe — Responsive Breakpoints
   Mobile-first approach
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero { min-height: 55vh; }
    .hero-title { font-size: 2.5rem; }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-md);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .editors-pick {
        grid-template-columns: 1fr;
    }

    .editors-pick-image {
        aspect-ratio: 16 / 9;
    }

    .editors-pick-content {
        padding: var(--sp-xl);
    }

    .section { padding: var(--sp-2xl) 0; }

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

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

    .article-card--horizontal {
        grid-template-columns: 160px 1fr;
    }
}

/* --- Mobile Large (max 768px) --- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    body { font-size: 16px; }

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

    .main-nav { display: none; }
    .menu-toggle { display: flex; }

    .hero {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
        max-width: 100%;
    }

    .hero-excerpt {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-content {
        padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .article-grid--2col {
        grid-template-columns: 1fr;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
    }

    .spotlight-card {
        aspect-ratio: 16 / 9;
    }

    .spotlight-card-title {
        font-size: 1.375rem;
    }

    .editors-pick-content {
        padding: var(--sp-lg);
    }

    .editors-pick-title {
        font-size: 1.5rem;
    }

    .trending-pin {
        flex: 0 0 180px;
    }

    .category-hero {
        padding: var(--sp-2xl) var(--sp-md) var(--sp-xl);
    }

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

    .category-hero-desc {
        font-size: 1rem;
    }

    .filter-tabs {
        gap: var(--sp-sm);
    }

    .post-header {
        padding: var(--sp-xl) var(--sp-md) var(--sp-md);
    }

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

    .post-hero-image {
        margin-bottom: var(--sp-lg);
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.1875rem;
    }

    .share-bar {
        flex-wrap: wrap;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-field {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .newsletter-heading {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    .section { padding: var(--sp-xl) 0; }

    .about-content {
        padding: var(--sp-2xl) var(--sp-md);
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .search-page {
        padding: var(--sp-2xl) var(--sp-md);
    }

    .search-form {
        flex-direction: column;
        max-width: 100%;
    }

    .article-card--horizontal {
        grid-template-columns: 1fr;
    }

    .article-card--horizontal .card-image {
        aspect-ratio: 16 / 9;
    }

    .article-card--horizontal .card-content {
        padding: var(--sp-sm) 0 0 0;
    }

    .related-posts {
        padding: var(--sp-2xl) var(--sp-md);
    }

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

    .error-page h1 { font-size: 4rem; }

    .contact-content {
        padding: var(--sp-2xl) var(--sp-md);
    }

    .contact-content h1 {
        font-size: 2rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
    }
}

/* --- Mobile Small (max 480px) --- */
@media (max-width: 480px) {
    .hero {
        min-height: 45vh;
    }

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

    .hero-category {
        font-size: 0.6875rem;
    }

    .category-bar-inner {
        gap: var(--sp-md);
    }

    .category-bar-link {
        font-size: 0.75rem;
    }

    .card-content {
        padding: var(--sp-sm);
    }

    .card-title {
        font-size: 1.125rem;
    }

    .spotlight-card-content {
        padding: var(--sp-md);
    }

    .spotlight-card-title {
        font-size: 1.125rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-meta {
        font-size: 0.8125rem;
    }

    .toc {
        padding: var(--sp-sm);
    }

    .newsletter-section {
        padding: var(--sp-2xl) var(--sp-sm);
    }

    .newsletter-heading {
        font-size: 1.375rem;
    }
}

/* --- Print Styles --- */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .share-bar,
    .related-posts,
    .ad-container,
    .category-bar,
    .search-overlay,
    .mobile-menu {
        display: none !important;
    }

    .site-main {
        margin-top: 0;
    }

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

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

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