/*
 * RESPONSIVE.CSS - All Media Queries
 * Techo Theme - NexusByte Design
 */

/* ========================================
   LARGE TABLETS (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .reviews-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .alignwide {
        margin-left: -50px;
        margin-right: -50px;
        max-width: calc(100% + 100px);
    }
}

/* ========================================
   TABLETS & MOBILE (max-width: 900px)
   ======================================== */
@media (max-width: 900px) {

    /* Header */
    .header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: block;
        order: -1;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(9, 9, 21, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation.toggled {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 25px;
        background: transparent;
        border: none;
        padding: 0;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.3rem;
        font-weight: 600;
        color: white;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-main-card {
        min-height: 400px;
    }

    .hero-side-stack {
        flex-direction: row;
    }

    .side-card {
        min-height: 200px;
    }

    .hot-topics-bar {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 15px 20px;
    }

    .hot-scroll {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    /* Sections */
    .wire-grid {
        grid-template-columns: 1fr;
    }

    .wire-card {
        flex-direction: column;
    }

    .wire-img {
        width: 100%;
        height: 200px;
    }

    .wire-img img {
        position: relative;
    }

    .wire-body {
        width: 100%;
    }

    .content-sidebar-split {
        grid-template-columns: 1fr;
    }

    .feed-item {
        flex-direction: column;
    }

    .feed-thumb {
        width: 100%;
        min-width: 100%;
    }

    .feed-thumb img {
        height: 200px;
    }

    .reviews-row {
        grid-template-columns: 1fr;
    }

    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    /* Archive */
    .archive-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand-col {
        max-width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .site-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Single Post */
    .single-post-article .entry-title {
        font-size: 1.8rem;
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
    }

    /* Alignment */
    .alignwide,
    .alignfull {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   SMALL MOBILE (max-width: 600px)
   ======================================== */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero-side-stack {
        flex-direction: column;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .side-title {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .popular-list li {
        flex-wrap: wrap;
    }

    .pop-thumb {
        order: -1;
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
    }

    .single-post-article .entry-title {
        font-size: 1.5rem;
    }

    .error-title {
        font-size: 5rem;
        letter-spacing: -5px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .site-header,
    .site-footer,
    .sidebar-col,
    .nav-controls,
    .comments-area {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .entry-content {
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}