/* =====================================================
   İnşaat Dekorasyon ERP v3 - MOBİL TEMA (Ayrı Dosya)
   Konuşan Servis Bilişim
   Sadece 576px ve altında yüklenir
   ===================================================== */

/* --- Mobil Navbar --- */
.site-navbar {
    padding: 0.5rem 0 !important;
}
.site-navbar .container {
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
}

/* Logo ortada, büyük — scroll'da sola küçülsün */
.navbar-brand {
    margin: 0 auto !important;
    text-align: center;
}
.navbar-brand img,
.navbar-brand .site-logo {
    height: 80px !important;
    max-width: 200px;
}
.site-navbar.scrolled .container {
    justify-content: space-between;
}
.site-navbar.scrolled .navbar-brand {
    margin: 0 !important;
    text-align: left;
}
.site-navbar.scrolled .navbar-brand img,
.site-navbar.scrolled .navbar-brand .site-logo {
    height: 38px !important;
    max-width: 130px;
}

/* Scroll'da arama ikonu göster */
.mobile-search-toggle {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--primary, #FFD700);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.mobile-search-toggle:hover {
    background: var(--primary, #FFD700);
    color: #000;
    border-color: var(--primary, #FFD700);
}
.site-navbar.scrolled .mobile-search-toggle {
    display: flex;
}

/* Hamburger menü gizle (alt menü kullanılacak) */
.site-navbar .navbar-toggler {
    display: none !important;
}
.site-navbar .navbar-collapse {
    display: none !important;
}

/* --- Mobil Arama Çubuğu --- */
.mobile-search-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    animation: slideDown 0.3s ease;
}
.mobile-search-bar.open {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-search-bar input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 10px 18px;
    color: var(--text-color, #e0e0e0);
    font-size: 0.95rem;
    outline: none;
}
.mobile-search-bar input:focus {
    border-color: var(--primary, #FFD700);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.mobile-search-bar input::placeholder {
    color: rgba(255,255,255,0.3);
}
.mobile-search-bar .close-search {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}
.mobile-search-bar .close-search:hover {
    color: var(--primary, #FFD700);
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Alt Menü (Bottom Navigation) --- */
.mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: flex-end;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

/* Menü ikonları */
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255,255,255,0.45);
    font-size: 0.6rem;
    padding: 6px 8px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    position: relative;
}
.mobile-bottom-nav a i {
    font-size: 1.25rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-bottom-nav a:hover {
    color: var(--primary, #FFD700);
}
.mobile-bottom-nav a:hover i {
    transform: translateY(-2px) scale(1.15);
}
.mobile-bottom-nav a:active i {
    transform: translateY(-1px) scale(0.95);
}
.mobile-bottom-nav a.active {
    color: var(--primary, #FFD700);
}
.mobile-bottom-nav a.active i {
    transform: translateY(-2px);
}
.mobile-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary, #FFD700);
    border-radius: 0 0 3px 3px;
}

/* WhatsApp — ortada, yukarı çıkık yuvarlak buton */
.mobile-bottom-nav .mobile-nav-center {
    position: relative;
    top: -24px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    border: 4px solid rgba(10, 10, 10, 0.97);
    animation: wa-pulse 2.5s infinite;
    font-size: 0;
}
.mobile-bottom-nav .mobile-nav-center i {
    font-size: 1.7rem;
}
.mobile-bottom-nav .mobile-nav-center span {
    display: none;
}
.mobile-bottom-nav .mobile-nav-center:hover {
    color: #fff !important;
    transform: scale(1.1);
}
@keyframes wa-pulse {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.9), 0 0 0 10px rgba(37, 211, 102, 0.12); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
}

/* --- Genel Mobil Ayarlar --- */
body {
    padding-bottom: 70px !important;
}

/* WhatsApp sabit buton gizle — alt menüde var */
.whatsapp-float {
    display: none !important;
}

/* Mobil Arama FAB — sağa yapışık, küçük */
.search-fab-wrapper {
    bottom: 90px !important;
}
.search-fab-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.15rem !important;
}
.search-fab-inline input {
    width: 200px !important;
    font-size: 0.9rem !important;
    padding: 12px 14px !important;
}
.search-fab-inline button {
    width: 36px !important;
    height: 36px !important;
}
.search-fab-tags a {
    font-size: 0.7rem !important;
    padding: 3px 10px !important;
}

/* Hero mobil */
.hero-fullscreen {
    min-height: 85vh;
}
.hero-content {
    padding: 0 1rem;
}
.hero-title {
    font-size: 2rem;
}
.hero-subtitle {
    font-size: 0.95rem;
}

/* Section padding */
.section-dark, .section-darker {
    padding: 2.5rem 0;
}

/* Kartlar mobil */
.premium-card img {
    height: 160px !important;
}

/* Footer mobil */
.site-footer {
    padding-bottom: 80px !important;
    text-align: center;
}
.site-footer .col-lg-4 {
    text-align: center;
}
.site-footer .col-lg-4 p {
    text-align: center;
}
.site-footer .footer-social {
    justify-content: center;
}
.site-footer .col-lg-2 {
    text-align: center;
}
.site-footer h5, .site-footer h6 {
    text-align: center;
}

/* Sosyal medya blok mobil */
.social-block-item {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}
.social-block-item i { font-size: 1.7rem; }
.social-block-item span { font-size: 0.6rem; }

/* Footer harita mobil */
.footer-map-wrapper {
    max-height: 140px;
}
.footer-map-wrapper iframe {
    height: 140px !important;
}
