/* ========================================
   PAZA NEWS - MASTER MOBILE CSS
   Consolidates all mobile styles
   ======================================== */

/* ===== GLOBAL MOBILE RESETS ===== */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    .container {
        padding: 0 16px !important;
        max-width: 100% !important;
    }
}

/* ===== HEADER & NAVIGATION ===== */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 0 !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: linear-gradient(135deg, #E31E24 0%, #B71C1C 100%);
    }
    
    .header-content {
        padding: 0 16px !important;
    }
    
    .logo {
        gap: 10px !important;
    }
    
    .logo-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .logo-title {
        font-size: 24px !important;
    }
    
    /* Mobile Navigation */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        font-size: 14px !important;
        padding: 12px 14px !important;
        white-space: nowrap;
    }
    
    .search-box {
        width: 100% !important;
        margin: 12px 0 !important;
    }
}

/* ===== HOMEPAGE ===== */
@media (max-width: 768px) {
    /* Featured Articles */
    .featured-grid,
    #featuredGrid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    
    /* Category Sections */
    #categorySections .category-section {
        margin: 30px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .article-card,
    .article-card-small {
        margin-bottom: 16px !important;
    }
    
    .article-card img,
    .article-card-small img {
        height: 200px !important;
    }
    
    .article-card h3,
    .article-card-small h4 {
        font-size: 18px !important;
        padding: 16px !important;
    }
    
    /* Sidebar - Hide on mobile */
    .sidebar {
        display: none !important;
    }
}

/* ===== ARTICLE PAGE ===== */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr !important;
        padding: 16px 0 !important;
    }
    
    .article-title {
        font-size: 28px !important;
        padding: 0 16px !important;
    }
    
    .article-meta {
        padding: 0 16px !important;
        font-size: 14px !important;
    }
    
    .article-content {
        padding: 20px 16px !important;
        font-size: 18px !important;
    }
    
    .article-content h1 {
        font-size: 28px !important;
    }
    
    .article-content h2 {
        font-size: 24px !important;
    }
    
    .article-content h3 {
        font-size: 20px !important;
    }
    
    .article-content p {
        font-size: 18px !important;
        line-height: 1.7 !important;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        padding: 0 16px;
    }
    
    .share-btn {
        flex: 1 1 45%;
        justify-content: center;
        margin: 5px;
    }
}

/* ===== CATEGORY PAGE ===== */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .category-title {
        font-size: 28px !important;
        padding: 0 16px !important;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 16px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ===== ADS ===== */
@media (max-width: 768px) {
    .ad-sidebar,
    .widget {
        display: none !important;
    }
    
    .ad-leaderboard {
        max-width: 100%;
        overflow: hidden;
    }
    
    .ad-leaderboard img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== BREAKING NEWS TICKER ===== */
@media (max-width: 768px) {
    .breaking-ticker {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .ticker-scroll span {
        padding: 0 20px;
    }
}

/* ===== TOUCH OPTIMIZATION ===== */
@media (max-width: 768px) {
    button,
    a,
    .nav-link,
    .article-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    input,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
