/* ========================================
   Mobil Uygulama Benzeri Tasarım
   Modern, İnteraktif, Smooth UX
   ======================================== */

/* Mobil Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(211, 84, 0, 0.1);
    padding: 8px 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav a i {
    font-size: 20px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #d35400;
    background: rgba(211, 84, 0, 0.1);
}

/* Mobil Header Optimization */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
        padding-top: 60px;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .top-bar {
        display: none !important;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        z-index: 1001;
        touch-action: manipulation;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: #d35400;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }

    /* Small screens: make the nav cover the whole viewport for tiny devices */
    @media (max-width: 480px) {
        .nav-menu {
            width: 100%;
            right: -100%;
            padding-top: 90px;
        }
        .nav-menu.active {
            right: 0;
        }
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 8px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 16px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(211, 84, 0, 0.1);
        color: #d35400;
    }
    
    /* Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

/* Swipe Cards for Mobile */
@media (max-width: 768px) {
    .services-grid,
    .blog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px;
        margin: 0 -20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .services-grid::-webkit-scrollbar,
    .blog-grid::-webkit-scrollbar {
        display: none;
    }
    
    .service-card,
    .blog-card {
        min-width: 85%;
        scroll-snap-align: start;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }
    
    .service-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }
}

/* Pull to Refresh Effect */
.pull-refresh {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 24px;
    color: #d35400;
    transition: transform 0.3s ease;
    z-index: 999;
}

.pull-refresh.active {
    transform: translateX(-50%) scale(1);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Smooth Scroll Indicators */
.scroll-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 999;
}

.scroll-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(211, 84, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-indicator span.active {
    width: 20px;
    border-radius: 3px;
    background: #d35400;
}

/* Touch Feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(211, 84, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.touch-feedback:active::after {
    width: 200px;
    height: 200px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d35400, #ca6f1e);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:active {
    transform: scale(0.9);
}

.fab:hover {
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.5);
    transform: translateY(-2px);
}
/* Hide legacy floating FAB (orange) — kept in codebase but hidden to avoid UI clutter */
.fab { display: none !important; }