/**
 * Binggerr Responsive Styles
 */

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Mobile: 320px */
@media (max-width: 320px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .site-logo {
        font-size: 1.1rem;
    }

    .site-logo .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .header-inner {
        height: 54px;
    }

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

    .hero-excerpt {
        font-size: 0.9rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }

    .article-card-title {
        font-size: 0.95rem;
    }

    .article-card-excerpt {
        font-size: 0.8rem;
    }

    .single-post-title {
        font-size: 1.5rem;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

/* Mobile: 360px */
@media (max-width: 360px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

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

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

/* Mobile: 375px */
@media (max-width: 375px) {
    .header-search {
        width: 36px;
        height: 36px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .popular-post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .popular-post-image {
        width: 100%;
        height: 120px;
    }
}

/* Mobile: 390px */
@media (max-width: 390px) {
    .hero-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }

    .hero-card-body {
        padding: 1rem;
    }

    .hero-card-title {
        font-size: 1rem;
    }

    .article-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-widget input,
    .newsletter-widget button {
        width: 100%;
    }
}

/* Mobile: 414px */
@media (max-width: 414px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero-excerpt {
        font-size: 0.95rem;
    }

    .section {
        padding: 2rem 0;
    }

    .trending-card {
        padding: 0.75rem;
    }

    .trending-card-number {
        font-size: 1.5rem;
    }

    .trending-card-title {
        font-size: 0.85rem;
    }
}

/* Tablet: 768px */
@media (max-width: 768px) {
    :root {
        --container-max: 720px;
    }

    .header-inner {
        height: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-category {
        margin: 0 auto 1rem;
    }

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

    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-title {
        flex: 1 1 100%;
    }

    .section-more {
        margin-left: auto;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-brand {
        grid-column: span 2;
    }

    .search-overlay {
        padding-top: 20vh;
    }

    .search-overlay input {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
}

/* Tablet: 820px */
@media (max-width: 820px) {
    .container {
        padding: 0 1.25rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .single-post-content {
        font-size: 1rem;
    }

    .comments-section {
        padding: 0 1rem;
    }
}

/* Laptop: 1024px */
@media (max-width: 1024px) {
    :root {
        --container-max: 900px;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--binggerr-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation .menu {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-navigation .menu-item a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-category {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .main-content,
    .main-content.sidebar-left {
        grid-template-columns: 1fr;
    }
}

/* Laptop: 1280px */
@media (max-width: 1280px) {
    :root {
        --container-max: 1000px;
    }

    .hero-section::before {
        width: 400px;
        height: 400px;
    }

    .hero-section::after {
        width: 300px;
        height: 300px;
    }
}

/* Laptop: 1366px */
@media (max-width: 1366px) {
    :root {
        --container-max: 1100px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

/* Laptop: 1440px */
@media (max-width: 1440px) {
    :root {
        --container-max: 1200px;
    }
}

/* Desktop: 1920px and larger */
@media (min-width: 1920px) {
    :root {
        --container-max: 1400px;
        --space-3xl: 5rem;
    }

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

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

    .single-post-content {
        font-size: 1.15rem;
    }

    .footer-grid {
        gap: 3rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .pagination,
    .comments-section,
    .related-posts,
    .post-tags,
    .post-navigation,
    .newsletter-widget,
    .menu-toggle,
    .header-search,
    .search-overlay {
        display: none !important;
    }

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

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

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

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

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