/* Shared component styles for JobAvion */

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #38bdf8;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-links .nav-link {
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-links .nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.mobile-menu-links .nav-link.active {
    background: rgba(56, 189, 248, 0.1);
}

.btn-login {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    color: #0f172a !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-current:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(255,255,255,0.05);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

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

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
}

.lang-option.active {
    color: #38bdf8;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Footer */
footer {
    background: #0a0f1a;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .btn-login {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .lang-current {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .lang-code {
        display: none;
    }

    .lang-menu {
        right: -10px;
        min-width: 150px;
    }

    .top-nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }
}