/* Toast Bildirimleri */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.toast-success .toast-content {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.toast-error .toast-content {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.toast-info .toast-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.toast-content i {
    font-size: 18px;
}

/* ============================================
   KULLANICI DROPDOWN MENÜ STİLLERİ
   ============================================ */

.user-dropdown {
    position: relative;
    margin-left: 15px;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown-btn:hover {
    background: rgba(255,255,255,0.25);
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-name-short {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-icon {
    color: white;
    font-size: 12px;
    transition: transform 0.2s;
}

.user-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px 12px 0 0;
    color: white;
}

.dropdown-header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.dropdown-username {
    font-weight: 600;
    font-size: 16px;
}

.dropdown-role {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 3px;
}

.premium-badge {
    background: #ffd700;
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    width: 20px;
    color: #667eea;
}

.dropdown-badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    margin-left: auto;
}

.logout-item {
    color: #e74c3c;
}

.logout-item i {
    color: #e74c3c;
}

/* Misafir Butonları */
.guest-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.btn-login-header {
    padding: 8px 18px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-login-header:hover {
    background: rgba(255,255,255,0.3);
}

.btn-register-header {
    padding: 8px 18px;
    background: white;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-register-header:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ============================================
   header.css - Ana Stiller
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 15px;
    box-sizing: border-box;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link i {
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
}

/* Navigasyon */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
}

/* Rozetler */
.badge {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 2px;
    border: 2px solid white;
}

/* Mobil Menü Butonu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mobile-menu-toggle .bar {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reklam Alanı */
.ad-banner-top {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    margin-bottom: 20px;
    width: 100%;
}

.ad-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
}

.ad-label {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
}

.ad-placeholder {
    min-height: 80px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

/* Ana İçerik */
.main-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

/* Alert Mesajları */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Canlı Bildirimler */
.live-notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .header-nav {
        display: flex !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
    
    .nav-link i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
        height: 55px;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        cursor: pointer;
        z-index: 1002;
    }
    
    .user-dropdown {
        display: none;
    }
    
    .guest-buttons {
        display: none;
    }
    
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        z-index: 1001 !important;
        margin: 0 !important;
        padding: 80px 20px 20px !important;
        overflow-y: auto !important;
        display: block !important;
    }
    
    .header-nav.active {
        transform: translateX(0) !important;
    }
    
    .nav-list {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .nav-item {
        width: 100% !important;
    }
    
    .nav-link {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 12px !important;
    }
    
    .nav-link span {
        display: inline !important;
        margin-left: 10px !important;
    }
    
    .badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-left: 10px !important;
    }
    
    .ad-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo-link {
        font-size: 16px;
    }
    
    .logo-link i {
        font-size: 20px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    .ad-placeholder {
        min-height: 60px;
    }
    
    .main-container {
        padding: 12px;
    }
}