/* ==========================================
   APNA UPDATES - RESPONSIVE CSS
   Desktop View Scaled to Fit All Screens
   ========================================== */

/* ==========================================
   MOBILE SOCIAL BUTTONS (Next to Logo - With Names)
   Same Style as Desktop - More Spacing
   ========================================== */
.mobile-social-buttons {
    display: none;
    align-items: center;
    gap: 25px;
    margin-left: 220px;  /* MORE SPACE FROM APNA UPDATES */
}

.mobile-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mobile-social-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.mobile-social-btn span {
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Telegram Button */
.mobile-social-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-btn.telegram:hover {
    background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.5);
}

/* WhatsApp Button */
.mobile-social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #1DA851 0%, #25D366 100%);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================
   MOBILE NAVIGATION BAR (Replaces Breaking News)
   ========================================== */
.mobile-nav-bar {
    display: none;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 0;
    overflow: hidden;
    border-bottom: 3px solid #fbbf24;
}

.mobile-nav-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 15px;
    gap: 10px;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(251, 191, 36, 0.9);
    color: #1e1b4b;
    border-color: #fbbf24;
}

/* ==========================================
   DESKTOP ONLY CLASS
   ========================================== */
.desktop-only {
    display: block;
}

/* ==========================================
   DESKTOP (Above 900px) - NO CHANGES
   ========================================== */
@media (min-width: 901px) {
    .mobile-nav-bar {
        display: none !important;
    }
    
    .mobile-social-buttons {
        display: none !important;
    }
    
    .main-nav {
        display: block !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* ==========================================
   TABLET & MOBILE (max-width: 900px)
   SCALE ENTIRE PAGE TO FIT - SAME AS DESKTOP
   ========================================== */
@media (max-width: 900px) {
    
    /* SCALE THE ENTIRE HTML TO FIT SCREEN */
    html {
        zoom: 0.85;
    }
    
    /* Hide top header bar completely */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile social buttons next to logo */
    .mobile-social-buttons {
        display: flex !important;
        gap: 25px;
        margin-left: 200px;
    }
    
    /* Hide desktop nav in header */
    .main-nav {
        display: none !important;
    }
    
    /* Show mobile nav bar */
    .mobile-nav-bar {
        display: block !important;
    }
    
    /* Hide breaking news on mobile */
    .breaking-news {
        display: none !important;
    }
    
    /* Remove right sidebar ONLY */
    .right-sidebar {
        display: none !important;
    }
    
    /* Two column layout - SAME AS DESKTOP */
    .content-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    /* Header main adjustments */
    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
    
    /* Footer adjustment */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================================
   MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    
    /* Scale down more for smaller screens */
    html {
        zoom: 0.7;
    }
    
    /* Keep same grid as desktop */
    .content-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    /* Social buttons - same spacing */
    .mobile-social-buttons {
        gap: 25px;
        margin-left: 200px;
    }
    
    .mobile-social-btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }
}

/* ==========================================
   SMALL MOBILE (max-width: 600px)
   ========================================== */
@media (max-width: 600px) {
    
    /* Scale more */
    html {
        zoom: 0.6;
    }
    
    /* Same grid */
    .content-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    /* Social buttons - keep spacing */
    .mobile-social-buttons {
        gap: 22px;
        margin-left: 170px;
    }
    
    .mobile-social-btn {
        padding: 12px 22px;
        font-size: 0.92em;
    }
}

/* ==========================================
   EXTRA SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    
    /* Scale more for small phones */
    html {
        zoom: 0.5;
    }
    
    /* Same grid */
    .content-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    /* Social buttons - keep good spacing */
    .mobile-social-buttons {
        gap: 20px;
        margin-left: 160px;
    }
    
    .mobile-social-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .mobile-social-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   VERY SMALL MOBILE (max-width: 380px)
   ========================================== */
@media (max-width: 380px) {
    
    /* Maximum scale down */
    html {
        zoom: 0.42;
    }
    
    /* Same grid */
    .content-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    /* Social buttons - still good spacing */
    .mobile-social-buttons {
        gap: 18px;
        margin-left: 150px;
    }
    
    .mobile-social-btn {
        padding: 11px 18px;
        font-size: 0.88em;
    }
    
    .mobile-social-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================
   FOR BROWSERS THAT DON'T SUPPORT ZOOM
   Use transform as fallback
   ========================================== */
@supports not (zoom: 0.5) {
    @media (max-width: 900px) {
        body {
            transform: scale(0.85);
            transform-origin: top left;
            width: 117.65%;
        }
    }
    
    @media (max-width: 768px) {
        body {
            transform: scale(0.7);
            transform-origin: top left;
            width: 142.86%;
        }
    }
    
    @media (max-width: 600px) {
        body {
            transform: scale(0.6);
            transform-origin: top left;
            width: 166.67%;
        }
    }
    
    @media (max-width: 480px) {
        body {
            transform: scale(0.5);
            transform-origin: top left;
            width: 200%;
        }
    }
    
    @media (max-width: 380px) {
        body {
            transform: scale(0.42);
            transform-origin: top left;
            width: 238.1%;
        }
    }
}

/* ==========================================
   LANDSCAPE MODE
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    html {
        zoom: 0.75;
    }
    
    .mobile-social-buttons {
        gap: 20px;
        margin-left: 170px;
    }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
    html {
        zoom: 1 !important;
    }
    
    body {
        transform: none !important;
        width: 100% !important;
    }
    
    .site-header,
    .breaking-news,
    .mobile-nav-bar,
    .left-sidebar,
    .right-sidebar,
    .site-footer,
    .back-to-top,
    .mobile-social-buttons {
        display: none !important;
    }
    
    .content-grid {
        display: block !important;
    }
    
    .main-area {
        width: 100% !important;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================
   STICKY HEADER FOR MOBILE
   ========================================== */
@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .mobile-nav-bar {
        position: sticky;
        top: 0;
        z-index: 999;
    }
}
/* ==========================================
   FOOTER - REDUCED SPACING (All Pages)
   ========================================== */
.site-footer {
    padding: 20px 0 25px 0;
}

.footer-content {
    gap: 15px;
}

.footer-left p {
    margin: 3px 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 15px 0 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 12px 0 15px 0;
    }
    
    .footer-left p {
        font-size: 0.8em;
    }
    
    .footer-links a {
        font-size: 0.75em;
    }
}
/* Mobile Only Widget - Hidden on Desktop */
.mobile-only-widget {
    display: none !important;
}

/* Show on Mobile and Tablets (1024px and below) */

@media screen and (max-width: 1024px) {
    .mobile-only-widget {
        display: block !important;
        margin-top: 20px;
    }
}