/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PRO STYLES - Professional Mobile Header & Menu
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PRO HEADER - Sadece mobilde görünür
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-pro-header {
    display: none; /* Masaüstünde gizle */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

html.dark .mobile-pro-header,
[data-theme="dark"] .mobile-pro-header {
    background: rgba(10, 14, 23, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Sadece mobilde göster (768px altı) */
@media (max-width: 768px) {
    .mobile-pro-header {
        display: flex !important;
    }
    
    /* Mobilde masaüstü header'ı kesinlikle gizle */
    header.nav-blur,
    header[class*="nav-blur"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
    }
}

/* Masaüstünde mobile-pro-header gizli kalmalı */
@media (min-width: 769px) {
    .mobile-pro-header {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Masaüstünde overlay ve menu de gizli */
    .mobile-pro-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .mobile-pro-menu {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Masaüstünde body padding yok - doğru */
    body {
        padding-top: 0 !important;
    }
}

/* Mobile Pro Logo */
.mobile-pro-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-pro-logo .logo-icon {
    width: 48px;
    height: 48px;
    position: relative;
    flex-shrink: 0;
}

.mobile-pro-logo .logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(#0a0e17, #0a0e17) padding-box, 
                linear-gradient(135deg, #00f2fe, #4facfe, #bf00ff) border-box;
    animation: none; /* v15.2 PERFORMANCE: logoSpin kaldırıldı */
}

html:not(.dark) .mobile-pro-logo .logo-ring,
[data-theme="light"] .mobile-pro-logo .logo-ring {
    background: linear-gradient(#f8fafc, #f8fafc) padding-box, 
                linear-gradient(135deg, #00f2fe, #4facfe, #bf00ff) border-box;
}

.mobile-pro-logo .logo-core {
    position: absolute;
    inset: 4px;
    background: #0a0e17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

html:not(.dark) .mobile-pro-logo .logo-core,
[data-theme="light"] .mobile-pro-logo .logo-core {
    background: #f8fafc;
}

.mobile-pro-logo .logo-core svg {
    width: 28px;
    height: 28px;
}

.mobile-pro-logo .brand-text {
    display: flex;
    flex-direction: column;
}

.mobile-pro-logo .brand-name {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(to right, #22d3ee, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.mobile-pro-logo .brand-sub {
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Mobile Pro Menu Button */
.mobile-pro-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-pro-menu-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
}

.mobile-pro-menu-btn:active {
    transform: scale(0.95);
}

.mobile-pro-menu-btn .hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PRO OVERLAY
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-pro-overlay {
    display: none; /* Varsayilan gizli */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Sadece mobilde ve aktif olunca gorunur */
@media (max-width: 768px) {
    .mobile-pro-overlay.active {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* hidden class varsa kesinlikle gizle */
.mobile-pro-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PRO MENU PANEL - TAM SAYFA
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-pro-menu {
    display: none; /* Varsayilan gizli */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    box-shadow: none;
}

html.dark .mobile-pro-menu,
[data-theme="dark"] .mobile-pro-menu {
    background: #0f172a;
}

/* Sadece mobilde gorunur */
@media (max-width: 768px) {
    .mobile-pro-menu {
        display: block;
    }
    
    .mobile-pro-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Menü içindeki tüm elementler tıklanabilir olmalı */
.mobile-pro-menu.active * {
    pointer-events: auto;
}

/* Logo Spin Animation */
@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE DROPDOWN
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-dropdown .dropdown-arrow {
    transition: transform 0.2s ease;
}

.mobile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.mobile-dropdown-content.show,
.mobile-dropdown.open .mobile-dropdown-content {
    display: block !important;
}

/* hidden class override */
.mobile-dropdown-content:not(.hidden) {
    display: block !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   LOGO CONTAINER (Genel)
   ═══════════════════════════════════════════════════════════════════════ */
.logo-container {
    position: relative;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: none; /* v15.2 PERFORMANCE: logoSpin kaldırıldı */
}

.logo-core {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

html:not(.dark) .logo-core {
    background: #e2e8f0 !important;
}

html.dark .logo-core {
    background: #0a0e17 !important;
}
