:root {
    --navbar-bg: rgba(30, 41, 59, 0.3);
    --navbar-bg-scrolled: rgba(30, 41, 59, 0.6);
    --navbar-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --logo-bg: #0f172a;
    --logo-color: #6366f1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 190%;
    display: flex;
    justify-content: center;
    padding: 50px 0 0 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid var(--navbar-border);
    width: 880px;
    max-width: 105vw;
    transition: all 0.3s ease;
}

/* Scrolled Navbar */
.navbar.scrolled .navbar-content {
    padding: 8px 10px;
    width: 700px;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.navbar.scrolled .logo-img {
    width: 42px;
    height: 42px;
}

.navbar.scrolled .navbar-menu {
    gap: 20px;
}

.navbar.scrolled .nav-link {
    font-size: 14px;
}

.navbar.scrolled .navbar-actions .icon-btn {
    display: none;
}

.navbar.scrolled .login-btn {
    padding: 8px 20px;
    font-size: 13px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #000;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 12px;
    font-family: sans-serif;
    transition: all 0.3s ease;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
    padding: 5px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-item.active .nav-link {
    color: var(--text-primary);
}

/* Çekilişler Link RGB Animation */
.cekilisler-link {
    animation: rgbAnimation 3s infinite;
    font-weight: 700 !important;
}

@keyframes rgbAnimation {
    0% { color: #ff0000; }
    16.66% { color: #ff8000; }
    33.33% { color: #ffff00; }
    50% { color: #00ff00; }
    66.66% { color: #0080ff; }
    83.33% { color: #8000ff; }
    100% { color: #ff0000; }
}

.cekilisler-link:hover {
    animation-duration: 1s;
}

/* Aktif Çizgisi - Kaldırıldı */
.active-indicator {
    display: none;
}

/* Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px;
}

.icon-btn:hover {
    color: var(--text-primary);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.login-btn:hover {
    opacity: 0.8;
}

.login-btn i {
    font-size: 14px;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.show {
    display: flex;
    opacity: 1;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.settings-content {
    position: relative;
    background: rgba(30, 41, 59, 0.438);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 85%;
    max-width: 530px;
    min-height: 415px;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.settings-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.settings-body {
    padding: 32px;
    overflow: visible;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.setting-control {
    flex-shrink: 0;
}

/* Custom Select */
.custom-select {
    position: relative;
    min-width: 160px;
}

.select-selected {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 500;
}

.select-selected:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.select-selected.active {
    border-color: var(--accent-blue);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.select-selected i {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.select-selected.active i {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Hide Scrollbar but keep functionality */
.select-items::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.select-items::-webkit-scrollbar-thumb {
    background: transparent;
}

.select-items {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.select-items.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.select-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.select-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.select-option:last-child {
    border-radius: 0 0 12px 12px;
}

/* Snow Control */
.snow-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.snow-percentage {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    min-width: 50px;
}

.snow-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.snow-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--accent-blue);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.snow-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.snow-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.snow-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Animations */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        padding: 20px 0;
    }
    
    .navbar-content {
        width: 95%;
        max-width: none;
        padding: 8px 16px;
        position: relative;
    }
    
    .navbar.scrolled .navbar-content {
        width: 95%;
        padding: 6px 12px;
    }
    
    /* Hide desktop menu on mobile */
    .navbar-menu {
        display: none;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--navbar-border);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        gap: 0;
        z-index: 10000;
        animation: slideDown 0.3s ease;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .nav-item {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 8px 0;
        display: block;
        width: 100%;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide settings button on mobile when scrolled */
    .navbar.scrolled .icon-btn {
        display: none;
    }
    
    /* Adjust login button on mobile */
    .login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .login-btn span {
        display: none;
    }
    
    .navbar.scrolled .login-btn span {
        display: none;
    }
    
    /* Settings modal mobile adjustments */
    .settings-content {
        width: 95%;
        margin: 20px;
        min-height: 400px;
    }
    
    .settings-header {
        padding: 20px 24px;
    }
    
    .settings-body {
        padding: 24px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .setting-control {
        flex: none;
    }
    
    .custom-select {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 6px 12px;
    }
    
    .navbar.scrolled .navbar-content {
        padding: 4px 10px;
    }
    
    .logo-img, .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .navbar.scrolled .logo-img,
    .navbar.scrolled .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
}

/* Additional Hover Effects */
.select-option:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

.feature-card:hover {
    opacity: 0.8;
}

.category-card:hover {
    opacity: 0.8;
}

.social-link:hover {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 0.8;
}

.server-logo:hover {
    opacity: 0.8;
}

.snow-toggle:hover .toggle-slider {
    background: rgba(255, 255, 255, 0.3);
}

.snow-range:hover {
    background: rgba(255, 255, 255, 0.3);
}
