/* ============================================
   HOCAVAR NAVBAR - Modern EdTech Design
   Mobile-First, Responsive, Dark/Light Theme
   ============================================ */

/* CSS Variables for Theme Support */
:root {
    /* Light Theme Colors */
    --navbar-bg: #ffffff;
    --navbar-border: #e5e7eb;
    --navbar-text: #1f2937;
    --navbar-text-secondary: #6b7280;
    --navbar-primary: #4B89AC;
    --navbar-primary-hover: #3d7a9a;
    --navbar-primary-light: #e0f2fe;
    --navbar-accent: #5BC0BE;
    --navbar-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --navbar-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --navbar-surface: #f9fafb;
    --navbar-surface-hover: #f3f4f6;
    --navbar-notification: #ef4444;
    --navbar-divider: #e5e7eb;
    --navbar-backdrop: rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"],
html.dark-theme {
    --navbar-bg: #1e1e1e;
    --navbar-border: #333333;
    --navbar-text: #f5f5f5;
    --navbar-text-secondary: #a3a3a3;
    --navbar-primary: #60a5fa;
    --navbar-primary-hover: #3b82f6;
    --navbar-primary-light: #1e3a5f;
    --navbar-accent: #6ee7b7;
    --navbar-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --navbar-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --navbar-surface: #252525;
    --navbar-surface-hover: #2a2a2a;
    --navbar-notification: #ef4444;
    --navbar-divider: #404040;
    --navbar-backdrop: rgba(0, 0, 0, 0.7);
}

/* ============================================
   BASE NAVBAR STYLES
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999999;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: var(--navbar-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: visible;
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    position: relative;
    z-index: 9999999;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--navbar-primary);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0.75rem 1rem;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 220px);
}

.navbar-logo:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

.navbar-logo:active {
    transform: translateX(0);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.navbar-logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navbar-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.navbar-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    position: relative;
    z-index: 9999999;
}

/* Primary CTA Button */
.nav-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--navbar-primary);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(75, 137, 172, 0.2);
    cursor: pointer;
}

.nav-cta-primary:hover {
    background: var(--navbar-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 137, 172, 0.3);
}

.nav-cta-primary:active {
    transform: translateY(0);
}

.nav-cta-primary .nav-icon {
    width: 18px;
    height: 18px;
}

.nav-cta-primary span {
    color: #ffffff;
}

/* Dark mode için buton yazı rengi */
html[data-theme="dark"] .nav-cta-primary,
html.dark-theme .nav-cta-primary {
    color: #ffffff !important;
}

html[data-theme="dark"] .nav-cta-primary span,
html.dark-theme .nav-cta-primary span {
    color: #ffffff !important;
}

html[data-theme="dark"] .nav-cta-primary .nav-icon,
html.dark-theme .nav-cta-primary .nav-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: #ffffff !important;
}

/* ============================================
   RECOMMENDED TEACHERS BUTTON - Glow Effect
   ============================================ */

.nav-cta-recommended {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
    animation: navRecommendedPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 2px 8px rgba(245, 158, 11, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta-recommended:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 4px 12px rgba(245, 158, 11, 0.3);
}

.nav-cta-recommended span {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.nav-cta-recommended::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    animation: navGlowSweep 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes navRecommendedPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 2px 8px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 0 24px rgba(245, 158, 11, 0.6), 0 4px 16px rgba(245, 158, 11, 0.35);
    }
}

@keyframes navGlowSweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    40%, 100% { transform: translateX(100%) rotate(45deg); }
}

html[data-theme="dark"] .nav-cta-recommended,
html.dark-theme .nav-cta-recommended {
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.5), 0 2px 8px rgba(217, 119, 6, 0.25);
    color: #ffffff !important;
}

html[data-theme="dark"] .nav-cta-recommended span,
html.dark-theme .nav-cta-recommended span {
    color: #ffffff !important;
}

html[data-theme="dark"] .nav-cta-recommended .nav-icon,
html.dark-theme .nav-cta-recommended .nav-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Mobile Recommended Button */
.mobile-cta-recommended {
    position: relative;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    animation: navRecommendedPulse 2s ease-in-out infinite;
    overflow: hidden;
}

.mobile-cta-recommended svg {
    fill: #ffffff;
    color: #ffffff;
}

.mobile-cta-recommended span {
    color: #ffffff !important;
}

.mobile-recommended-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: navGlowSweep 2.5s ease-in-out infinite;
    pointer-events: none;
}

html[data-theme="dark"] .mobile-cta-recommended,
html.dark-theme .mobile-cta-recommended {
    background: linear-gradient(135deg, #d97706, #ea580c) !important;
}

/* Job Listings Button (Purple) */
#jobListingsBtn.nav-cta-recommended {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4), 0 2px 8px rgba(124, 58, 237, 0.25);
}

#jobListingsBtn.nav-cta-recommended:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 4px 12px rgba(124, 58, 237, 0.35);
}

html[data-theme="dark"] #jobListingsBtn.nav-cta-recommended,
html.dark-theme #jobListingsBtn.nav-cta-recommended {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    box-shadow: 0 0 14px rgba(109, 40, 217, 0.5), 0 2px 8px rgba(109, 40, 217, 0.3);
}

#mobileJobListingsBtn.mobile-cta-recommended {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

html[data-theme="dark"] #mobileJobListingsBtn.mobile-cta-recommended,
html.dark-theme #mobileJobListingsBtn.mobile-cta-recommended {
    background: linear-gradient(135deg, #6d28d9, #9333ea) !important;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--navbar-border);
    background: var(--navbar-bg);
    color: var(--navbar-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--navbar-shadow);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--navbar-primary);
    box-shadow: var(--navbar-shadow-lg);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(-15deg);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-auth {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    min-height: 44px;
}

.btn-login {
    background: var(--navbar-surface);
    color: var(--navbar-text);
    border-color: var(--navbar-border);
}

.btn-login:hover {
    background: var(--navbar-surface-hover);
    border-color: var(--navbar-primary);
    transform: translateY(-1px);
    box-shadow: var(--navbar-shadow);
}

.btn-register {
    background: var(--navbar-primary);
    color: #ffffff;
    border-color: var(--navbar-primary);
    box-shadow: 0 2px 8px rgba(75, 137, 172, 0.2);
}

.btn-register:hover {
    background: var(--navbar-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 137, 172, 0.3);
}

/* User Menu Container */
.user-menu-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 9999999;
}

/* Messages Wrapper */
.messages-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--navbar-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-btn:hover {
    background: var(--navbar-surface);
    color: var(--navbar-primary);
    transform: scale(1.05);
}

.message-btn:active {
    transform: scale(0.95);
}

.message-btn svg {
    width: 22px;
    height: 22px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--navbar-notification);
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navbar-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* User Menu */
.user-menu {
    position: relative;
    z-index: 9999999;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: transparent;
    border: 1.5px solid var(--navbar-border);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.user-trigger:hover {
    background: var(--navbar-surface);
    border-color: var(--navbar-primary);
    box-shadow: var(--navbar-shadow);
}

.user-trigger:active {
    transform: scale(0.98);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navbar-primary-light);
    color: var(--navbar-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--navbar-border);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--navbar-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--navbar-text-secondary);
    transition: transform 0.2s ease;
}

.user-trigger[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    min-width: 240px;
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 0.75rem;
    box-shadow: var(--navbar-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10000000 !important;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--navbar-surface);
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navbar-primary-light);
    color: var(--navbar-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--navbar-border);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--navbar-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--navbar-accent);
    color: #064e3b;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    width: fit-content;
    min-width: fit-content;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Gold Badge (Premium) */
.verified-badge.gold-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1F2937 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Blue Badge (Yarı-Premium) */
.verified-badge.blue-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Dark mode için verified badge renkleri */
html[data-theme="dark"] .verified-badge,
html.dark-theme .verified-badge {
    background: var(--navbar-accent);
    color: #064e3b;
}

html[data-theme="dark"] .verified-badge.gold-badge,
html.dark-theme .verified-badge.gold-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1F2937 !important;
}

html[data-theme="dark"] .verified-badge.blue-badge,
html.dark-theme .verified-badge.blue-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    color: white !important;
}

html[data-theme="dark"] .verified-badge svg,
html.dark-theme .verified-badge svg {
    color: #064e3b;
    fill: #064e3b;
    stroke: #064e3b;
}

.dropdown-divider {
    height: 1px;
    background: var(--navbar-divider);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--navbar-surface);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--navbar-text-secondary);
}

.dropdown-item:last-child {
    color: #ef4444;
}

.dropdown-item:last-child svg {
    color: #ef4444;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.navbar-mobile {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0;
    border-top: none;
    flex-shrink: 0;
}

.mobile-messages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-message-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--navbar-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-message-btn:hover {
    background: var(--navbar-surface);
    color: var(--navbar-primary);
}

.mobile-message-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--navbar-border);
    background: var(--navbar-bg);
    color: var(--navbar-text);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-theme-toggle:hover {
    background: var(--navbar-surface);
    border-color: var(--navbar-primary);
}

.mobile-theme-toggle .theme-icon {
    font-size: 1rem;
}

/* Mobil üst çubuk: giriş / kayıt (hamburger dışında) */
.mobile-top-bar-auth {
    display: none;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.mobile-top-bar-btn {
    padding: 0.4rem 0.55rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.mobile-top-bar-btn-login {
    background: var(--navbar-surface);
    color: var(--navbar-text);
    border-color: var(--navbar-border);
}

.mobile-top-bar-btn-login:hover {
    background: var(--navbar-surface-hover);
    border-color: var(--navbar-primary);
}

.mobile-top-bar-btn-register {
    background: var(--navbar-primary);
    color: #ffffff;
    border-color: var(--navbar-primary);
    box-shadow: 0 1px 6px rgba(75, 137, 172, 0.25);
}

.mobile-top-bar-btn-register:hover {
    background: var(--navbar-primary-hover);
}

.mobile-top-bar-btn-short {
    display: none;
}

html[data-theme="dark"] .mobile-top-bar-btn-register,
html.dark-theme .mobile-top-bar-btn-register {
    color: #ffffff;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle[aria-expanded="true"] {
    gap: 0;
}

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

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

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

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: var(--navbar-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navbar-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--navbar-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--navbar-border);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navbar-primary-light);
    color: var(--navbar-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--navbar-border);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--navbar-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--navbar-accent);
    color: #064e3b;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.mobile-verified-badge svg {
    width: 14px;
    height: 14px;
}

/* Mobile Gold Badge (Premium) */
.mobile-verified-badge.gold-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1F2937 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
}

/* Mobile Blue Badge (Yarı-Premium) */
.mobile-verified-badge.blue-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 0.75rem !important;
}

/* Dark mode için mobile verified badge renkleri */
html[data-theme="dark"] .mobile-verified-badge.gold-badge,
html.dark-theme .mobile-verified-badge.gold-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #1F2937 !important;
}

html[data-theme="dark"] .mobile-verified-badge.blue-badge,
html.dark-theme .mobile-verified-badge.blue-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    color: white !important;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--navbar-text);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--navbar-surface);
}

.mobile-menu-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

/* Mobile Nav Items */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    min-height: 44px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-item:hover {
    background: var(--navbar-surface);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--navbar-text-secondary);
}

.mobile-cta-primary {
    background: var(--navbar-primary);
    color: #ffffff;
    margin: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(75, 137, 172, 0.2);
}

.mobile-cta-primary:hover {
    background: var(--navbar-primary-hover);
}

.mobile-cta-primary svg {
    color: #ffffff;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
    margin-top: 0.5rem;
}

.mobile-btn-auth {
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    min-height: 44px;
    width: 100%;
}

.mobile-btn-login {
    background: var(--navbar-surface);
    color: var(--navbar-text);
    border-color: var(--navbar-border);
}

.mobile-btn-login:hover {
    background: var(--navbar-surface-hover);
    border-color: var(--navbar-primary);
}

.mobile-btn-register {
    background: var(--navbar-primary);
    color: #ffffff;
    border-color: var(--navbar-primary);
    box-shadow: 0 2px 8px rgba(75, 137, 172, 0.2);
}

.mobile-btn-register:hover {
    background: var(--navbar-primary-hover);
}

/* Mobile User Menu */
.mobile-user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-logout {
    color: #ef4444;
}

.mobile-logout svg {
    color: #ef4444;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Very Small Screens - Hide logo text */
@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
    
    .navbar-logo {
        max-width: calc(100% - 200px);
        gap: 0.25rem;
    }

    .mobile-top-bar-btn {
        font-size: 0.6875rem;
        padding: 0.35rem 0.45rem;
    }

    .mobile-top-bar-btn-full {
        display: none;
    }

    .mobile-top-bar-btn-short {
        display: inline;
    }
}

/* Tablet and Up */
@media (min-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-logo {
        padding: 1rem 0;
        gap: 0.75rem;
        font-size: 1.25rem;
        max-width: none;
        flex-shrink: 0;
    }

    .navbar-desktop {
        display: flex;
    }

    .navbar-mobile {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.375rem;
        display: inline;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .navbar-container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .navbar-desktop {
        gap: 1.25rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus States */
.navbar-logo:focus,
.theme-toggle:focus,
.btn-auth:focus,
.message-btn:focus,
.user-trigger:focus,
.mobile-menu-toggle:focus,
.mobile-theme-toggle:focus,
.mobile-top-bar-btn:focus,
.mobile-message-btn:focus,
.mobile-nav-item:focus,
.mobile-btn-auth:focus,
.mobile-menu-close:focus {
    outline: 2px solid var(--navbar-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom-width: 2px;
    }

    .btn-auth,
    .user-trigger {
        border-width: 2px;
    }
}
