/* ============================================
   QUANTUMX VAULT - ADDITIONAL COMPONENT STYLES
   Translator, Mobile Menu, Dropdown Fixes
   ============================================ */

/* ===== TRANSLATOR DROPDOWN - CLEAN TRANSPARENT STYLE ===== */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 28px 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.lang-select:focus {
    border-color: #8B5CF6;
    background: rgba(0, 0, 0, 0.3);
}

/* Light header version */
.tars-header.on-light .lang-select {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1E293B;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
}

.tars-header.on-light .lang-select:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #8B5CF6;
}

/* ===== MOBILE MENU - OPTIMIZED ===== */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    background: rgba(5, 8, 15, 0.98);
    backdrop-filter: blur(30px);
    z-index: 2500;
    transition: top 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 0 0 30px 30px;
}

.mobile-menu.active {
    top: 80px;
}

.menu-content {
    max-width: 90%;
    width: 90%;
    padding: 20px 0 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.menu-nav {
    margin-bottom: 20px;
    width: 100%;
}

.nav-item {
    margin-bottom: 8px;
    width: 100%;
}

.nav-link-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link-main:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(5px);
}

.menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    z-index: 2600;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.2s ease;
}

.menu-close:hover {
    background: #8B5CF6;
    transform: rotate(90deg);
}

/* ===== SERVICE DROPDOWN - FIXED ===== */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger i {
    transition: transform 0.2s ease;
    font-size: 0.7rem;
}

.nav-item.has-dropdown:hover .dropdown-trigger i,
.nav-item.has-dropdown.open .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 100;
    list-style: none;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: rgba(139, 92, 246, 0.15);
    color: white;
    padding-left: 25px;
}

/* Light header version for dropdown */
.tars-header.on-light .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(139, 92, 246, 0.2);
}

.tars-header.on-light .dropdown-link {
    color: #1E293B;
}

.tars-header.on-light .dropdown-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #6D28D9;
}

/* Mobile dropdown inside menu */
.mobile-menu .has-dropdown .dropdown-menu-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 15px;
}

.mobile-menu .has-dropdown.open .dropdown-menu-mobile {
    max-height: 150px;
}

.dropdown-link-mobile {
    display: block;
    padding: 10px 15px 10px 35px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-link-mobile:hover {
    color: white;
    border-left-color: #8B5CF6;
    padding-left: 40px;
}

/* ===== RIPPLE EFFECTS ===== */
.ripple-effect {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(30);
        opacity: 0;
    }
}

.btn-compare, .btn-check, .health-more-btn {
    position: relative;
    overflow: hidden;
}

/* ===== PRICING CARD RIPPLE ===== */
.pr-click-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(29, 78, 216, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pr-ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 100;
}

@keyframes pr-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(50);
        opacity: 0;
    }
}

.pr-card.pr-selected {
    box-shadow: 0 0 0 3px #1d4ed8, 0 30px 55px -15px rgba(29,78,216,0.4);
    transform: scale(1.02);
}

/* ===== CTA CARD FLOAT ===== */
.cta-white-card {
    transition: transform 0.3s ease;
}

/* ===== RESPONSIVE FOR TRANSLATOR ===== */
@media (max-width: 768px) {
    .lang-select {
        padding: 5px 24px 5px 10px;
        font-size: 0.75rem;
        background-size: 8px;
        background-position: right 8px center;
    }
}

@media (max-width: 480px) {
    .lang-select {
        padding: 4px 20px 4px 8px;
        font-size: 0.7rem;
        min-width: 60px;
    }
}