/* Garanti Sorgulama Eklenti Stilleri */

#garanti-sorgulama-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#garanti-sorgulama-container h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.garanti-form-group {
    margin-bottom: 20px;
    text-align: center;
}

.garanti-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.garanti-form-group input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.garanti-form-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.garanti-form-group button {
    background-color: #fcb900 !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.garanti-form-group button:hover {
    background-color: #fcb900;
    transform: translateY(-1px);
}

.garanti-form-group button:active {
    transform: translateY(0);
}

#garanti-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

#garanti-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#garanti-sonuc {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.garanti-bulunan {
    background-color: #d5f4e6;
    border: 1px solid #27ae60;
    color: #27ae60;
}

.garanti-bulunamayan {
    background-color: #fadbd8;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.garanti-detay {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.garanti-detay h4 {
    margin-top: 0;
    color: #2c3e50 !important;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.garanti-bilgi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bilgi-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.bilgi-item strong {
    color: #34495e;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bilgi-item span {
    color: #2c3e50;
    font-size: 16px;
}

.garanti-durumu {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
}

.garanti-gecerli {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.garanti-dolmus {
    background-color: #fadbd8;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.garanti-yakinda-dolacak {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.resimler-container {
    margin-top: 20px;
}

.resimler-container h5 {
    margin-bottom: 15px;
    color: #34495e;
    font-size: 16px;
    font-weight: 600;
}

.resim-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.resim-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.resim-item:hover {
    transform: scale(1.05);
}

.resim-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.resim-item img:hover {
    opacity: 0.9;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    #garanti-sorgulama-container {
        margin: 10px;
        padding: 15px;
    }
    
    .garanti-form-group input[type="text"] {
        max-width: 100%;
    }
    
    .garanti-bilgi {
        grid-template-columns: 1fr;
    }
    
    .resim-galeri {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Hata mesajları */
.garanti-hata {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e74c3c;
    text-align: center;
    font-weight: 500;
}

.garanti-basari {
    color: #27ae60;
    background-color: #d5f4e6;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #27ae60;
    text-align: center;
    font-weight: 500;
}

/* Plaka formatı */
.plaka-formati {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}
