/**
 * PC Genç - Mobil Responsive CSS
 * Tüm cihazlar için optimize edilmiş görünüm
 */

/* ===================================
   Genel Mobil Optimizasyonlar
   =================================== */

/* Mobil için genel ayarlar */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Başlıklar */
    h1, .h1, .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h2, .h2 {
        font-size: 1.5rem !important;
    }

    h3, .h3 {
        font-size: 1.25rem !important;
    }

    h4, .h4 {
        font-size: 1.1rem !important;
    }

    p, .lead {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* ===================================
   Navbar Mobil
   =================================== */

@media (max-width: 991px) {
    .static-navbar {
        padding: 10px 0 !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    /* Body padding - navbar için yer aç - sadece içerik sayfalarında */
    body.mobile-ready {
        padding-top: 70px !important;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    /* Navbar menu - 2 kolonlu buton grid */
    .navbar-nav.mx-auto {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }

    .navbar-nav.mx-auto .nav-item {
        width: 100% !important;
    }

    .navbar-nav.mx-auto .nav-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px 10px !important;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
        color: white !important;
        border-radius: 10px !important;
        border: none !important;
        text-align: center !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
        box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3) !important;
        min-height: 70px !important;
    }

    .navbar-nav.mx-auto .nav-link:active {
        transform: scale(0.95) !important;
    }

    .navbar-nav.mx-auto .nav-link i {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
        margin-right: 0 !important;
        display: block !important;
    }

    /* Telefon ve randevu - alt kısım */
    .navbar-nav.ms-auto {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 10px !important;
        border-top: 2px solid #e5e7eb !important;
        padding-top: 15px !important;
    }

    .navbar-nav.ms-auto .nav-link {
        text-align: center !important;
        padding: 12px !important;
        background: #f3f4f6 !important;
        border-radius: 8px !important;
        color: #1e3a8a !important;
        font-weight: 600 !important;
    }

    .btn-header-cta {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 20px !important;
    }

    .navbar-collapse {
        background: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* ===================================
   Hero Section Mobil
   =================================== */

@media (max-width: 768px) {
    /* Hero Slider Wrapper */
    .hero-slider-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin-top: 70px !important; /* Navbar için boşluk */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Bootstrap Carousel mobil düzeltmeleri */
    .carousel {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .carousel-inner {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .carousel-item {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: auto !important;
    }

    .carousel-item .hero-slide {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero-slide {
        padding: 30px 0 !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        display: block !important;
        overflow-x: hidden !important;
        margin: 0 !important;
    }

    .hero-slide .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 auto !important;
    }

    .hero-slide .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-slide .col-lg-7 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Carousel kontroller - mobilde gizle */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    .carousel-indicators {
        bottom: 15px !important;
        margin-bottom: 0 !important;
    }

    .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
    }

    .hero-slide h1,
    .hero-slide .display-4 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .hero-slide h2 {
        font-size: 1.3rem !important;
    }

    .hero-slide h4 {
        font-size: 1rem !important;
    }

    .hero-slide p,
    .hero-slide .lead {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    /* Hero pattern arka plan - mobilde gizle */
    .hero-pattern {
        display: none !important;
    }

    /* Floating shapes - mobilde gizle */
    .hero-slide > div[style*="position: absolute"] {
        display: none !important;
    }

    /* Badge (yıldız ikonu) - mobilde küçült */
    .hero-slide .mb-3 span {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }

    .hero-slide .mb-3 i.fa-star {
        font-size: 0.8rem !important;
    }

    /* Hero istatistik kartları - ÇOK daha kompakt */
    .hero-slide .d-flex.flex-wrap.gap-3 {
        flex-direction: row !important;
        gap: 5px !important;
        justify-content: space-between !important;
        margin-bottom: 15px !important;
    }

    .hero-slide .d-flex.flex-wrap.gap-3 > div {
        padding: 6px 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .hero-slide .d-flex.flex-wrap.gap-3 > div > div:first-child {
        font-size: 0.8rem !important;
        margin-bottom: 1px !important;
    }

    .hero-slide .d-flex.flex-wrap.gap-3 > div > div:first-child i {
        font-size: 0.75rem !important;
        margin-right: 2px !important;
    }

    .hero-slide .d-flex.flex-wrap.gap-3 > div > div:last-child {
        font-size: 0.65rem !important;
    }

    /* Sağdaki floating card - mobilde GİZLE */
    .hero-slide .col-lg-5 {
        display: none !important;
    }

    /* Sol kolon full width olsun */
    .hero-slide .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Hero butonlar - yan yana 2 kolon, yükseklik 2 kat */
    .hero-slide .hero-cta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .hero-slide .btn,
    .hero-slide a[class*="btn"] {
        width: 100% !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
        padding: 16px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        min-height: 65px !important;
        text-align: center !important;
        border-radius: 10px !important;
    }

    .hero-slide .btn i,
    .hero-slide a[class*="btn"] i {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
        margin-right: 0 !important;
        display: block !important;
    }

    .hero-slide .hero-cta .me-3 {
        margin-right: 0 !important;
    }

    /* Kaşe slide özel düzen - WhatsApp butonu mobilde gizle (üstte olacak) */
    .hero-slide .hero-cta .btn-success {
        display: none !important;
    }

    .hero-slide .hero-cta .btn-light {
        order: 1 !important;
    }

    .hero-slide .hero-cta .btn-outline-light {
        order: 2 !important;
    }

    /* Diğer sayfalar için page-hero - hero-slide ile aynı stil */
    .page-hero {
        padding: 40px 0 !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        text-align: center !important;
        overflow-x: hidden !important;
        margin: 0 !important;
    }

    .page-hero .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-hero .col-lg-7 {
        text-align: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-hero .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-hero h1,
    .page-hero .display-4 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .page-hero h2 {
        font-size: 1.3rem !important;
    }

    .page-hero h4 {
        font-size: 1rem !important;
    }

    .page-hero p,
    .page-hero .lead {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    /* Floating shapes - mobilde gizle */
    .page-hero > div[style*="position: absolute"] {
        display: none !important;
    }

    /* Hero pattern - mobilde gizle */
    .page-hero .hero-pattern {
        display: none !important;
    }

    /* Badge (yıldız ikonu) - mobilde küçült */
    .page-hero .mb-3 span {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }

    .page-hero .mb-3 i.fa-star {
        font-size: 0.8rem !important;
    }

    /* İstatistik kartları - ÇOK daha kompakt */
    .page-hero .d-flex.flex-wrap.gap-3 {
        flex-direction: row !important;
        gap: 5px !important;
        justify-content: space-between !important;
        margin-bottom: 15px !important;
    }

    .page-hero .d-flex.flex-wrap.gap-3 > div {
        padding: 6px 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .page-hero .d-flex.flex-wrap.gap-3 > div > div:first-child {
        font-size: 0.8rem !important;
        margin-bottom: 1px !important;
    }

    .page-hero .d-flex.flex-wrap.gap-3 > div > div:first-child i {
        font-size: 0.75rem !important;
        margin-right: 2px !important;
    }

    .page-hero .d-flex.flex-wrap.gap-3 > div > div:last-child {
        font-size: 0.65rem !important;
    }

    /* Sağdaki floating card - mobilde GİZLE */
    .page-hero .col-lg-5 {
        display: none !important;
    }

    /* Sol kolon full width olsun */
    .page-hero .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Hero butonlar - yan yana 2 kolon, yükseklik 2 kat */
    .page-hero .hero-cta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .page-hero .btn,
    .page-hero a[class*="btn"] {
        width: 100% !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
        padding: 16px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        min-height: 65px !important;
        text-align: center !important;
        border-radius: 10px !important;
    }

    .page-hero .btn i,
    .page-hero a[class*="btn"] i {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
        margin-right: 0 !important;
        display: block !important;
    }

    .page-hero .hero-cta .me-3 {
        margin-right: 0 !important;
    }

    /* Kaşe sayfası özel düzen - WhatsApp butonu mobilde gizle (üstte olacak) */
    .page-hero .hero-cta .btn-success {
        display: none !important;
    }

    .page-hero .hero-cta .btn-light {
        order: 1 !important;
    }

    .page-hero .hero-cta .btn-outline-light {
        order: 2 !important;
    }

    /* Mobil WhatsApp Butonu Container - Slider altında */
    .mobile-kase-whatsapp-container {
        display: block !important;
        width: 100% !important;
        padding: 15px !important;
        background: #f9fafb !important;
        border-top: 1px solid #e5e7eb !important;
    }

    .mobile-kase-whatsapp-btn {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
        color: white !important;
        text-align: center !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
        border: none !important;
        text-decoration: none !important;
    }

    .mobile-kase-whatsapp-btn i {
        margin-right: 8px !important;
        font-size: 1.2rem !important;
    }
}

/* ===================================
   Grid ve Kolonlar
   =================================== */

@media (max-width: 768px) {
    /* Tüm row'ları tek sütun yap */
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }

    /* Kartlar */
    [style*="padding: 40px"],
    [style*="padding: 30px"] {
        padding: 20px !important;
    }

    [style*="padding: 25px"] {
        padding: 15px !important;
    }

    /* Box shadow - mobilde azalt */
    [style*="box-shadow"] {
        box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    }

    /* Border radius - mobilde azalt */
    [style*="border-radius: 15px"] {
        border-radius: 10px !important;
    }
}

/* ===================================
   Hizmet Kartları
   =================================== */

@media (max-width: 768px) {
    .service-card,
    .price-card,
    .feature-card {
        margin-bottom: 15px !important;
    }

    /* Icon boyutları */
    .service-card i,
    .feature-card i {
        font-size: 2rem !important;
    }

    /* Service başlıklar */
    .service-card h3,
    .service-card h4 {
        font-size: 1.1rem !important;
    }
}

/* ===================================
   Fiyat Tablosu
   =================================== */

@media (max-width: 768px) {
    .pricing-box,
    .price-card {
        padding: 20px !important;
    }

    .price {
        font-size: 1.5rem !important;
    }

    /* Fiyat grid */
    .row.g-3 > [class*="col-"] {
        margin-bottom: 15px;
    }
}

/* ===================================
   SSS (FAQ)
   =================================== */

@media (max-width: 768px) {
    .faq-box {
        padding: 20px !important;
    }

    .faq-box h2,
    .faq-box h3,
    .faq-box h4 {
        font-size: 1.1rem !important;
    }

    .faq-box h5,
    .faq-box h6 {
        font-size: 0.95rem !important;
    }

    .faq-box p {
        font-size: 0.85rem !important;
    }
}

/* ===================================
   Sidebar
   =================================== */

@media (max-width: 991px) {
    .col-lg-4 {
        margin-top: 30px;
    }

    /* İletişim kartları */
    .contact-card,
    .hours-card,
    .features-card {
        margin-bottom: 20px !important;
    }
}

/* ===================================
   Footer
   =================================== */

@media (max-width: 768px) {
    .site-footer .footer-top {
        padding: 40px 0 20px !important;
    }

    .site-footer .footer-logo h3 {
        font-size: 1.3rem !important;
    }

    .site-footer .footer-logo p {
        font-size: 0.85rem !important;
    }

    .site-footer .icon-bx-wraper {
        margin-bottom: 20px;
    }

    .site-footer .footer-title {
        font-size: 1.1rem !important;
    }

    .site-footer ul li {
        margin-bottom: 8px !important;
    }

    .site-footer a {
        font-size: 0.9rem !important;
    }

    /* Social icons */
    .dlab-social-icon ul {
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .dlab-social-icon a {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }

    /* Footer bottom */
    .footer-bottom {
        padding: 15px 0 !important;
        font-size: 0.85rem !important;
    }
}

/* ===================================
   Butonlar
   =================================== */

@media (max-width: 768px) {
    .btn,
    .btn-lg {
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
    }

    /* Buton grupları */
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .d-flex.gap-3 .btn {
        width: 100% !important;
    }
}

/* ===================================
   Tablolar
   =================================== */

@media (max-width: 768px) {
    table {
        font-size: 0.85rem !important;
    }

    table th,
    table td {
        padding: 8px !important;
    }

    /* Responsive table scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================
   Form Elemanları
   =================================== */

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* iOS zoom engellemek için */
        padding: 12px !important;
    }

    .form-control {
        font-size: 16px !important;
    }
}

/* ===================================
   CTA Section
   =================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 0 !important;
    }

    .cta-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .cta-section .lead {
        font-size: 0.95rem !important;
    }
}

/* ===================================
   WhatsApp Widget
   =================================== */

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 15px !important;
        right: 15px !important;
    }

    .whatsapp-widget a {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
}

/* ===================================
   Scroll to Top Button
   =================================== */

@media (max-width: 768px) {
    .scroltop {
        width: 40px !important;
        height: 40px !important;
        bottom: 80px !important;
        right: 15px !important;
    }
}

/* ===================================
   Text Alignment
   =================================== */

@media (max-width: 768px) {
    /* Mobilde tüm textleri ortalama */
    .text-lg-start,
    .text-lg-end {
        text-align: center !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }
}

/* ===================================
   Spacing Utilities
   =================================== */

@media (max-width: 768px) {
    /* Mobilde margin/padding azalt */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    .mt-4 {
        margin-top: 1.5rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ===================================
   Özel Düzeltmeler
   =================================== */

@media (max-width: 768px) {
    /* Overflow gizle */
    body,
    html {
        overflow-x: hidden !important;
    }

    /* Max width engelle */
    * {
        max-width: 100% !important;
    }

    img {
        height: auto !important;
    }

    /* Inline style override */
    [style*="width: 300px"],
    [style*="width: 400px"],
    [style*="width: 500px"] {
        width: 100% !important;
    }
}

/* ===================================
   Çok Küçük Ekranlar (320px - 480px)
   =================================== */

@media (max-width: 480px) {
    h1, .display-4 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .page-hero {
        padding: 40px 0 !important;
    }

    /* Ana sayfa section'lar - padding minimize */
    .services-section,
    section[style*="padding"] {
        padding: 30px 0 !important;
    }

    /* Section başlıkları - margin minimize */
    .text-center.mb-5 {
        margin-bottom: 20px !important;
    }

    .section-title {
        margin-bottom: 10px !important;
    }
}
