/* Modern Transparent Navbar CSS - Enhanced */
.navbar-gg {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(76, 201, 240, 0.1);
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-gg.scrolled {
    background: rgba(10, 14, 23, 0.98);
    padding: 8px 0;
}

/* Brand Styling - Single Row */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-pulse {
    position: relative;
    width: 35px;
    height: 35px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(76, 201, 240, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(76, 201, 240, 0.8));
    }
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.brand-glow {
    background: linear-gradient(135deg, #4cc9f0, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
}

.brand-subtle {
    color: #ffffff;
    font-weight: 600;
}

.brand-badge {
    font-size: 0.55rem;
    background: linear-gradient(135deg, #4cc9f0, #1e40af);
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Navigation Links - Transparent Background */
.navbar-nav .nav-item {
    margin: 0 5px;
}

.nav-link {
    color: #9ca3af !important;
    padding: 10px 16px !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4cc9f0, #1e40af);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(76, 201, 240, 0.08) !important;
    border-color: rgba(76, 201, 240, 0.2);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.15), rgba(30, 64, 175, 0.15)) !important;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

/* GG Studios Button - Match Discord Style */
.nav-link[href*="studio"] {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(30, 64, 175, 0.1)) !important;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.nav-link[href*="studio"]:hover {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(30, 64, 175, 0.2)) !important;
    border-color: rgba(76, 201, 240, 0.3);
}

.nav-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Dropdown Styling - Clear Text */
.dropdown-gg .dropdown-toggle::after {
    display: none;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.dropdown-gg.show .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-glass {
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(76, 201, 240, 0.15);
    border-radius: 14px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: dropdownSlide 0.25s ease;
    min-width: 260px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #d1d5db;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-weight: 400;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.dropdown-item:hover {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.12);
    transform: translateX(4px);
}

.dropdown-item i {
    color: #4cc9f0;
    font-size: 0.9rem;
    width: 18px;
    opacity: 0.9;
}

.dropdown-title {
    font-weight: 500;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.dropdown-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
    line-height: 1.3;
    font-weight: 300;
}

/* Dual Button - Auto Adjust Text */
.dual-button {
    display: flex;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.9), rgba(26, 34, 56, 0.9));
    border-radius: 10px;
    padding: 2px;
    border: 1px solid rgba(76, 201, 240, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 180px;
    height: 40px;
}

.dual-button a {
    flex: 1;
    padding: 0 12px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-free {
    background: linear-gradient(135deg, #4cc9f0, #1e40af);
    border-radius: 8px 0 0 8px;
    font-size: 0.82rem;
}

.btn-login {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
}

.btn-free:hover {
    background: linear-gradient(135deg, #1e40af, #4cc9f0);
    transform: scale(1.02);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.btn-free i, .btn-login i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

/* Mobile Toggle */
.hamburger {
    width: 28px;
    height: 18px;
    position: relative;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4cc9f0, #1e40af);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }
.hamburger-line:nth-child(3) { top: 16px; }

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Offcanvas */
.offcanvas {
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-right: 1px solid rgba(76, 201, 240, 0.1);
}

.btn-close-custom {
    background: none;
    color: #9ca3af;
    font-size: 1.3rem;
    opacity: 1;
    transition: color 0.3s ease;
    padding: 8px;
    margin: -8px;
}

.btn-close-custom:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .nav-text {
        font-size: 0.85rem;
    }
    
    .nav-link {
        padding: 10px 14px !important;
    }
    
    .dual-button {
        min-width: 160px;
    }
    
    .dual-button a {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        margin: 6px 0;
    }
    
    .nav-link {
        padding: 12px 20px !important;
        justify-content: center;
    }
    
    .dropdown-menu {
        background: rgba(26, 34, 56, 0.9);
        border: 1px solid rgba(76, 201, 240, 0.1);
        box-shadow: none;
        padding: 0;
        margin: 10px 0 10px 20px;
        position: static !important;
        transform: none !important;
    }
    
    .dual-button {
        margin-top: 15px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.1rem;
    }
    
    .brand-badge {
        display: none;
    }
    
    .dual-button a {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .brand-wrapper {
        gap: 8px;
    }
    
    .logo-pulse {
        width: 30px;
        height: 30px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .dual-button {
        min-width: auto;
        height: 38px;
    }
    
    .dual-button a {
        font-size: 0.8rem;
        padding: 0 8px;
        gap: 4px;
    }
    
    .dual-button a i {
        font-size: 0.75rem;
    }
}

/* Active State Improvements */
.nav-link.active .nav-icon {
    color: #4cc9f0;
}

/* Text Contrast Improvements */
.dropdown-item:hover .dropdown-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
}

.dropdown-item:hover .dropdown-subtitle {
    color: #d1d5db;
}

/* Premium GGNodes Navbar - Mobile Optimized with Animations */
.navbar-premium {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(76, 201, 240, 0.3);
    padding: 10px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-container {
    max-width: 1300px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Animation */
.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-particle {
    position: absolute;
    background: linear-gradient(135deg, #4cc9f0, #8be9fd);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatParticle 6s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: -20px;
    left: 10%;
    animation-delay: 0s;
}

.bg-particle:nth-child(2) {
    width: 40px;
    height: 40px;
    top: -10px;
    right: 20%;
    animation-delay: 2s;
}

.bg-particle:nth-child(3) {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: 50%;
    animation-delay: 4s;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Brand & Logo */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    position: relative;
    width: 32px;
    height: 32px;
}

.logo-spin {
    width: 100%;
    height: 100%;
    animation: logoSpin 8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.6));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-text span {
    background: linear-gradient(135deg, #4cc9f0, #8be9fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile Toggle Button */
.nav-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-toggle:hover {
    background: rgba(76, 201, 240, 0.2);
    transform: scale(1.1);
}

.toggle-bars {
    position: relative;
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.toggle-bar {
    height: 2px;
    background: linear-gradient(90deg, #4cc9f0, #8be9fd);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Links */
.nav-links {
    gap: 4px;
}

.nav-item-animate {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af !important;
    font-weight: 500;
    padding: 14px 16px !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-item-animate i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-item-animate:hover {
    color: #fff !important;
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    transform: translateX(8px) scale(1.02);
}

.nav-item-animate:hover i {
    transform: scale(1.2);
    color: #4cc9f0;
}

.nav-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-item-animate:hover .nav-glow {
    left: 100%;
}

/* Premium Highlight */
.highlight {
    background: linear-gradient(135deg, #4cc9f0, #1e40af) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.4);
    border: 1px solid rgba(76, 201, 240, 0.5) !important;
    animation: premiumPulse 2s ease-in-out infinite;
}

.premium-glow {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(76, 201, 240, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(76, 201, 240, 0.8); }
}

/* Dropdowns */
.dropdown-menu {
    background: rgba(26, 34, 56, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 12px;
    margin-top: 8px;
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-item span {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(76, 201, 240, 0.1);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    color: #4cc9f0;
    transform: scale(1.1);
}

.premium-offer {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), transparent);
    border-left: 3px solid #4cc9f0;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0 0 0;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    overflow: hidden;
    flex: 1;
    min-height: 50px;
}

.budget-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.budget-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.premium-btn {
    background: linear-gradient(135deg, #4cc9f0, #1e40af);
    color: #fff;
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.4);
    border: 1px solid rgba(76, 201, 240, 0.5);
}

.premium-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(76, 201, 240, 0.6);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-btn:hover .btn-glow {
    left: 100%;
}

/* Offcanvas */
.offcanvas-premium {
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(76, 201, 240, 0.2);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    padding: 20px;
    background: rgba(26, 34, 56, 0.8);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover {
    background: rgba(76, 201, 240, 0.2);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 20px;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .navbar-premium {
        padding: 8px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .logo-container {
        width: 28px;
        height: 28px;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .dropdown-menu {
        background: rgba(26, 34, 56, 0.9);
        margin: 8px 0;
        border: 1px solid rgba(76, 201, 240, 0.2);
    }
    
    .nav-item-animate {
        padding: 16px 20px !important;
        margin: 2px 0;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .nav-item-animate {
        padding: 14px 16px !important;
        font-size: 0.95rem;
    }
    
    .nav-item-animate i {
        font-size: 1rem;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .nav-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Scroll Animation */
.navbar-premium.scrolled {
    background: rgba(10, 14, 23, 0.98);
    padding: 6px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Loading Animation */
.navbar-premium.loading .brand-text span {
    animation: loadingShine 1.5s ease-in-out infinite;
}

@keyframes loadingShine {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
