/* Header and Footer Styles */

/* Currency Selector */
.currency-selector-nav {
    display: flex;
    align-items: center;
}

.currency-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.currency-select:hover {
    border-color: #667eea;
}

.currency-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.user-menu:hover {
    background: rgba(102, 126, 234, 0.2);
}

.user-menu i {
    font-size: 20px;
}

.sign-in-pill .guest-avatar i {
    font-size: 0.82rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: #667eea;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        z-index: 1000;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        background: #f5f5f5;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Menu Script */
@media (max-width: 768px) {
    .dropdown:hover .dropdown-menu {
        /* Disable hover on mobile */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Sharp global header/footer override */
.currency-select {
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    font-weight: 750;
}

.user-menu {
    border: 1px solid #d8e5fb;
    border-radius: 999px;
    background: #eef4ff;
    color: #111827;
}

.dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.footer {
    background: #fff;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    gap: 36px;
}

.footer-section h3,
.footer-section h4 {
    color: #111827;
}

.footer-section p,
.footer-section ul li a,
.footer-bottom {
    color: #4b5563;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
}
