/**
 * Engindere Otomotiv - Responsive Stil Dosyası
 * Tüm cihazlar için optimize edilmiş
 */

/* ═══════════════════════════════════════════
   EXTRA LARGE (≥1400px)
   ═══════════════════════════════════════════ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP (≥1200px)
   ═══════════════════════════════════════════ */
@media (max-width: 1399.98px) {
    .hero-stats {
        gap: 30px;
    }
}

/* ═══════════════════════════════════════════
   DESKTOP (≥992px)
   ═══════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .hero-section {
        min-height: 75vh;
    }

    .hero-stat-number {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════
   TABLET (≥768px, <992px)
   ═══════════════════════════════════════════ */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 70px;
    }

    /* Navbar */
    #mainNavbar {
        padding: 10px 0;
    }

    .navbar-logo {
        height: 38px;
    }

    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: flex !important;
    }

    /* Hero */
    .hero-section {
        min-height: 70vh;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-lg {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-cta {
        text-align: center;
    }

    .footer-cta .text-lg-end {
        text-align: center !important;
        margin-top: 16px;
    }

    /* Counter */
    .counter-number {
        font-size: 2.2rem;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0 35px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════
   MOBILE LARGE (≥576px, <768px)
   ═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    /* Hero */
    .hero-section {
        min-height: 65vh;
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 15px;
    }

    /* Service Cards */
    .service-card {
        padding: 28px 20px;
    }

    .service-card-icon {
        width: 64px;
        height: 64px;
    }

    .service-card-icon i {
        font-size: 26px;
    }

    /* Blog Cards */
    .blog-card-img {
        height: 180px;
    }

    .blog-card-body {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    /* Forms */
    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 15px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }

    /* Contact */
    .contact-info-card {
        padding: 24px;
    }

    /* Counter */
    .counter-section {
        padding: 40px 0;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .counter-label {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px;
    }

    /* Page Header */
    .page-header {
        padding: 30px 0 25px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* WhatsApp & Back to Top */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
        font-size: 16px;
    }

    /* Cookie Banner */
    .cookie-banner {
        font-size: 13px;
        padding: 12px 0;
    }

    .cookie-banner .btn {
        font-size: 13px;
        padding: 6px 16px;
    }
}

/* ═══════════════════════════════════════════
   MOBILE SMALL (<576px)
   ═══════════════════════════════════════════ */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero */
    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    /* Cards */
    .service-card {
        padding: 24px 16px;
    }

    .service-card h4 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }

    /* Feature */
    .feature-card {
        padding: 16px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon i {
        font-size: 20px;
    }

    /* Campaign */
    .campaign-price {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-cta h4 {
        font-size: 17px;
    }

    .footer-bottom-links .list-inline-item {
        display: block;
        margin: 4px 0;
        padding: 0 !important;
        border: none !important;
    }

    /* Offcanvas */
    .offcanvas-mobile {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */
@media print {
    .top-bar,
    #mainNavbar,
    .whatsapp-float,
    .back-to-top,
    .cookie-banner,
    .footer-cta,
    .footer-social {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
    }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .whatsapp-float {
        animation: none;
    }

    .service-card:hover,
    .blog-card:hover,
    .testimonial-card:hover,
    .contact-info-card:hover,
    .campaign-card:hover {
        transform: none;
    }
}

/* ═══════════════════════════════════════════
   DARK MODE SUPPORT
   ═══════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    /* Opsiyonel: Gelecekte dark mode desteği eklenebilir */
}

/* ═══════════════════════════════════════════
   LANDSCAPE MOBILE
   ═══════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   HIGH DPI / RETINA
   ═══════════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}
