﻿/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #6c757d;
    background: none;
    border: none;
    min-width: 48px;
    min-height: 48px;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
}

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item:focus {
        color: #0068c8;
        background-color: rgba(0, 104, 200, 0.1);
        text-decoration: none;
    }

    .mobile-bottom-nav .nav-item.active {
        color: #0068c8;
        background-color: rgba(0, 104, 200, 0.15);
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
    }

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px; /* Bottom nav üstünde */
    right: 16px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

    .whatsapp-float i {
        color: white;
        font-size: 28px;
    }

    .whatsapp-float:hover {
        background: #128c7e;
        transform: scale(1.1);
        text-decoration: none;
    }

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Search Modal */
.modal-fullscreen .modal-body {
    padding: 24px;
}

.search-form-group .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.search-form-group .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 16px;
    font-size: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

    .search-form-group .form-select:focus {
        border-color: #0068c8;
        box-shadow: 0 0 0 3px rgba(0, 104, 200, 0.1);
    }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-logo {
    height: 32px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    padding: 8px;
    border-radius: 8px;
}

    .mobile-menu-close:hover {
        background: #f8f9fa;
        color: #dc3545;
    }

.mobile-menu-body {
    padding: 20px;
}

.mobile-menu-links {
    margin-bottom: 32px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    border-bottom: 1px solid #f7fafc;
    transition: color 0.2s ease;
}

    .mobile-menu-link:hover {
        color: #0068c8;
        text-decoration: none;
    }

    .mobile-menu-link i {
        width: 24px;
        margin-right: 12px;
        font-size: 18px;
    }

.mobile-menu-contact {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .contact-item i {
        width: 24px;
        font-size: 18px;
        color: #0068c8;
    }

    .contact-item div {
        display: flex;
        flex-direction: column;
    }

.contact-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
}

    .contact-value:hover {
        color: #0068c8;
        text-decoration: none;
    }

/* Ana sayfa için mobile padding */
.mobile-safe-area {
    padding-bottom: 80px; /* Bottom navigation için */
}

@media (min-width: 1200px) {
    .mobile-safe-area {
        padding-bottom: 0;
    }
}

/* Skeleton loading animasyonları */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 12px 20px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* iOS zoom engellemek için */
    }

    /* Card touch improvements */
    .card {
        margin-bottom: 16px;
    }

    .card-body {
        padding: 20px 16px;
    }
}
