/* COMPREHENSIVE RESPONSIVE DESIGN FIXES - POSTSHARE - FORCE RELOAD v2.0 */

/* EMERGENCY CACHE BUSTER - TIMESTAMP: <?php echo date('Y-m-d H:i:s'); ?> */
/* MOBILE FIXES - VERSION 2.0 - AUGUST 12, 2025 */

/* GLOBAL BODY AND PAGE FIXES */
body {
    padding-top: 80px !important;
}

body * {
    padding-top: 0 !important;
}

/* FORCE ALL PAGES TO RESPECT HEADER HEIGHT */
.main-content, .container, .hero-content, main, section {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* HOME PAGE HERO SPECIAL CASE */
.hero {
    margin-top: 0 !important;
    padding-top: 90px !important;
}

/* DESKTOP RESPONSIVE FIXES */
@media (min-width: 769px) {
    .header {
        min-height: 70px !important;
        padding: 0.4rem 0 !important;
    }
    
    .header-content {
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .navigation {
        margin-top: 0 !important;
        width: auto !important;
    }
    
    .nav-links {
        flex-wrap: nowrap !important;
        gap: 1rem !important;
    }
    
    .nav-links a {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    
    .hero {
        padding-top: 90px !important;
    }
    
    .hero-title {
        font-size: 4rem !important;
        margin-top: 1rem !important;
    }
    
    body {
        padding-top: 80px !important;
    }
    
    .main-content {
        padding-top: 10px !important;
    }
}

/* MOBILE RESPONSIVE FIXES - EMERGENCY OVERRIDE */
@media screen and (max-width: 768px) {
    html body .header {
        min-height: 120px !important;
        padding: 0.5rem 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        display: block !important;
    }
    
    .header .container {
        padding: 0 0.75rem !important;
        max-width: 100% !important;
    }
    
    /* ROW 1: Logo and Action Buttons - FORCE OVERRIDE */
    html body .header .container .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        flex-wrap: nowrap !important;
        min-height: 40px !important;
        flex-direction: row !important;
    }
    
    .logo-section {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    
    .logo-section .logo {
        font-size: 1.25rem !important;
        margin-right: 0.5rem !important;
    }
    
    .brand-text {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    .brand-subtitle {
        font-size: 0.7rem !important;
        opacity: 0.8 !important;
    }
    
    html body .header .nav-actions {
        display: flex !important;
        gap: 0.5rem !important;
        flex: 0 0 auto !important;
        z-index: 1002 !important;
        position: relative !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    .nav-actions .btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }
    
    /* ROW 2: Navigation Menu - FORCE BELOW */
    html body .header .container .navigation {
        width: 100% !important;
        margin-top: 0 !important;
        clear: both !important;
        position: relative !important;
        display: block !important;
        order: 999 !important;
    }
    
    .nav-links {
        display: flex !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    .nav-links li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-links a {
        font-size: 0.7rem !important;
        padding: 3px 5px !important;
        display: block !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    /* CONTENT SPACING ADJUSTMENTS */
    body {
        padding-top: 130px !important;
    }
    
    .main-content {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }
    
    /* HOME PAGE HERO ADJUSTMENT */
    .hero {
        padding-top: 140px !important;
        margin-top: 0 !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-top: 0.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-top: 0.5rem !important;
    }
}

/* MOBILE LANDSCAPE FIXES */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        min-height: 60px !important;
        padding: 0.2rem 0 !important;
    }
    
    .header-content {
        flex-direction: row !important;
        gap: 1rem !important;
        padding: 0 0.3rem !important;
        flex-wrap: nowrap !important;
    }
    
    .logo-section {
        order: 1 !important;
    }
    
    .nav-actions {
        order: 3 !important;
        margin-left: auto !important;
    }
    
    .navigation {
        order: 2 !important;
        width: auto !important;
        margin-top: 0 !important;
        flex: 1 !important;
    }
    
    .nav-links {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-links a {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    
    .btn {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
    
    .hero {
        padding-top: 70px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-top: 0.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-top: 0.2rem !important;
    }
    
    body {
        padding-top: 70px !important;
    }
}

/* FORCE VISIBILITY AND PREVENT OVERLAPPING */
.header, .header-content, .navigation, .nav-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

/* ENSURE NO CONTENT HIDES BEHIND HEADER */
.section-content, .max-w-4xl, .max-w-7xl, .feature-card, .pricing-grid {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* SPECIFIC PAGE FIXES */
.pricing-grid, .ai-features-grid, .dashboard-grid {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* BUTTON AND TEXT FIXES */
.gradient-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: 900 !important;
}

.btn, .btn-primary, .btn-secondary {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* CRITICAL: PREVENT ANY OVERLAP */
* {
    z-index: auto !important;
}

.header {
    z-index: 1000 !important;
}

.main-content, main, .container {
    z-index: 1 !important;
    position: relative !important;
}/* FORCE RELOAD Tue Aug 12 06:58:04 AM UTC 2025 */
