/*
Theme Name: Aidoor Genesis Child
Theme URI: https://aidoor.co.in
Description: Fully Responsive Floating Header Genesis Child Theme
Author: Sugan Siddhant Dodrai
Author URI: https://aidoor.co.in
Version: 1.3
Template: genesis
Text Domain: aidoor-genesis-child
*/

/* Root Variables */
:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --text-color: #222;
    --light-bg: #f8f9fa;
    --header-bg: #ffffff;
    --shadow: 0 2px 20px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --mobile-menu-bg: #ffffff;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Boxed Container */
.site-inner {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Floating Header Styles */
.floating-header .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    z-index: 9999;
    transition: all 0.3s ease;
    padding: 10px 0;
}

/* Admin Bar Adjustment */
.admin-bar.floating-header .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar.floating-header .site-header {
        top: 46px;
    }
}

/* Header Container */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 70px;
}

/* Header Sections */
.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Desktop Menu Styles */
.desktop-menu .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.desktop-menu .menu li {
    position: relative;
}

.desktop-menu .menu a {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

.desktop-menu .menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.desktop-menu .menu .current-menu-item > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Desktop Submenu */
.desktop-menu .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.desktop-menu .menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu .menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.desktop-menu .menu .sub-menu a {
    padding: 10px 20px;
    text-transform: none;
    border-bottom: none;
    white-space: nowrap;
}

.desktop-menu .menu .sub-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Logo Styles */
.custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

/* Search Styles */
.search-toggle {
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    color: #333;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-search-form {
    position: absolute;
    top: 100%;
    right: 30px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-form .search-form {
    display: flex;
    gap: 10px;
}

.header-search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.header-search-form input[type="submit"] {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hamburger Menu - Mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Container */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--mobile-menu-bg);
    padding: 30px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9998;
}

.mobile-menu-container.active {
    transform: translateX(0);
}

/* Mobile Navigation */
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 5px;
    position: relative;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Submenu */
.mobile-nav .sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
    background: var(--light-bg);
}

.mobile-nav .sub-menu a {
    font-size: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
}

/* Submenu Toggle for Mobile */
.submenu-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.submenu-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.submenu-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #666;
}

/* Content Area Adjustment */
.floating-header .site-inner {
    margin-top: 110px;
}

/* Footer */
.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet and Mobile */
@media screen and (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-menu-container {
        display: block;
    }
    
    .header-center {
        position: relative;
        left: 0;
        transform: none;
        margin: 0 auto;
    }
    
    .header-container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .search-toggle {
        width: 35px;
        height: 35px;
    }
    
    .header-search-form {
        min-width: 280px;
        right: 20px;
        left: 20px;
    }
    
    .mobile-menu-container {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .floating-header .site-inner {
        margin-top: 100px;
    }
}

@media screen and (max-width: 480px) {
    .site-inner {
        padding: 20px;
        margin: 15px auto;
    }
    
    .mobile-nav a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .floating-header .site-inner {
        margin-top: 90px;
    }
}

/* Small Mobile */
@media screen and (max-width: 360px) {
    .header-container {
        padding: 0 15px;
    }
    
    .custom-logo {
        max-height: 35px;
    }
    
    .search-toggle {
        width: 32px;
        height: 32px;
    }
    
    .hamburger-menu {
        width: 25px;
        height: 18px;
    }
}

/* ===== FIX FOR EXTRA MENU ITEMS ===== */

/* Hide all default Genesis navigation that might appear */
.nav-primary,
.nav-secondary,
.site-header .wrap .nav-primary,
.site-header .wrap .genesis-nav-menu,
.genesis-nav-menu:not(.desktop-nav):not(.mobile-nav) {
    display: none !important;
}

/* Ensure our custom menu is visible */
.header-left .desktop-nav,
.header-left .nav-primary,
.mobile-nav {
    display: block !important;
}

/* Clean up header area */
.site-header {
    padding: 0 !important;
    background: var(--header-bg) !important;
}

.site-header > .wrap {
    display: none;
}

/* Ensure proper z-index stacking */
.header-container {
    position: relative;
    z-index: 10000;
}

.mobile-menu-container {
    z-index: 9999;
}

/* Fix for any remaining Genesis markup */
.genesis-nav-menu {
    margin: 0;
    padding: 0;
}

/* Ensure desktop menu is visible on large screens */
@media screen and (min-width: 1025px) {
    .desktop-menu .menu {
        display: flex !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }
    
    .mobile-menu-container {
        display: none !important;
    }
}

/* Fix mobile menu visibility */
@media screen and (max-width: 1024px) {
    .desktop-menu {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex !important;
    }
    
    .mobile-menu-container {
        display: block;
    }
}

/* ============================================
   GLOBAL FIX - पूरी वेबसाइट के लिए
   सभी पेज पर कंटेंट साफ दिखेगा
   ============================================ */

/* ---------- BASE RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000 !important;
    color: #e0e0e0 !important;  /* हल्का ग्रे टेक्स्ट */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* ---------- TYPOGRAPHY - सभी हेडिंग के लिए ---------- */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* मुख्य पेज टाइटल */
h1 {
    font-size: 2.5rem;
    border-bottom: 4px solid #ff4d4d;
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ff4d4d, #3385ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* सेक्शन हेडिंग */
h2 {
    font-size: 2rem;
    border-left: 6px solid #3385ff;
    padding-left: 1.5rem;
    margin: 2rem 0 1.5rem;
    background: linear-gradient(135deg, #3385ff, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    color: #ff4d4d !important;
    border-bottom: 2px solid #3385ff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h4 {
    font-size: 1.2rem;
    color: #3385ff !important;
}

h5, h6 {
    color: #ff4d4d !important;
}

/* ---------- PARAGRAPHS & TEXT ---------- */
p {
    color: #cccccc !important;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

strong, b {
    color: #ff4d4d !important;
    font-weight: 600;
}

em, i {
    color: #3385ff !important;
}

/* ---------- LINKS ---------- */
a {
    color: #3385ff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #ff4d4d !important;
    text-decoration: underline;
}

/* ---------- LISTS ---------- */
ul, ol {
    color: #cccccc !important;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    color: #cccccc !important;
    margin: 0.5rem 0;
}

/* ---------- CODE BLOCKS ---------- */
code, pre {
    background-color: #1a1a1a !important;
    color: #00ff88 !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid #333333;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid #ff4d4d;
}

pre code {
    background-color: transparent !important;
    color: #00ff88 !important;
    padding: 0;
    border: none;
}

/* ---------- COMMAND BLOCKS (जैसे आपकी troubleshooting guide में) ---------- */
.command-block {
    background-color: #0a0a0a !important;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
}

.command-block code {
    color: #00ff88 !important;
    font-size: 0.9rem;
}

/* ---------- TABLES ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #0a0a0a !important;
    border: 1px solid #333333;
}

th {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 0.75rem;
    font-weight: 600;
    border-bottom: 3px solid #3385ff;
}

td {
    padding: 0.75rem;
    color: #cccccc !important;
    border-bottom: 1px solid #333333;
}

tr:hover {
    background-color: #1a1a1a !important;
}

/* ---------- BLOCKQUOTES ---------- */
blockquote {
    border-left: 4px solid #3385ff;
    background-color: #0a0a0a;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #e0e0e0 !important;
}

blockquote p {
    color: #e0e0e0 !important;
}

/* ---------- HORIZONTAL RULE ---------- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, #ff4d4d, #3385ff, #ff4d4d);
    margin: 2rem 0;
}

/* ---------- ALERTS / NOTES (अगर आपके पेज में हों) ---------- */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(51, 133, 255, 0.1);
    border-left-color: #3385ff;
    color: #ffffff;
}

.alert-warning {
    background-color: rgba(255, 77, 77, 0.1);
    border-left-color: #ff4d4d;
    color: #ffffff;
}

.alert-success {
    background-color: rgba(0, 255, 136, 0.1);
    border-left-color: #00ff88;
    color: #ffffff;
}

/* ---------- BUTTONS ---------- */
button, .button {
    background: linear-gradient(135deg, #3385ff, #ff4d4d);
    color: #ffffff !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, .button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

/* ---------- CARDS ---------- */
.card {
    background-color: #0a0a0a !important;
    border: 1px solid #333333;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.card h3 {
    margin-top: 0;
}

/* ---------- FORMS ---------- */
input, textarea, select {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3385ff;
    box-shadow: 0 0 10px rgba(51, 133, 255, 0.3);
}

label {
    color: #cccccc !important;
    margin-bottom: 0.25rem;
    display: block;
}

/* ---------- SPECIFIC FIX FOR TROUBLESHOOTING GUIDE ---------- */
/* यह आपके दिए गए Screenshot के अनुसार है */

/* मुख्य टाइटल - "EasyInstall - Complete Troubleshooting Guide" */
h1:first-of-type {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* "Quick Diagnostic Commands" सेक्शन */
h2:contains("Quick Diagnostic Commands") {
    /* स्पेसिफिक सेलेक्टर नहीं लिख सकते, इसलिए जनरल रखेंगे */
}

/* कमांड लिस्ट */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #0a0a0a !important;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    font-family: 'JetBrains Mono', monospace;
}

ul li code {
    background-color: transparent !important;
    color: #00ff88 !important;
    font-size: 0.9rem;
    border: none;
    padding: 0;
}

/* डैश (—) को ठीक करना */
ul li::before {
    content: "→";
    color: #ff4d4d;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* "Run these first to identify issues" जैसे टेक्स्ट */
ul li em {
    color: #cccccc !important;
    font-style: normal;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

/* ---------- UTILITY CLASSES ---------- */
.text-primary { color: #3385ff !important; }
.text-secondary { color: #ff4d4d !important; }
.text-success { color: #00ff88 !important; }
.text-white { color: #ffffff !important; }
.text-gray { color: #cccccc !important; }

.bg-dark { background-color: #0a0a0a !important; }
.bg-darker { background-color: #000000 !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    body { font-size: 0.95rem; }
    
    ul, ol { margin-left: 1.5rem; }
    
    pre {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
}