/* 
Mobile Responsive & Typography Improvements for Uyar Döküm
Better readability and usability on mobile devices
*/

/* Base Mobile Typography */
@media only screen and (max-width: 768px) {
    /* Increase base font size for better readability */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
        -webkit-text-size-adjust: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* All pages get consistent header treatment */
    body {
        /* No padding-top needed since header is absolute */
    }
    
    /* Mobile menu improvements */
    .mobile-menu-overlay .mobile-menu-container {
        padding: 20px !important;
    }
    
    .mobile-menu-nav ul li a {
        font-size: 18px !important;
        padding: 15px 20px !important;
        color: #333 !important;
        font-weight: 500 !important;
    }
    
    /* Breadcrumb improvements */
    .rs-breadcrumb-area {
        margin-top: 0 !important;
        padding: 120px 0 40px 0 !important; /* Top padding for header space */
    }
    
    .rs-breadcrumb-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.2rem !important;
        font-weight: 700 !important;
    }
    
    .rs-breadcrumb-menu ul li {
        font-size: 18px !important;
    }
    
    .rs-breadcrumb-menu a {
        font-size: 18px !important;
    }
    
    /* Content sections spacing */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Section padding adjustments */
    section {
        padding: 40px 0 !important;
    }
    
    /* Headers - Make them much bigger and more prominent */
    h1 {
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
        font-weight: 700 !important;
    }
    
    h2 {
        font-size: 2.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.3rem !important;
        font-weight: 600 !important;
    }
    
    h3 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.2rem !important;
        font-weight: 600 !important;
    }
    
    h4 {
        font-size: 1.7rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        font-weight: 500 !important;
    }
    
    h5 {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.9rem !important;
        font-weight: 500 !important;
    }
    
    h6 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
        font-weight: 500 !important;
    }
    
    /* Paragraph text - Much bigger and better readability */
    p {
        font-size: 18px !important;
        line-height: 1.8 !important;
        margin-bottom: 1.5rem !important;
        color: #333 !important;
    }
    
    /* Links - Make them more tappable */
    a {
        color: #EA5501 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        /* Remove aggressive display and padding changes that break layout */
    }
    
    /* Lists - Better spacing */
    ul, ol {
        padding-left: 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    li {
        font-size: 18px !important;
        line-height: 1.7 !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Buttons - Bigger and more tappable */
    .btn, button, input[type="submit"] {
        font-size: 18px !important;
        padding: 15px 25px !important;
        min-height: 52px !important;
        line-height: 1.4 !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
    }
    
    .btn-sm {
        font-size: 14px !important;
        padding: 10px 16px !important;
        min-height: 42px !important;
    }
    
    .btn-lg {
        font-size: 18px !important;
        padding: 16px 28px !important;
        min-height: 52px !important;
    }
    
    /* Form elements - Better usability */
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 12px 16px !important;
        line-height: 1.5 !important;
        min-height: 48px !important;
        border-radius: 6px !important;
        border: 2px solid #ddd !important;
    }
    
    /* Labels - More prominent */
    label {
        font-size: 16px !important;
        font-weight: 500 !important;
        margin-bottom: 8px !important;
        color: #333 !important;
    }
    
    /* Cards - Better spacing */
    .card {
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
    }
    
    .card-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Tables - Better mobile display */
    table {
        font-size: 14px !important;
    }
    
    th {
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 12px 8px !important;
    }
    
    td {
        font-size: 14px !important;
        padding: 12px 8px !important;
        line-height: 1.4 !important;
    }
    
    /* Navigation - Better mobile menu */
    .navbar-nav .nav-link {
        font-size: 16px !important;
        padding: 12px 16px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
    }
    
    /* Footer - Better readability */
    footer {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    footer h5, footer h6 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
    }
    
    footer p, footer li {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 0.8rem !important;
    }
    
    footer a {
        font-size: 15px !important;
        padding: 8px 4px !important;
    }
    
    /* Alert/Notice boxes - More prominent */
    .alert {
        font-size: 16px !important;
        padding: 16px 20px !important;
        line-height: 1.6 !important;
        border-radius: 8px !important;
    }
    
    /* Breadcrumbs - Better mobile display */
    .breadcrumb {
        font-size: 14px !important;
        padding: 12px 16px !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Content sections - Better spacing */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-auto, .col {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Sections - Better mobile spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Images - Responsive and better display */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    
    /* Small text - Still readable */
    .small, small {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* Text utilities */
    .text-muted {
        color: #666 !important;
    }
    
    /* Badges - More readable */
    .badge {
        font-size: 13px !important;
        padding: 6px 10px !important;
        font-weight: 500 !important;
    }
    
    /* Progress bars - Better mobile display */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
    }
    
    /* Modal improvements */
    .modal-body {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 1.5rem !important;
    }
    
    .modal-title {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
    }
    
    /* Pagination - Better mobile buttons */
    .page-link {
        font-size: 16px !important;
        padding: 10px 16px !important;
        min-height: 44px !important;
    }
    
    /* Loading states */
    .spinner-border {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Tooltips and popovers */
    .tooltip-inner {
        font-size: 14px !important;
        padding: 8px 12px !important;
        max-width: 280px !important;
    }
}

/* Extra small devices (very small phones) */
@media only screen and (max-width: 480px) {
    body {
        font-size: 15px !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.7rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .card-body {
        padding: 1.2rem !important;
    }
    
    .btn {
        font-size: 15px !important;
        padding: 11px 18px !important;
    }
}

/* Accessibility improvements */
@media only screen and (max-width: 768px) {
    /* Ensure good contrast */
    * {
        -webkit-tap-highlight-color: rgba(234, 85, 1, 0.2);
    }
    
    /* Focus states for keyboard navigation */
    *:focus {
        outline: 2px solid #EA5501 !important;
        outline-offset: 2px !important;
    }
    
    /* Better touch targets */
    a, button, input, select, textarea {
        touch-action: manipulation;
    }
    
    /* Responsive Tables */
    table {
        width: 100% !important;
        font-size: 14px !important;
        border-collapse: collapse !important;
        margin-bottom: 1.5rem !important;
    }
    
    table th,
    table td {
        padding: 12px 8px !important;
        text-align: left !important;
        border-bottom: 1px solid #ddd !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    table th {
        background-color: #f8f9fa !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    /* Overflow scroll for wide tables */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Image responsiveness */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    
    /* Video responsiveness */
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Back to top button - Mobile optimized */
    .backtotop-wrap {
        width: 56px !important;
        height: 56px !important;
        right: 20px !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}