/**
 * Mobile Menu & Responsive Navigation Styles
 *
 * Enhanced mobile navigation styling and animations for the party website
 * Using the brand colors: purple (#6A0DAD), golden (#FFD700), and white (#FFFFFF)
 */

/* Party Logo and Name Styling - Prevent Shrinking */
.logo-container {
    min-width: 220px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.name-row-1, .name-row-2, .name-row-3 {
    white-space: nowrap;
    display: block;
}

/* Desktop Navigation Menu */
.desktop-nav a {
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.desktop-nav a:hover {
    border-bottom: 2px solid #FFD700;
}

/* Mobile Menu Button Styling */
#mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* X animation for mobile menu button */
.hamburger-line.active {
    background-color: #FFD700;
}

.line-1.active {
    transform: translateY(9px) rotate(45deg);
}

.line-2.active {
    opacity: 0;
}

.line-3.active {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Animation and Styling */
#mobile-menu {
    background-color: rgba(106, 13, 173, 0.95);
    border-top: 2px solid #FFD700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1000;
}
    opacity: 0;
    background: rgba(106, 13, 173, 0.98);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-primary);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    border-top: 2px solid var(--secondary-color);
}

#mobile-menu:not(.hidden) {
    max-height: 100vh;
    padding: 1rem 0;
    opacity: 1;
}

/* Mobile Menu Links */
#mobile-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

#mobile-menu a:hover, 
#mobile-menu a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

#mobile-menu a i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

#mobile-menu a:hover i,
#mobile-menu a:focus i {
    transform: translateX(3px);
}

/* Donate Button Special Styling */
#mobile-menu a.donate-link {
    background-color: rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

#mobile-menu a.donate-link i {
    color: var(--secondary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile Search Styling */
#mobile-menu .mobile-search {
    padding: 0.75rem 1.25rem;
}

#mobile-menu .mobile-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu .mobile-search input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    outline: none;
}

#mobile-menu .mobile-search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#mobile-menu .mobile-search button {
    background: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

#mobile-menu .mobile-search button:hover {
    background: var(--secondary-light);
}

/* Language Switcher Styling */
.language-switcher-mobile {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.language-switcher-mobile .lang-options {
    display: flex;
    gap: 1rem;
}

.language-switcher-mobile .lang-option {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switcher-mobile .lang-option.active {
    background: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: bold;
}

.language-switcher-mobile .lang-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .site-name .name-row-1 {
        font-size: 1rem;
    }
    
    .site-name .name-row-2 {
        font-size: 0.9rem;
    }
    
    .site-name .name-row-3 {
        font-size: 0.8rem;
    }
}

/* Responsive for very small screens */
@media (max-width: 350px) {
    .site-name .name-row-1 {
        font-size: 0.9rem;
    }
    
    .site-name .name-row-2 {
        font-size: 0.8rem;
    }
    
    .site-name .name-row-3 {
        font-size: 0.7rem;
    }
}

/* Desktop Menu Responsive Adjustments */
@media (min-width: 768px) {
    .desktop-nav a {
        position: relative;
    }
    
    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .desktop-nav a:hover::after {
        width: 70%;
    }
    
    .desktop-nav .donate-btn {
        position: relative;
        overflow: hidden;
    }
    
    .desktop-nav .donate-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.5s ease;
    }
    
    .desktop-nav .donate-btn:hover::before {
        left: 100%;
    }
}
