/**
 * Landing v3 top bar
 * Used by resources/views/landing/v3/components/top-bar.blade.php
 */

.landing-v2-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-logo img {
    height: 1.75rem;
    width: auto;
}

.topbar-nav-center {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    padding: 0.2rem 0.25rem;
    margin-right: 0.5rem;
}

.topbar-link {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.topbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.topbar-link-active {
    background: #84cc16;
    color: #0a0a0a;
    font-weight: 600;
}

.topbar-link-active:hover {
    background: #a3e635;
    color: #0a0a0a;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.topbar-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar-pill i {
    font-size: 0.65rem;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #84cc16;
    color: #0a0a0a;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}

.topbar-cta:hover {
    background: #a3e635;
    transform: translateY(-1px);
}

.topbar-cta i {
    font-size: 0.55rem;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.topbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.topbar-user-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
}

.topbar-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.topbar-avatar-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.topbar-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 204, 22, 0.2);
    color: #b7d84b;
    font-weight: 700;
    font-size: 0.65rem;
}

.topbar-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 120px;
}

.topbar-dropdown-header {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-dropdown-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-dropdown-email {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.12s;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.topbar-dropdown-item i {
    width: 0.875rem;
    text-align: center;
    font-size: 0.65rem;
    opacity: 0.6;
}

.topbar-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.topbar-dropdown-danger {
    color: rgba(252, 165, 165, 0.9);
}

.topbar-dropdown-danger:hover {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
}

.topbar-mobile-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.15s;
    text-decoration: none;
}

.topbar-mobile-link:hover {
    background: rgba(255, 255, 255, 0.06);
}
.topbar-mobile-link-active {
    background: #84CC16; color: #0a0a0a; font-weight: 600;
    border-radius: 9999px; padding: 0.5rem 1rem;
}
.topbar-mobile-link-active:hover { background: #a3e635; color: #0a0a0a; }

.topbar-lang-btn {
    flex: 1;
    text-align: center;
    padding: 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s;
    text-decoration: none;
}

.topbar-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar-lang-active {
    background: rgba(132, 204, 22, 0.12);
    color: #84cc16;
    border-color: rgba(132, 204, 22, 0.25);
}

.landing-v2-page main {
    position: relative;
    z-index: 1;
}
