/* =====================================
   UNIVERSAL MENU CSS - PURE CSS (NO JAVASCRIPT)
   Safe to use on any website without conflicts
   ===================================== */

/* Body padding for fixed menu */
body {
    margin: 0 !important;
    padding-top: 60px !important;
}

/* ===== MAIN MENU WRAPPER ===== */
.youtubetools-xyzwrap {
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
}

/* ===== LOGO ===== */
.youtubetools-xyzlogo {
    height: 32px !important;
    cursor: pointer !important;
    display: block !important;
}

/* ===== NAV & MENU ELEMENTS ===== */
.youtubetools-xyznav,
.youtubetools-xyzmenu {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.youtubetools-xyzmenu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== MENU BUTTONS ===== */
.youtubetools-xyzbtn {
    color: #0000EE !important;
    text-decoration: none !important;
    font-weight: bold !important;
    cursor: pointer !important;
    user-select: none !important;
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
}

.youtubetools-xyzbtn:hover {
    text-decoration: underline !important;
}

/* ===== CONTACT SECTION ===== */
.youtubetools-xyzcontact {
    margin-left: auto !important;
}

.youtubetools-xyzcontact a {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.youtubetools-xyzcontact a:hover {
    text-decoration: underline !important;
}

/* ===== DROPDOWN CONTAINER (DESKTOP) ===== */
.youtubetools-xyzdropdown {
    position: relative !important;
    display: inline-block !important;
}

.youtubetools-xyzdropbtn {
    color: #0000EE !important;
    font-weight: bold !important;
}

/* Dropdown Content (Hidden by default) */
.youtubetools-xyzdropcontent {
    display: none !important;
    position: absolute !important;
    background: #fff !important;
    border: 2px solid #666 !important;
    min-width: 240px !important;
    padding: 5px 0 !important;
    z-index: 100000 !important;
    border-radius: 10px !important;
    box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.08) !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 2px !important;
}

/* Show dropdown on hover */
.youtubetools-xyzdropdown:hover .youtubetools-xyzdropcontent {
    display: block !important;
}

/* Dropdown Links */
.youtubetools-xyzdropcontent a {
    color: #000 !important;
    padding: 12px 14px !important;
    text-decoration: none !important;
    display: block !important;
    border-bottom: 1px solid #eee !important;
    transition: background 0.2s !important;
}

.youtubetools-xyzdropcontent a:last-child {
    border-bottom: none !important;
}

.youtubetools-xyzdropcontent a:hover {
    background: #f5f5f5 !important;
}

/* ===== MOBILE MENU TOGGLE (CHECKBOX HACK) ===== */
.youtubetools-xyzmenuToggle {
    display: none !important;
}

/* Hamburger Icon */
.youtubetools-xyzhamburger {
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    cursor: pointer !important;
    padding: 8px !important;
    margin-left: auto !important;
}

.youtubetools-xyzhamburger span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background: #000 !important;
    border-radius: 2px !important;
    transition: all 0.3s !important;
}

/* Hamburger animation when checked */
.youtubetools-xyzmenuToggle:checked~.youtubetools-xyzhamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.youtubetools-xyzmenuToggle:checked~.youtubetools-xyzhamburger span:nth-child(2) {
    opacity: 0 !important;
}

.youtubetools-xyzmenuToggle:checked~.youtubetools-xyzhamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

/* ===== MOBILE MENU ===== */
.youtubetools-xyzmobileMenu {
    display: none !important;
    position: fixed !important;
    top: 50px !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    z-index: 99999 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-in-out !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #ddd !important;
}

/* Show mobile menu when checkbox is checked */
.youtubetools-xyzmenuToggle:checked~.youtubetools-xyzmobileMenu {
    max-height: 100vh !important;
}

/* Accordion using HTML5 <details> */
.youtubetools-xyzaccordion {
    border-bottom: 1px solid #eee !important;
}

.youtubetools-xyzaccordion:last-child {
    border-bottom: none !important;
}

.youtubetools-xyzaccordion summary {
    padding: 16px 18px !important;
    background: #f9f9f9 !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #333 !important;
    list-style: none !important;
    user-select: none !important;
    transition: background 0.2s !important;
}

.youtubetools-xyzaccordion summary::-webkit-details-marker {
    display: none !important;
}

.youtubetools-xyzaccordion summary::before {
    content: '▶' !important;
    display: inline-block !important;
    margin-right: 8px !important;
    transition: transform 0.3s !important;
    font-size: 12px !important;
}

.youtubetools-xyzaccordion[open] summary::before {
    transform: rotate(90deg) !important;
}

.youtubetools-xyzaccordion summary:hover {
    background: #f0f0f0 !important;
}

/* Accordion Content */
.youtubetools-xyzaccordionContent {
    background: #fff !important;
}

.youtubetools-xyzaccordionContent a {
    display: block !important;
    padding: 14px 18px 14px 32px !important;
    color: #0000EE !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-bottom: 1px solid #eee !important;
    transition: background 0.2s !important;
}

.youtubetools-xyzaccordionContent a:last-child {
    border-bottom: none !important;
}

.youtubetools-xyzaccordionContent a:hover {
    background: #f5f5f5 !important;
}

/* =====================================
   📱 MOBILE RESPONSIVE STYLES
   ===================================== */
@media (max-width: 700px) {
    body {
        padding-top: 50px !important;
    }

    .youtubetools-xyzwrap {
        font-size: 13px !important;
        padding: 0 10px !important;
        gap: 12px !important;
        height: 50px !important;
        justify-content: flex-start !important;
    }

    .youtubetools-xyzlogo {
        height: 24px !important;
    }

    /* Hide desktop elements on mobile */
    .youtubetools-xyzcontact,
    .youtubetools-xyzdropdown {
        display: none !important;
    }

    /* Show only Home and Blogs on mobile */
    .youtubetools-xyzbtn {
        font-size: 12px !important;
        padding: 4px 2px !important;
        white-space: nowrap !important;
    }

    /* Show hamburger menu on mobile */
    .youtubetools-xyzhamburger {
        display: flex !important;
    }

    /* Show mobile menu on mobile */
    .youtubetools-xyzmobileMenu {
        display: block !important;
    }
}