/* ==========================================================================
   AJANS SAVUNMA - Mobile & Tablet Responsive Adaptations (CSS3)
   ========================================================================== */

/* Tablet Layout (768px – 1199px) */
@media screen and (max-width: 1199px) {
    :root {
        --max-width: 960px;
    }
    
    .main-grid {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    .sidebar-wrapper {
        /* Keep sidebar normal, just narrower */
        gap: 25px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-large {
        height: 380px;
    }
    
    .hero-side-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        gap: 15px;
    }
    
    .hero-side-card {
        flex-direction: column;
    }
    
    .hero-side-thumb {
        width: 100%;
        height: 120px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Layout (320px – 767px) */
@media screen and (max-width: 767px) {
    .mini-header {
        display: none; /* Hide date and social bar on small screens */
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-sub {
        font-size: 8px;
    }
    
    .menu-toggle {
        display: block; /* Show hamburger button */
    }
    
    /* Mobile Navigation Drawer Override */
    .navbar {
        padding: 10px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background-color: var(--bg-dark-primary);
        flex-direction: column;
        z-index: 1000;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding-top: 60px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 14px 25px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link::after {
        display: none; /* Disable bottom hover border on mobile menu items */
    }
    
    /* Horizontal scrollable navigation indicator row for mobile UX */
    .mobile-scroll-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        background-color: var(--bg-dark-secondary);
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-scroll-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for clean aesthetics */
    }
    
    .mobile-scroll-link {
        color: var(--border-color);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 5px 15px;
        display: inline-block;
    }
    
    .mobile-scroll-link.active {
        color: var(--white);
        border-bottom: 2px solid var(--color-accent);
    }
    
    /* Hero layout mobile */
    .hero-large {
        height: 280px;
    }
    
    .hero-overlay {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-side-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-side-card {
          "sameAs": [
            "<?= SOCIAL_X ?>",
            "<?= SOCIAL_FACEBOOK ?>",
            "<?= SOCIAL_LINKEDIN ?>",
            "<?= SOCIAL_TELEGRAM ?>"
          ]
        }
      ]
    }
    </script>
</head>
<body>
<!-- Reading Progress Bar -->
<div class="reading-progress-bar" id="readingProgressBar"></div>

        grid-template-columns: 1fr;
    }
    
    .article-main-title {
        font-size: 24px;
    }
    
    .article-spot {
        font-size: 15px;
    }
    
    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Search box mobile */
    .search-form-full {
        flex-direction: column;
    }
    
    .search-btn-full {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}
