/* ============================================
   Araç Değerleme Sistemi - Responsive Tasarım
   Tüm cihazlara kusursuz uyum
   ============================================ */

/* === Büyük Ekran (1280px+) === */
@media (min-width: 1280px) {
    .container {
        padding: 0 32px;
    }
}

/* === Orta Ekran / Küçük Masaüstü (max-width: 1199px) === */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-content {
        gap: 36px;
    }

    .hero-img {
        height: 300px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }
}

/* === Tablet (max-width: 991px) === */
@media (max-width: 991px) {
    /* Top Bar gizle */
    .top-bar {
        display: none;
    }

    /* Navbar */
    .navbar-content {
        height: 62px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px 24px;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 2px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        padding: 13px 16px;
        width: 100%;
        border-radius: var(--radius);
        font-size: 15px;
        font-weight: 500;
        color: var(--gray-700);
        border: 1px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-lighter);
        color: var(--primary);
        border-color: var(--primary-light);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
        font-size: 15px;
        padding: 14px 28px;
        width: 100%;
        border-radius: var(--radius-md);
    }

    /* Hero */
    .hero {
        padding: 48px 0 40px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 420px;
        margin: 0 auto;
        animation: heroFloatMobile 5s ease-in-out infinite;
    }
    .hero-image-wrapper:hover {
        animation-play-state: paused;
        transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(-4px) scale(1.01);
    }

    .hero-img {
        height: 240px;
    }

    .hero-car-img {
        max-width: 360px;
        animation: heroFloat 5s ease-in-out infinite;
    }

    .hero-mini-form {
        max-width: 100%;
    }

    .hero-text > p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 28px;
        flex-wrap: wrap;
    }

    .hero-stat .number {
        font-size: 24px;
    }

    .hero-image-badge {
        padding: 8px 12px;
    }

    .hero-image-badge strong {
        font-size: 12px;
    }

    .hero-image-badge small {
        font-size: 10px;
    }

    /* Brands Band */
    .brands-band {
        padding: 14px 0;
    }

    .brands-scroll {
        gap: 8px;
    }

    .brand-item {
        padding: 5px 12px;
        font-size: 11.5px;
    }

    /* Section */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Grid düzenlemeleri */
    .services-grid,
    .steps-grid,
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Dark steps — stack vertically on tablet */
    .three-steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 420px;
    }
    .three-step-connector {
        width: 2px;
        height: 40px;
        padding: 0;
    }
    .three-step-connector::after {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, rgba(220,38,38,0.5), rgba(220,38,38,0.2));
    }
    .three-step-card {
        padding: 0 0 0 0;
        width: 100%;
    }

    .connect-v2-grid,
    .connect-v2-grid--3 {
        grid-template-columns: 1fr;
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
    }

    /* Timeline (Nasıl Çalışır Sayfa) */
    .how-it-works-timeline {
        padding-left: 40px;
    }

    .how-it-works-timeline::before {
        left: 18px;
    }

    .timeline-number {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 15px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    /* Avantajlar */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Detay */
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }

    /* Teşekkür */
    .thank-you-info {
        grid-template-columns: 1fr;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    /* About */
    .about-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        height: 280px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* İletişim */
    .contact-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    /* Wizard */
    .wizard-panel {
        padding: 24px 20px;
    }

    .wizard-step-label {
        font-size: 10px;
    }

    .wizard-step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Page Banner */
    .page-banner {
        padding: 36px 0;
    }

    /* Blog Detay */
    .blog-detail-header h1 {
        font-size: 24px;
    }

    /* Araç Seçici */
    .car-views {
        flex-wrap: wrap;
    }

    .selected-parts-list {
        grid-template-columns: 1fr;
    }

    /* Nasıl Çalışır Detay */
    .how-step-detail,
    .how-step-detail:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .how-step-number-lg {
        margin: 0 auto;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 26px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Thank You */
    .thank-you-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Service Detail */
    .service-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-features {
        grid-template-columns: 1fr;
        text-align: left;
    }

    /* WhatsApp & Scroll Top */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .scroll-top {
        right: 76px;
        bottom: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* === Mobil (max-width: 767px) === */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 36px 0 32px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .number {
        font-size: 22px;
    }

    .hero-stat .label {
        font-size: 10.5px;
    }

    .hero-img {
        height: 200px;
    }

    .hero-image-wrapper {
        max-width: 100%;
    }

    .hero-form-selects {
        grid-template-columns: 1fr;
    }

    .hero-car-img {
        max-width: 100%;
        filter: drop-shadow(0 20px 40px rgba(15,23,42,0.14));
    }

    /* Section */
    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 28px;
    }

    /* Grids */
    .services-grid,
    .steps-grid,
    .services-page-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 24px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .service-body {
        padding: 16px;
    }

    .service-img {
        height: 150px;
    }

    .testimonial-card {
        padding: 22px;
    }

    .blog-card-body {
        padding: 18px;
    }

    .blog-card-image {
        height: 160px;
    }

    /* Stat */
    .stat-item .stat-number {
        font-size: 30px;
    }

    /* Step */
    .step-number {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }

    /* About */
    .about-image {
        height: 220px;
    }

    /* Wizard */
    .wizard-steps {
        gap: 4px;
    }

    .wizard-step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .wizard-step-label {
        font-size: 9.5px;
    }

    .wizard-panel {
        padding: 20px 16px;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    /* Contact */
    .contact-form-section,
    .contact-info-section {
        padding: 22px 18px;
    }

    /* Footer */
    .footer-top {
        padding: 36px 0 28px;
    }

    .footer-brand {
        font-size: 16px;
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 26px;
        font-size: 14px;
    }

    /* Car Selector */
    .car-svg-wrapper {
        padding: 16px;
        min-height: 260px;
    }

    .car-view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .part-legend {
        gap: 10px;
    }

    .legend-item {
        font-size: 11px;
    }

    .part-popup {
        min-width: 180px;
        padding: 14px;
        font-size: 12px;
    }

    .part-popup h4 {
        font-size: 12px;
    }

    .part-option {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Page Banner */
    .page-banner {
        padding: 28px 0;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
    }

    /* Timeline */
    .how-it-works-timeline {
        padding-left: 36px;
    }

    .how-it-works-timeline::before {
        left: 16px;
    }

    .timeline-number {
        left: -36px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .timeline-content {
        padding: 18px 16px;
    }

    .timeline-tips {
        padding: 6px 10px;
    }

    .timeline-tips span {
        font-size: 11.5px;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
    }

    .faq-question h4 {
        font-size: 13.5px;
    }

    .faq-answer p {
        padding: 0 16px 14px;
        font-size: 13px;
    }

    /* Thank You */
    .thank-you-container .thank-you-icon {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }

    .thank-you-message {
        font-size: 14px;
    }

    /* Blog Detay */
    .blog-detail-body {
        font-size: 14.5px;
    }

    .blog-detail-image img {
        max-height: 260px;
    }

    .blog-share {
        flex-wrap: wrap;
    }

    .sidebar-widget {
        padding: 18px;
    }

    /* 404 Sayfası */
    .error-404-icon {
        font-size: 90px !important;
    }

    .error-404-number {
        font-size: 120px !important;
    }

    .error-404-container h2 {
        font-size: 26px !important;
    }

    .error-404-description {
        font-size: 15px !important;
    }

    .error-404-search {
        padding: 24px !important;
    }

    .error-404-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === Küçük Mobil (max-width: 479px) === */
@media (max-width: 479px) {
    .container {
        padding: 0 14px;
    }

    .hero-text h1 {
        font-size: 23px;
    }

    .hero-img {
        height: 170px;
    }

    .hero-image-badge {
        display: none;
    }

    .hero-badge {
        font-size: 11.5px;
        padding: 5px 12px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 13px;
    }

    /* 404 Sayfası */
    .error-404-icon {
        font-size: 80px !important;
    }

    .error-404-number {
        font-size: 100px !important;
    }

    .error-404-container h2 {
        font-size: 24px !important;
    }

    .error-404-description {
        font-size: 14px !important;
    }

    .error-404-search {
        padding: 20px !important;
    }

    .error-404-card-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13.5px;
    }

    .btn-lg {
        padding: 11px 22px;
        font-size: 13.5px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .stat-item .stat-number {
        font-size: 26px;
    }

    .stat-item .stat-label {
        font-size: 12px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .blog-card-image {
        height: 140px;
    }

    .blog-card-body h3 {
        font-size: 15px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .page-banner h1 {
        font-size: 22px;
    }

    .about-content .about-text h2 {
        font-size: 22px;
    }

    .footer-col h4 {
        font-size: 14px;
    }

    .footer-links li a {
        font-size: 12.5px;
    }

    .footer-bottom-content {
        font-size: 11.5px;
    }
}

/* === Çok Küçük Ekran (max-width: 359px) === */
@media (max-width: 359px) {
    .container {
        padding: 0 12px;
    }

    .hero-text h1 {
        font-size: 21px;
    }

    .hero-stats {
        gap: 14px;
    }

    .hero-stat .number {
        font-size: 20px;
    }

    .section {
        padding: 32px 0;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .wizard-step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .wizard-step-label {
        font-size: 8.5px;
    }
}

/* === Yatay Mod (Landscape) === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero-visual {
        order: 0;
    }

    .hero-img {
        height: 180px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-stats {
        gap: 16px;
        margin-top: 16px;
        padding-top: 12px;
    }

    .navbar-menu {
        max-height: calc(100vh - 62px);
    }
}

/* === Yüksek DPI / Retina === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .service-img img,
    .blog-card-image img,
    .about-image img,
    .team-avatar img,
    .testimonial-avatar-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

@keyframes heroFloatMobile {
    0%, 100% { transform: perspective(800px) rotateY(-2deg) rotateX(1deg) translateY(0); }
    50% { transform: perspective(800px) rotateY(-2deg) rotateX(1deg) translateY(-6px); }
}

/* === Erişilebilirlik: Hareket azaltma === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Dark mode desteği (opsiyonel) === */
@media (prefers-color-scheme: dark) {
    /* Kullanıcı dark mode tercih ederse ileride aktif edilebilir */
}

/* === Print === */
@media print {
    .top-bar,
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .cta-section,
    .footer {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }

    .hero-text {
        color: #000 !important;
    }

    .hero-text h1 {
        color: #000 !important;
        font-size: 24px !important;
    }

    .section {
        padding: 20px 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    /* 404 Sayfası */
    .error-404-icon {
        font-size: 100px !important;
    }

    .error-404-number {
        font-size: 140px !important;
    }

    .error-404-container h2 {
        font-size: 28px !important;
    }

    .error-404-description {
        font-size: 16px !important;
    }

    .error-404-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-404-actions .btn {
        width: 100%;
    }

    .error-search-form {
        flex-direction: column;
    }

    .error-search-form .form-control {
        margin-bottom: 12px;
    }

    .error-404-grid {
        grid-template-columns: 1fr !important;
    }

    .error-404-card {
        flex-direction: column;
        text-align: center;
    }

    .error-404-card-content {
        text-align: center !important;
    }

    .error-404-card-arrow {
        display: none;
    }
}

/* ===================================================
   New Sections — Mobile & Tablet
   =================================================== */

/* Araçlar grid */
@media (max-width: 1199px) {
    .araclar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .araclar-grid {
        grid-template-columns: 1fr;
    }
    .araclar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    /* Contact strip */
    .contact-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-strip-actions {
        width: 100%;
    }
    .contact-strip-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Footer responsive */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sub-page FAQ */
@media (max-width: 767px) {
    .faq-container {
        padding: 0;
    }
}

/* Review grid 3 columns → 1 on mobile */
@media (max-width: 767px) {
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 1199px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
