/* Mobile Navigation Styles */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary, #ffffff);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: transform 0.3s;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary, #131720);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

/* Menu Content Container */
.mobile-menu-content {
    padding: 20px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary, #e3e8ef);
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.mobile-menu-close:hover {
    color: var(--text-primary, #ffffff);
    transform: rotate(90deg);
}

/* Menu Links */
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text-secondary, #e3e8ef);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-menu-link .menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mobile-menu-link:hover .menu-icon,
.mobile-menu-link.active .menu-icon {
    opacity: 1;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: var(--bg-tertiary, #1a1f2e);
    color: var(--text-primary, #ffffff);
    border-left-color: var(--accent-blue, #60a5fa);
}

.mobile-menu-link.active {
    background: var(--bg-tertiary, #1a1f2e);
    color: var(--primary-blue, #1a73e8);
    border-left-color: var(--primary-blue, #1a73e8);
    font-weight: 600;
}

/* Expandable Sections */
.mobile-menu-section {
    border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.mobile-menu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu-section-header:hover {
    background: var(--bg-tertiary, #1a1f2e);
}

.mobile-menu-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-menu-section.expanded .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-menu-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-section.expanded .mobile-menu-section-content {
    max-height: 500px;
}

.mobile-menu-section-content .mobile-menu-link {
    padding-left: 40px;
    font-size: 0.95rem;
}

/* Primary CTA Link */
.mobile-menu-primary {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white !important;
    margin: 8px 16px 8px 32px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border-left: 3px solid transparent !important;
}

.mobile-menu-primary:hover {
    background: linear-gradient(135deg, #1557b0, #1a73e8);
    transform: translateY(-2px);
}

/* Divider */
.mobile-menu-divider {
    height: 1px;
    background: var(--border-subtle, rgba(148, 163, 184, 0.1));
    margin: 12px 0;
}

/* Menu Tagline - At Bottom */
.mobile-menu-tagline {
    margin-top: auto;
    padding: 24px 24px 40px;
    color: var(--text-tertiary, #94a3b8);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
    border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

/* Mobile-only visibility */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide desktop nav on mobile */
    header nav {
        display: none !important;
    }
}

/* Desktop - ensure mobile menu is hidden */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    header nav {
        display: flex !important;
    }
}

/* Overlay backdrop */
.mobile-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 80%;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Hide footer tagline on mobile - it's in the menu now */
@media (max-width: 768px) {
    footer > div > div:first-child {
        display: none;
    }
}

/* Active Link Highlighting */
.mobile-menu-link.active {
    color: var(--accent-blue, #1a73e8);
    font-weight: 600;
    background: rgba(26, 115, 232, 0.1);
}

/* Keep section header visible/emphasized when section is expanded */
.mobile-menu-section.expanded .mobile-menu-section-header {
    color: var(--accent-blue, #1a73e8);
    font-weight: 600;
}

/* Hide Google reCAPTCHA badge on mobile */
/* Per Google's terms, must include attribution text in privacy policy or footer */
/* "This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply." */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}
