/**
 * Basic Mobile Responsive CSS
 * Simple responsive styles without modern menu changes
 */

/* Mobile responsive basics */
@media (max-width: 767px) {
    /* Body */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    /* Container */
    .container {
        width: 100%;
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Header stays as is */
    .site-header {
        width: 100%;
    }
    
    .header-wrapper {
        padding: 10px 0;
    }
    
    .header-top {
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    /* Site branding */
    .site-branding {
        flex: 1;
    }
    
    .site-logo {
        font-size: 14px;
    }
    
    .site-logo .logo-icon {
        font-size: 18px;
    }
    
    /* Hide desktop header info */
    .header-info {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: 1px solid #ddd;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 20px;
        color: #333;
    }
    
    /* Navigation responsive */
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: #333;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Quick menu responsive */
    .quick-menu-bar {
        width: 100%;
        overflow-x: auto;
    }
    
    .quick-menu {
        display: flex;
        padding: 10px 5px;
        gap: 10px;
        min-width: fit-content;
    }
    
    .quick-menu-item {
        padding: 8px 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Hero banner */
    .hero-banner-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .banner-image {
        width: 100%;
        height: auto;
    }
    
    /* Content area */
    .site-content {
        padding: 15px 10px;
    }
    
    /* Custom sections */
    .custom-section {
        margin-bottom: 15px;
    }
    
    .custom-section .stat-box {
        border-radius: 8px;
    }
    
    /* Posts with thumbnails */
    .post-link-thumbnail {
        padding: 10px;
    }
    
    .post-thumbnail-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .post-title-thumbnail {
        font-size: 14px;
    }
    
    .post-excerpt {
        font-size: 12px;
    }
    
    /* Footer */
    .site-footer {
        padding: 20px 0;
    }
    
    .footer-widgets {
        display: block;
    }
    
    .footer-widget,
    .footer-widget-area {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    /* Mobile bottom navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 8px 0;
        z-index: 1000;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 11px;
        flex: 1;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #009688;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 768px) {
    .mobile-menu-toggle,
    .mobile-menu-close,
    .mobile-bottom-nav,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-navigation {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Simple mobile menu JavaScript functionality */
@media (max-width: 767px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        color: #333;
    }
}

/* Landscape adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .header-top {
        padding: 5px 10px;
    }
    
    .site-logo {
        font-size: 13px;
    }
    
    .quick-menu-item {
        padding: 6px 12px;
        font-size: 11px;
    }
}