/* ============================================
   MOBİL MENÜ SİSTEMİ - YENİ YAPILANDIRMA
   ============================================ */

/* Overlay - Tam ekran arka plan katmanı */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999998;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
}

.nav-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Panel - Alttan açılan menü konteyneri */
.nav-mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 92vh;
    background-color: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
    padding: 1.75rem 1.25rem 2.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999999;
    display: none;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    isolation: isolate;
}

.nav-mobile-panel.is-active {
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Scrollbar styling */
.nav-mobile-panel::-webkit-scrollbar {
    width: 6px;
}

.nav-mobile-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.nav-mobile-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.nav-mobile-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Panel Header */
.nav-mobile-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}

.nav-mobile-panel__title {
    font-size: 1.375rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.nav-mobile-panel__subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.nav-mobile-panel__close-btn {
    background-color: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: #475569;
}

.nav-mobile-panel__close-btn:hover {
    background-color: #dbeafe;
    color: #1e40af;
    transform: rotate(90deg);
}

.nav-mobile-panel__close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* CTA Banner */
.nav-mobile-panel__cta-banner {
    background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.nav-mobile-panel__cta-banner h3 {
    font-size: 1.125rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.nav-mobile-panel__cta-banner p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Section Title */
.nav-mobile-panel__section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #64748b;
    margin: 1.5rem 0 0.875rem;
    display: block;
}

/* Navigation Grid */
.nav-mobile-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.nav-mobile-panel__nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-mobile-panel__nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-mobile-panel__nav-item:hover::before {
    opacity: 1;
}

.nav-mobile-panel__nav-item:hover {
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-mobile-panel__nav-item:active {
    transform: translateY(0);
}

.nav-mobile-panel__nav-item i {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.nav-mobile-panel__nav-item span {
    position: relative;
    z-index: 1;
}

/* Action Button Group */
.nav-mobile-panel__action-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 2px solid #e2e8f0;
}

.nav-mobile-panel__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.875rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-mobile-panel__action-btn:active {
    transform: scale(0.97);
}

.nav-mobile-panel__action-btn--call {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.nav-mobile-panel__action-btn--call:hover {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.nav-mobile-panel__action-btn--whatsapp {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.nav-mobile-panel__action-btn--whatsapp:hover {
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.nav-mobile-panel__action-btn i {
    font-size: 1.125rem;
}

/* Footer Note */
.nav-mobile-panel__footer-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* Responsive Breakpoints */
/* Masaüstünde mobil menüyü tamamen gizle */
@media (min-width: 1024px) {
    .nav-mobile-overlay,
    .nav-mobile-panel {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    .nav-mobile-panel {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .nav-mobile-panel__grid {
        grid-template-columns: 1fr;
    }

    .nav-mobile-panel__nav-item {
        padding: 1.125rem;
    }
}

@media (max-width: 360px) {
    .nav-mobile-panel {
        padding: 1.5rem 1rem 2rem;
    }

    .nav-mobile-panel__title {
        font-size: 1.25rem;
    }
}
