/* SheekoBox Theme - Adaptive Two-Row Header */

/* Header Base */
.site-header {
    background: #3498DB;
    position: relative; /* Changed from fixed to relative */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Navigation Container */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
    order: 1;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-image {
    height: 30px;
    width: auto;
}

.logo-text {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-wrapper:hover .logo-text {
    opacity: 0.9;
}

/* Search Section */
.search-section {
    flex-shrink: 0;
    order: 2;
    position: relative;
}

.search-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    height: 34px;
}

.search-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.search-toggle svg {
    width: 14px;
    height: 14px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 12px;
    min-width: 320px;
    display: none;
    z-index: 1002;
}

.search-dropdown.active {
    display: block;
}

.header-search-form {
    display: flex;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 14px;
    color: #333;
    background: #FFFFFF;
}

.header-search-input:focus {
    outline: none;
    border-color: #3498DB;
}

.search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #3498DB;
}

.search-submit:hover {
    opacity: 0.7;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    order: 3;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    display: inline-block;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #FFFFFF;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 20px;
    transition: all 0.2s;
    height: 34px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF !important;
}

.nav-menu .current-menu-item .nav-link,
.nav-menu .current-page-ancestor .nav-link {
    background: rgba(255,255,255,0.25);
}

/* App Button */
.app-cta-button {
    background: #FFFFFF;
    color: #3498DB;
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    height: 34px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    order: 4;
}

.app-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 8px;
    order: 5;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    order: 6;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #FFFFFF;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Slide-in */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    padding: 60px 20px 20px;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: rgba(255,255,255,0.15);
}

.mobile-app-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: #FFFFFF;
    color: #3498DB;
    text-align: center;
    border-radius: 25px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Content Spacing */
.site-content {
    margin-top: 0; /* No margin needed since header is not fixed */
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: none;
}

.search-overlay.active {
    display: block;
}

/* ========================================
   RESPONSIVE - TWO ROW LAYOUT
   ======================================== */

/* Medium screens - Stack into two rows */
@media (max-width: 1100px) {
    .main-navigation {
        padding: 6px 0;
    }
    
    /* Top row: Logo, Search, App, Social */
    .logo-section {
        order: 1;
        flex: 0 0 auto;
    }
    
    .search-section {
        order: 2;
        margin-left: auto;
    }
    
    .app-cta-button {
        order: 3;
    }
    
    .social-icons {
        order: 4;
    }
    
    /* Bottom row: Full width navigation */
    .nav-menu {
        order: 5;
        flex: 0 0 100%;
        justify-content: center;
        margin-top: 6px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 11px;
        height: 32px;
    }
}

/* Tablet - Compact two rows */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hide search text, show icon only */
    .search-toggle span {
        display: none;
    }
    
    .search-toggle {
        padding: 10px;
        width: 40px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .app-cta-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Smaller social icons */
    .social-icons a {
        width: 36px;
        height: 36px;
    }
    
    .social-icons svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Tablet - Hide social, keep two rows */
@media (max-width: 768px) {
    .social-icons {
        display: none;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-text {
        font-size: 14px;
    }
}

/* Mobile - Hamburger menu */
@media (max-width: 640px) {
    .main-navigation {
        flex-wrap: nowrap;
        padding: 8px 0;
        min-height: 48px;
    }
    
    /* Hide all except logo and hamburger */
    .search-section,
    .nav-menu,
    .app-cta-button,
    .social-icons {
        display: none !important;
    }
    
    .logo-section {
        order: 1;
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .site-content {
        margin-top: 0; /* No margin needed */
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .logo-text {
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Remove default link styles */
a {
    text-decoration: none;
}

.site-header a:hover {
    text-decoration: none;
}

/* Print Styles */
@media print {
    .site-header {
        position: relative;
        box-shadow: none;
    }
    
    .search-section,
    .app-cta-button,
    .social-icons,
    .mobile-menu-toggle {
        display: none !important;
    }
}




/* ====================================
   Begin mobile menu styles for FB and WhatsApp
==================================== */
/* Mobile Social Buttons Styles */
/* Add these styles to your header-styles.css file */
.mobile-social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mobile-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
    width: 100%;
}

.mobile-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-social-btn span {
    white-space: nowrap;
}

/* WhatsApp Button */
.mobile-social-btn.whatsapp-btn {
    background: #25D366;
}

.mobile-social-btn.whatsapp-btn:hover,
.mobile-social-btn.whatsapp-btn:active {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

/* Facebook Button */
.mobile-social-btn.facebook-btn {
    background: #1877f2;
}

.mobile-social-btn.facebook-btn:hover,
.mobile-social-btn.facebook-btn:active {
    background: #0c5bbf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    color: white;
    text-decoration: none;
}

/* Alternative: Icon-only style for smaller screens */
@media (max-width: 360px) {
    .mobile-social-buttons {
        justify-content: center;
    }
    
    .mobile-social-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }
    
    .mobile-social-btn span {
        display: none;
    }
}

/* Ensure proper spacing in mobile menu */
.mobile-menu-content {
    padding: 60px 20px 20px;
}

.mobile-nav {
    margin-bottom: 10px;
}

.mobile-app-button {
    margin-top: 20px;
}
/* ====================================
   End mobile menu styles for FB and WhatsApp
==================================== */
