/* ==============================================
   NAVBAR VE FOOTER MODÜLER CSS
   ============================================== */

/* Temel Reset ve Yaygın Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
   NAVBAR STİLLERİ
   ============================================== */

/* Navbar - overflow ve z-index düzeltmeleri */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #e2e8f0;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* User section - z-index ve pozisyon düzeltmeleri */
.user-section {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.user-info {
    color: #cbd5e0;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-btn, .admin-btn, .logout-btn {
    background: rgba(74, 85, 104, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 14px;
}

.login-btn:hover, .admin-btn:hover, .logout-btn:hover {
    background: rgba(74, 85, 104, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* User dropdown düzeltmeleri */
.user-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1002;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1003;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-content a {
    color: #cbd5e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-content a:hover {
    background: rgba(74, 85, 104, 0.8);
    color: #e2e8f0;
}

.dropdown-content a:first-child {
    margin-top: 8px;
}

.dropdown-content a:last-child {
    margin-bottom: 8px;
}

/* Hover durumunda dropdown göster */
.user-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Dropdown ile user-info arasındaki boşluğu doldur */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 1003;
}

/* ==============================================
   FOOTER STİLLERİ
   ============================================== */

.footer {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    color: #a0aec0;
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #e2e8f0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #718096;
}

/* ==============================================
   MOBİL RESPONSIVE DÜZENLEMELER
   ============================================== */

/* Mobile responsive - dropdown düzeltmeleri dahil */
@media (max-width: 768px) {
    /* Navbar mobile ayarları */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        overflow: visible;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .logo {
        font-size: 1.5em;
    }
    
    /* Mobile dropdown ayarları */
    .dropdown-content {
        right: 0;
        left: auto;
        min-width: 220px;
        margin-top: 5px;
        z-index: 1003;
        transform-origin: top right;
    }
    
    /* User section mobile */
    .user-section {
        position: relative;
        z-index: 1002;
        width: 100%;
        justify-content: flex-end;
        overflow: visible;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
    }
    
    .nav-menu {
        font-size: 14px;
    }
    
    /* Mobile dropdown - küçük ekran */
    .dropdown-content {
        min-width: 200px;
        right: -10px;
        z-index: 1003;
    }
    
    .user-info {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* ==============================================
   SCROLL EFEKTLERİ VE ANİMASYONLAR
   ============================================== */

/* Navbar scroll animation */
@media (min-width: 769px) {
    .navbar {
        transition: transform 0.3s ease-in-out;
    }
    
    .navbar.hidden {
        transform: translateY(-100%);
    }
}

/* Hover efektleri */
.nav-menu a,
.login-btn,
.admin-btn,
.logout-btn,
.footer-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus durumları */
.nav-menu a:focus,
.login-btn:focus,
.admin-btn:focus,
.logout-btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* ==============================================
   YARDIMCI SINIFLAR
   ============================================== */

.navbar-spacer {
    height: 80px; /* Navbar yüksekliği kadar */
}

.navbar-transparent {
    background: rgba(15, 15, 35, 0.7);
}

.navbar-opaque {
    background: rgba(15, 15, 35, 0.98);
}

/* Mobil yönlendirme uyarısı */
.mobile-redirect-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    z-index: 9999;
    display: none;
    max-width: 300px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.mobile-redirect-notice h3 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.mobile-redirect-notice p {
    color: #cbd5e0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.redirect-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.redirect-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.mobile-btn {
    background: #667eea;
    color: white;
}

.desktop-btn {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.3);
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}