/* Mobile Responsive CSS - BYG Dijital 2025 */
/* Tüm sayfalar için ortak mobil uyumluluk */

/* ============================================
   MOBILE FIRST RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Mobile (< 480px) */
@media (max-width: 480px) {
    /* Container ve Layout */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    h5 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    h6 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn-lg {
        padding: 16px 24px !important;
        font-size: 1rem !important;
        min-height: 50px !important;
    }
    
    .btn-sm {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px !important;
        border-radius: 12px !important;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Grid System */
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Forms */
    .form-control {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        border-radius: 8px !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    
    .form-text {
        font-size: 0.8rem !important;
    }
    
    /* Tables */
    .table {
        font-size: 0.8rem !important;
    }
    
    .table th,
    .table td {
        padding: 8px 6px !important;
    }
    
    /* Images */
    .img-fluid {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Spacing */
    .mb-5 { margin-bottom: 2rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .mb-3 { margin-bottom: 1rem !important; }
    .mb-2 { margin-bottom: 0.75rem !important; }
    .mb-1 { margin-bottom: 0.5rem !important; }
    
    .mt-5 { margin-top: 2rem !important; }
    .mt-4 { margin-top: 1.5rem !important; }
    .mt-3 { margin-top: 1rem !important; }
    .mt-2 { margin-top: 0.75rem !important; }
    .mt-1 { margin-top: 0.5rem !important; }
    
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-2 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-1 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    
    .px-5 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .px-2 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-1 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        font-size: 0.9rem !important;
        min-width: 200px !important;
    }
    
    .dropdown-item {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
    
    /* Progress bars */
    .progress {
        height: 8px !important;
        margin-bottom: 15px !important;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .modal-content {
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 15px !important;
    }
    
    .modal-body {
        padding: 15px !important;
    }
    
    .modal-footer {
        padding: 15px !important;
    }
    
    /* Utilities */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .d-mobile-none {
        display: none !important;
    }
    
    .d-mobile-block {
        display: block !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
    
    .w-mobile-100 {
        width: 100% !important;
    }
    
    .h-mobile-auto {
        height: auto !important;
    }
}

/* Small Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Container */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    h6 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 22px !important;
        font-size: 0.95rem !important;
        min-height: 46px !important;
    }
    
    .btn-lg {
        padding: 18px 26px !important;
        font-size: 1.05rem !important;
        min-height: 52px !important;
    }
    
    .btn-sm {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        min-height: 38px !important;
    }
    
    /* Cards */
    .card-body {
        padding: 18px !important;
    }
    
    .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .card-text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Forms */
    .form-control {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
        min-height: 46px !important;
    }
    
    .form-label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
    }
    
    /* Tables */
    .table {
        font-size: 0.85rem !important;
    }
    
    .table th,
    .table td {
        padding: 10px 8px !important;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        font-size: 0.95rem !important;
        min-width: 220px !important;
    }
    
    .dropdown-item {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
    
    /* Alerts */
    .alert {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 15px !important;
        max-width: calc(100% - 30px) !important;
    }
    
    .modal-header {
        padding: 18px !important;
    }
    
    .modal-body {
        padding: 18px !important;
    }
    
    .modal-footer {
        padding: 18px !important;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Container */
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.9rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    h5 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    h6 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Buttons */
    .btn {
        padding: 16px 24px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .btn-lg {
        padding: 20px 28px !important;
        font-size: 1.1rem !important;
        min-height: 54px !important;
    }
    
    .btn-sm {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        min-height: 40px !important;
    }
    
    /* Cards */
    .card-body {
        padding: 20px !important;
    }
    
    .card-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    .card-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Forms */
    .form-control {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .form-label {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
    }
    
    /* Tables */
    .table {
        font-size: 0.9rem !important;
    }
    
    .table th,
    .table td {
        padding: 12px 10px !important;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        font-size: 1rem !important;
        min-width: 240px !important;
    }
    
    .dropdown-item {
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
    
    /* Alerts */
    .alert {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 20px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    .modal-header {
        padding: 20px !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-footer {
        padding: 20px !important;
    }
}

/* ============================================
   COMMON MOBILE FIXES
   ============================================ */

/* Fix for horizontal scrolling */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .container,
    .container-fluid {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Fix for images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix for tables */
    .table-responsive {
        border: none !important;
    }
    
    .table {
        margin-bottom: 0 !important;
    }
    
    /* Fix for pre and code */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-x: auto !important;
    }
    
    /* Fix for long words */
    p, div, span, a, li, td, th {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* ============================================
   MOBILE SPECIFIC COMPONENTS
   ============================================ */

/* Mobile Hero Sections */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
}

/* Mobile Service Cards */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem !important;
    }
    
    .service-card .card-body {
        padding: 1.5rem !important;
    }
    
    .service-card .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-card .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

/* Mobile Contact Forms */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-form .form-group {
        margin-bottom: 1.5rem !important;
    }
    
    .contact-form .btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1rem !important;
    }
}

/* Mobile Pricing Tables */
@media (max-width: 768px) {
    .pricing-table {
        margin-bottom: 2rem !important;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem !important;
    }
    
    .pricing-card .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .pricing-card .price {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1.5rem !important;
    }
    
    .testimonial-card .card-body {
        padding: 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    .testimonial-author {
        font-size: 0.85rem !important;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer .container {
        padding: 0 15px !important;
    }
    
    .footer .row {
        margin: 0 !important;
    }
    
    .footer .col {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .footer .col:last-child {
        margin-bottom: 0 !important;
    }
    
    .footer h5 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer p,
    .footer li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .footer .social-links {
        justify-content: center !important;
        margin-top: 1rem !important;
    }
}

/* ============================================
   MOBILE UTILITIES
   ============================================ */

/* Hide on mobile */
@media (max-width: 768px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 769px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Mobile text alignment */
@media (max-width: 768px) {
    .text-mobile-center {
        text-align: center !important;
    }
    
    .text-mobile-left {
        text-align: left !important;
    }
    
    .text-mobile-right {
        text-align: right !important;
    }
}

/* Mobile spacing utilities */
@media (max-width: 768px) {
    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-1 { margin-bottom: 0.25rem !important; }
    .mb-mobile-2 { margin-bottom: 0.5rem !important; }
    .mb-mobile-3 { margin-bottom: 1rem !important; }
    .mb-mobile-4 { margin-bottom: 1.5rem !important; }
    .mb-mobile-5 { margin-bottom: 3rem !important; }
    
    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-1 { margin-top: 0.25rem !important; }
    .mt-mobile-2 { margin-top: 0.5rem !important; }
    .mt-mobile-3 { margin-top: 1rem !important; }
    .mt-mobile-4 { margin-top: 1.5rem !important; }
    .mt-mobile-5 { margin-top: 3rem !important; }
    
    .py-mobile-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
    .py-mobile-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
    .py-mobile-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .py-mobile-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-mobile-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-mobile-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .d-print-none {
        display: none !important;
    }
    
    .d-print-block {
        display: block !important;
    }
    
    .d-print-inline {
        display: inline !important;
    }
    
    .d-print-inline-block {
        display: inline-block !important;
    }
    
    .d-print-flex {
        display: flex !important;
    }
    
    .d-print-inline-flex {
        display: inline-flex !important;
    }
    
    .d-print-table {
        display: table !important;
    }
    
    .d-print-table-row {
        display: table-row !important;
    }
    
    .d-print-table-cell {
        display: table-cell !important;
    }
    
    .d-print-grid {
        display: grid !important;
    }
    
    .d-print-inline-grid {
        display: inline-grid !important;
    }
}
