@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Scrollbar gizlemek için */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tam sayfa arkaplan */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

/* Fixed footer için alt boşluk - mobilde butonların tıklanabilir kalması için */
.footer-spacer {
    padding-bottom: 100px;
}
@media (min-width: 640px) {
    .footer-spacer {
        padding-bottom: 80px;
    }
}

/* Mobilde nav butonları için ekstra alt boşluk */
.nav-buttons-spacer {
    margin-bottom: 1rem;
}
@media (max-width: 639px) {
    .nav-buttons-spacer {
        margin-bottom: 5rem;
    }
}

/* Result image - tüm ekran boyutlarına responsive (mobil, tablet, desktop, 2K) */
/* Desktop/laptop: viewport'a sığdır - scroll olmasın */
.result-image-container {
    width: 100%;
    max-width: min(90vw, 800px);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 589 / 393;
    max-height: min(70vh, 720px);
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 639px) {
    .result-image-container {
        max-width: min(92vw, 320px);
        max-height: min(55vh, 340px);
    }
}
@media (min-width: 640px) and (max-width: 767px) {
    .result-image-container {
        max-width: min(85vw, 420px);
        max-height: min(60vh, 420px);
    }
}
/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .result-image-container {
        max-width: min(85vw, 480px);
        max-height: min(calc(100vh - 440px), 420px);
    }
}
/* Laptop - daha büyük resim */
@media (min-width: 1024px) and (max-width: 1535px) {
    .result-image-container {
        max-width: min(75vw, 620px);
        max-height: min(calc(100vh - 420px), 580px);
    }
}
/* Desktop / 2K */
@media (min-width: 1536px) {
    .result-image-container {
        max-width: min(65vw, 720px);
        max-height: min(calc(100vh - 450px), 640px);
    }
}

/* Result sayfasında section padding azalt - resme daha fazla alan */
.result-page-section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
@media (min-width: 768px) {
    .result-page-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

section{
    zoom: 0.9
}

/* ===== MOBİL OPTİMİZASYON (sadece 767px altı) ===== */
@media (max-width: 767px) {
    section {
        zoom: 0.85;
    }

    /* Hero section */
    .mobile-hero {
        padding-top: 20px !important;
        padding-bottom: 10px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mobile-logo {
        width: 6rem !important; /* w-24 */
        margin-bottom: 0.5rem !important;
    }

    .mobile-title {
        font-size: 1rem !important; /* text-base */
        margin-bottom: 0.25rem !important;
    }

    .mobile-subtitle {
        font-size: 0.75rem !important; /* text-xs */
    }

    /* Content section */
    .mobile-content {
        padding: 0.5rem !important;
    }

    .mobile-content-inner {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        min-height: 200px !important;
    }

    /* Loading page */
    .mobile-loading {
        height: 220px !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Footer */
    .mobile-footer {
        font-size: 0.75rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Logout button - icon only, zoom causes fixed positioning offset */
    .mobile-logout-wrapper {
        top: 12px !important;
        right: 5vw !important;
    }

    .mobile-logout-wrapper .logout-btn {
        padding: 6px !important;
        gap: 0 !important;
        border-radius: 6px !important;
    }

    .mobile-logout-wrapper .logout-text {
        display: none !important;
    }
}

/* Laptop (1024-1919px) - 1920x1080 @ %125 zoom = 1536px viewport */
/* Scroll olmasın, footer sığsın */
@media (min-width: 1024px) and (max-width: 1919px) {
    section {
        zoom: 0.72;
    }
}
/* Büyük desktop (1920px+) - %100 zoom veya 2K+ ekran */
@media (min-width: 1920px) {
    section {
        zoom: 0.9;
    }
}

@media (max-width: 1279px) {
    .form-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hero-image {
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    background: url("/src/image/image.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 58%;
    flex-shrink: 0;
    z-index: -1;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}


.car-card {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.3rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
}

    .car-card.selected {
        border-color: #30b0c7;
    }

/* ImageUploadForm Component Styles */

.camera-option:hover {
    border-color: #088ab2;
    box-shadow: 0 4px 12px rgba(8, 138, 178, 0.1);
    transform: translateY(-1px);
}

.upload-area:hover {
    border-color: #088ab2;
    background: #f8fcfd;
    transform: translateY(-1px);
}

.form-input:focus-within {
    border-color: #088ab2;
    box-shadow: 0 0 0 3px rgba(8, 138, 178, 0.1);
}

.form-select:hover {
    border-color: #088ab2;
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background-color: #f9fafb;
    }

    .dropdown-item.selected {
        background-color: #088ab2;
        color: white;
    }

        .dropdown-item.selected:hover {
            background-color: #0776a0;
        }

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #088ab2;
    margin-top: 10px;
    image-orientation: from-image;
    object-fit: cover;
}

.drag-over {
    border-color: #088ab2 !important;
    background: #f0f9ff !important;
}

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none; /* Varsayılan olarak gizli */
}

    .camera-modal.active {
        display: flex; /* Active olduğunda göster */
    }

.camera-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.camera-video {
    width: 100%;
    height: auto;
    max-width: 640px;
    max-height: 480px;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
}

.camera-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
}

.upload-area.drag-over {
    border-color: #088ab2 !important;
    background: #f0f9ff !important;
}

.camera-btn.capture {
    background: #088ab2;
    color: white;
}

    .camera-btn.capture:hover {
        background: #0776a0;
    }

.camera-btn.close {
    background: #ef4444;
    color: white;
}

    .camera-btn.close:hover {
        background: #dc2626;
    }

.carousel-scroll {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .carousel-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    /* Child elementlerin küçülmesini engelle */
    .carousel-scroll > :global(*) {
        flex: 0 0 auto;
    }