/*
Theme Name: PunjabiPosts Premium
Theme URI: https://punjabiposts.com
Description: A premium, ultra-fast, and mobile-first child theme based on GeneratePress, perfectly optimized for Google Discover & AdSense. Specially crafted for PunjabiPosts.com.
Author: Harpreet Singh Gill
Author URI: https://punjabiposts.com
Template: generatepress
Version: 1.3.2
*/
:root{--primary-color:#1e293b;--accent-color:#f97316;--accent-hover:#ea580c;--text-main:#334155;--text-muted:#64748b;--text-light:#f8fafc;--bg-page:#f8fafc;--bg-card:#ffffff;--border-color:#e2e8f0;--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow-md:0 4px 6px -1px rgb(0 0 0 / 0.05),0 2px 4px -2px rgb(0 0 0 / 0.05);--shadow-hover:0 10px 15px -3px rgb(0 0 0 / 0.08),0 4px 6px -4px rgb(0 0 0 / 0.05);--font-heading:'Mukta','Noto Sans Gurmukhi',system-ui,sans-serif;--font-body:system-ui,-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,sans-serif;}html{scroll-behavior:smooth;}body{background-color:var(--bg-page);color:var(--text-main);font-family:var(--font-body);font-size:16px;line-height:1.6;}h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--primary-color);font-weight:700;}img{max-width:100%;height:auto;}.site-header{background:var(--bg-card);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:100;box-shadow:var(--shadow-sm);}.main-navigation{background-color:#ffffff !important;border-bottom:1px solid var(--border-color);}.main-navigation .main-nav ul li a{color:var(--primary-color) !important;font-weight:600;}.main-navigation .main-nav ul li a:hover{color:var(--accent-color) !important;background: rgba(0,0,0,0.02) !important;}.generate-columns .inside-article,.blog .inside-article,.archive .inside-article{background:#fff;border-radius:16px;box-shadow:var(--shadow-md);margin-bottom:30px;overflow:hidden;transition:0.3s;}.post-image img{width:100%;object-fit:cover;aspect-ratio:16/9;}.entry-title a{color:var(--primary-color) !important;text-decoration:none;}.entry-title a:hover{color:var(--accent-color) !important;}

/* Mobile Menu */
@media (max-width: 768px) {
    .main-navigation .menu-toggle { background: transparent !important; color: var(--primary-color) !important; border: none !important; }
    .site-header { background: #fff !important; padding: 10px 0 !important; }
    .inside-header { display: flex !important; justify-content: space-between !important; align-items: center !important; }
}

/* Premium Mobile Bottom Nav */
.pp-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 99999;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .pp-mobile-nav { display: flex; }
    body { padding-bottom: 80px !important; }
}
.pp-nav-item { text-align: center; color: var(--text-muted); text-decoration: none; font-size: 11px; font-weight: 700; flex: 1; }
.pp-nav-item.active { color: var(--accent-color); }

/* Surgical Hide */
.rank-math-score, .rank-math-lesson-title { display: none !important; }

/* POST VISIBILITY & CLICKABILITY */
@media (max-width: 768px) {
    article, .inside-article, .entry-header, .entry-title, .entry-title a, .entry-summary, .post-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* TOTAL LOGIN HIDE - CACHE BREAKER */
#ppLoginModal, .pp-modal-overlay, .login-button, a[href*="#login"], .pp-modal-content, .login-link { 
    display: none !important; 
    visibility: hidden !important; 
    opacity: 0 !important; 
    pointer-events: none !important; 
    position: absolute !important;
    left: -9999px !important;
}

/* Homepage Surgical Cleanup (Desktop & Mobile) */
.home .widget_search:nth-of-type(2), 
.home .wp-block-search:nth-of-type(2),
.home .widget_login,
.home .widget_wp_login_form,
.home .wp-block-loginout,
.home .login-form,
.home #loginform,
.home .login-area,
.home .raw-form-message,
.home .response,
.home .error-message,
.home .success-message,
.home .wpcf7-response-output,
.home [id*="login"],
.home [class*="login"],
/* Hide raw debug/template strings */
.home *:contains("{{"),
.home *:contains("}}") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Aggressive Homepage Mobile Optimization */
@media (max-width: 768px) {
    /* Hide Sidebars and redundant containers */
    .home .is-right-sidebar, 
    .home .is-left-sidebar,
    .home .sidebar,
    .home #right-sidebar,
    .home #left-sidebar,
    .home .widget-area {
        display: none !important;
    }

    /* Hide ALL widgets except the ones we've custom built for the homepage */
    .home .site-main .widget:not(.pp-home-section .widget),
    .home .wp-block-group,
    .home #main > footer {
        display: none !important;
    }

    /* Polish the Featured Section */
    .pp-featured-section {
        padding: 20px 0 !important;
    }
    
    .pp-featured-card {
        margin-bottom: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    }

    /* Force visibility only for the custom premium sections */
    .home .pp-home-hero,
    .home .pp-homepage-content,
    .home .pp-home-section,
    .home .pp-featured-section,
    .home .pp-quick-topics {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Surgical hide for duplicate search on mobile */
    .home .site-main .widget_search,
    .home .site-main .wp-block-search {
        display: none !important;
    }

    /* Hide broken template strings on mobile */
    .home .wpcf7-form-control-wrap,
    .home .wpcf7-response-output {
        display: none !important;
    }
}
