/* =============================================
   MUĞALOV - HEADER STYLES (TAMAMİLƏ YENİ)
   ============================================= */

/* Header Container */
.site-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo - 40% KİÇİK */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: #374151;
    color: #60a5fa;
}

.main-nav a.active {
    background: #374151;
    color: #60a5fa;
}

.main-nav a .material-symbols-outlined {
    font-size: 18px;
    color: #e5e7eb;
}

/* Search Form */
.search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search .material-symbols-outlined {
    position: absolute;
    left: 12px;
    color: #e5e7eb;
    font-size: 18px;
    pointer-events: none;
}

.search input {
    width: 200px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s;
}

.search input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    width: 240px;
}

.search input::placeholder {
    color: #94a3b8;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-google:hover {
    background: #1d4ed8;
}

.btn-google .material-symbols-outlined {
    font-size: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #374151;
}

.user-menu img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu span {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}

.user-menu .material-symbols-outlined {
    font-size: 18px;
    color: #e5e7eb;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-trigger:hover {
    background: #374151;
}

.user-menu-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-trigger span {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}

.user-menu-trigger .material-symbols-outlined {
    font-size: 18px;
    color: #e5e7eb;
    transition: transform 0.2s;
}

.user-menu-trigger.active .material-symbols-outlined {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    min-width: 220px;
    padding: 8px 0;
    z-index: 200;
}

.user-dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

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

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown-menu a:hover {
    background: #374151;
}

.user-dropdown-menu a .material-symbols-outlined {
    font-size: 20px;
    color: #9ca3af;
}

.user-dropdown-menu a:hover .material-symbols-outlined {
    color: #60a5fa;
}

.dropdown-divider {
    height: 1px;
    background: #374151;
    margin: 8px 0;
}

.logout-link:hover {
    background: #dc2626 !important;
    color: white !important;
}

.logout-link:hover .material-symbols-outlined {
    color: white !important;
}

/* Mobile Elements - Default Hidden */
.mobile-menu-toggle,
.search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #e5e7eb;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover,
.search-toggle:hover {
    background: #f1f5f9;
}

.mobile-menu-toggle .material-symbols-outlined,
.search-toggle .material-symbols-outlined {
    font-size: 24px;
    color: #e5e7eb;
}

/* Mobile Search Panel */
.search-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.search-panel.active {
    display: block;
}

.search-panel form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.search-panel input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.search-panel button {
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #e5e7eb;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: #f1f5f9;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: #374151;
    color: #60a5fa;
}

.mobile-nav-links a .material-symbols-outlined {
    font-size: 22px;
    color: #e5e7eb;
}

.mobile-nav-links a:hover .material-symbols-outlined,
.mobile-nav-links a.active .material-symbols-outlined {
    color: #60a5fa;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-nav.active + .mobile-overlay,
.mobile-overlay.active {
    display: block;
}

/* =============================================
   LOGIN MODAL STYLES
   ============================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-modal {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #374151;
    color: #e5e7eb;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-modal-header h2 {
    color: #f3f4f6;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-modal-header h2 .material-symbols-outlined {
    font-size: 28px;
    color: #60a5fa;
}

.login-modal-header p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #374151;
    border-radius: 10px;
    background: #111827;
    color: #f3f4f6;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #6b7280;
}

.login-error {
    display: none;
    color: #fca5a5;
    font-size: 14px;
    padding: 10px 12px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-login-submit:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
}

.btn-login-submit .material-symbols-outlined {
    font-size: 20px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #6b7280;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #374151;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: white;
    color: #374151;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google-login:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google-login svg {
    flex-shrink: 0;
}

/* Mobile adjustments for login modal */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }
    
    .login-modal {
        padding: 24px;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        animation: modalSlideUp 0.3s ease;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-overlay.active {
        align-items: flex-end;
    }
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .main-nav {
        gap: 4px;
    }
    
    .main-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search input {
        width: 160px;
    }
    
    .search input:focus {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        position: relative;
        justify-content: center;
        padding: 0 48px;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-img {
    }
    
    .main-nav {
        display: none;
    }
    
    .search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .search-toggle {
        display: flex;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .auth-buttons {
        display: none;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 8px 0;
    z-index: 100;
    justify-content: space-around;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    transition: color 0.2s;
}

.mobile-bottom-nav a .material-symbols-outlined {
    font-size: 24px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #2563eb;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 70px;
    }
}
