/* =====================================================================
   Site Header
   ===================================================================== */

.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-dash {
    color: var(--teal);
    font-weight: 600;
}

.logo-ai {
    color: var(--teal);
}

/* Navigation */
.site-header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* =====================================================================
   Shared: nav buttons (nav-item, dropdown-toggle, login-link)
   ===================================================================== */

.header-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.header-nav-btn:hover {
    background: var(--bg-secondary);
}

.header-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Dropdown toggle chevrons are smaller */
.site-header .dropdown-toggle svg {
    width: 16px;
    height: 16px;
}

/* =====================================================================
   Shared: icon buttons (account-btn, burger-btn, mobile-panel-close)
   ===================================================================== */

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Account button overrides */
.account-btn {
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.2s;
}

.account-btn:hover {
    background: var(--teal);
    color: white;
}

/* Burger and close buttons have larger icons */
.burger-btn svg,
.mobile-panel-close svg {
    width: 24px;
    height: 24px;
}

/* Account dropdown */
.site-header .account-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    min-width: 240px;
    max-width: 300px;
}

/* =====================================================================
   Dropdowns (shared)
   ===================================================================== */

.site-header .dropdown {
    position: relative;
}

.site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 450px;
    max-width: 500px;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
}

.site-header .dropdown-menu.about-menu-dropdown {
    min-width: 280px;
    max-width: 320px;
}

.site-header #aboutDropdown .dropdown-menu,
.site-header #accountDropdown .dropdown-menu,
.site-header #proGuideDropdown .dropdown-menu {
    left: auto;
    right: 0;
}

.site-header #accountDropdown.open .dropdown-toggle svg {
    transform: none;
}

.site-header .dropdown.open .dropdown-menu {
    display: block;
}

/* Dropdown content (shared by about, pro-tools, account) */
.dropdown-section {
    padding: 0.5rem 0;
}

.dropdown-section.methods-list {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
}

.dropdown-header {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item-icon {
    width: 20px;
    height: 20px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.dropdown-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--text-color-muted);
    margin-top: 2px;
}

/* =====================================================================
   Pro Tools dropdown
   ===================================================================== */

.dropdown-menu.pro-guide-menu-dropdown {
    min-width: 450px;
    max-width: 500px;
}

/* Dropdown tabs (shared by methods filter and pro guide tabs) */
.dropdown-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dropdown-tabs::-webkit-scrollbar {
    display: none;
}

.dropdown-tab-btn {
    flex: 1;
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-tab-btn:hover {
    background: var(--bg-primary);
    border-color: var(--teal);
    color: var(--text-primary);
}

.dropdown-tab-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.pro-guide-menu-dropdown .pro-tools-tab-content {
    display: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
}

.pro-guide-menu-dropdown .pro-tools-tab-content.active {
    display: block;
}

/* Dropdown cards (shared by method items and pro guide items) */
.dropdown-card {
    display: block;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-card:hover {
    border-color: var(--teal);
}

.dropdown-card-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.dropdown-card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Pro guide cards are non-interactive */
.pro-guide-menu-dropdown .dropdown-card {
    pointer-events: none;
}

/* =====================================================================
   Mobile panel
   ===================================================================== */

.site-header .burger-btn {
    display: none;
}

.mobile-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-panel-overlay.open {
    display: block;
}

.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-panel.open {
    transform: translateX(0);
}

.mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
}

.mobile-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-nav-item:hover {
    background: var(--bg-secondary);
}

.mobile-nav-action {
    justify-content: flex-start;
    gap: 0.75rem;
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.mobile-nav-item.open svg {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    display: none;
    padding: 0.5rem 0 0.5rem 0.5rem;
}

.mobile-accordion-content.open {
    display: block;
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* =====================================================================
   Mobile breakpoint
   ===================================================================== */

@media (max-width: 960px) {
    .site-header-nav {
        display: none;
    }

    .site-header .burger-btn {
        display: flex;
    }

    .dropdown-menu.pro-guide-menu-dropdown {
        min-width: auto;
        max-width: none;
    }
}
