﻿:root {
    /* Genel Renkler */
    --color-bg: #f3f4f6;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-primary: #4c553c; /* Senin ana rengin */
    --color-primary-dark: #3a422e;
    /* Durum Renkleri (Gradient için) */
    --gradient-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    /* Ölçüler */
    --radius-card: 24px;
    --radius-elem: 12px;
}

/* Sayfa Yapısı */
.query-page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #eef2f6;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px; /* Noktalı teknik zemin */
}

/* ANA KART */
.query-card {
    width: 100%;
    max-width: 500px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

/* --- LOADING EFEKTLERİ --- */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.query-card.is-loading .loading-overlay {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    margin-top: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    animate: pulse 1.5s infinite;
}

/* --- İLK EKRAN (FORM) --- */
.card-content.initial-state {
    padding: 3rem 2.5rem;
}

.query-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    margin-bottom: 1.5rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.query-header h3 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.query-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

    .input-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-text-muted);
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
    }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-elem);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.3s;
    background: #f9fafb;
}

    .form-input:focus {
        outline: none;
        border-color: var(--color-primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(76, 85, 60, 0.1);
    }

.btn-primary-action {
    width: 100%;
    padding: 1.1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-elem);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

    .btn-primary-action:hover {
        background: var(--color-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    }

/* --- SONUÇ EKRANI (DURUMA GÖRE RENKLİ) --- */
.card-content.result-state {
    padding: 2.5rem;
    color: white; /* Tüm metinler beyaz */
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Başarılı Durum (Yeşil) */
.result-state.active-warranty {
    background: var(--gradient-success);
}
/* Başarısız Durum (Kırmızı) */
.result-state.inactive-warranty {
    background: var(--gradient-error);
}

/* İkon ve Başlık */
.status-header {
    text-align: center;
    margin-bottom: 2rem;
}

.status-icon-large {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.status-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.not-found-message {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Glassmorphism Kutuları (Bilgi Kartları) */
.result-glass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.glass-box {
    background: rgba(255, 255, 255, 0.15); /* Yarı saydam beyaz */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: var(--radius-elem);
    text-align: center;
}

    .glass-box label {
        display: block;
        font-size: 0.7rem;
        opacity: 0.8;
        margin-bottom: 5px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .glass-box span {
        font-size: 1.1rem;
        font-weight: 700;
        display: block;
    }

/* Liste Görünümü (Glass) */
.details-glass-list {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-elem);
    overflow: hidden;
    margin-bottom: 2rem;
}

.glass-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .glass-row:last-child {
        border-bottom: none;
    }

    .glass-row .lbl {
        opacity: 0.8;
        font-weight: 500;
    }

    .glass-row .val {
        font-weight: 700;
    }

/* Görsel Alanı */
.vehicle-image-frame {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-elem);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    position: relative;
}

    .vehicle-image-frame img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

/* Beyaz Buton (Glass İçinde) */
.btn-glass-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--color-text); /* Siyah yazı */
    padding: 1rem;
    border-radius: var(--radius-elem);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .btn-glass-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        background: #f9fafb;
        color: var(--color-text);
    }

/* Animasyonlar */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .result-glass-grid {
        grid-template-columns: 1fr;
    }

    .card-content.result-state {
        padding: 1.5rem;
    }

    .status-icon-large {
        font-size: 2.5rem;
    }

    .status-title {
        font-size: 1.5rem;
    }
}