/* =========================================================================
   Boratav Garanti — Frontend Stilleri
   ========================================================================= */

.bg-garanti-wrap {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bg-garanti-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(30, 64, 175, 0.06);
}

.bg-garanti-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 8px;
    text-align: center;
}

.bg-garanti-desc {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    margin: 0 0 28px;
}

/* Form */
.bg-garanti-form {
    display: flex;
    gap: 10px;
}

.bg-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.bg-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.bg-button {
    padding: 14px 28px;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.bg-button:hover {
    background: #1e3a8a;
}

.bg-button:active {
    transform: scale(0.97);
}

.bg-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading */
.bg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
    color: #1e40af;
    font-size: 15px;
    font-weight: 500;
}

.bg-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dbeafe;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: bg-spin 0.7s linear infinite;
}

@keyframes bg-spin {
    to { transform: rotate(360deg); }
}

/* Sonuç */
.bg-sonuc {
    margin-top: 24px;
    animation: bg-fade-in 0.4s ease;
}

@keyframes bg-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bg-sonuc-kart {
    border: 2px solid #22c55e;
    border-radius: 12px;
    overflow: hidden;
}

.bg-sonuc-kart.bg-hata {
    border-color: #ef4444;
}

.bg-sonuc-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-sonuc-kart .bg-sonuc-header {
    background: #f0fdf4;
    color: #166534;
}

.bg-sonuc-kart.bg-hata .bg-sonuc-header {
    background: #fef2f2;
    color: #991b1b;
}

.bg-sonuc-body {
    padding: 20px;
}

.bg-sonuc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.bg-sonuc-row:last-child {
    border-bottom: none;
}

.bg-sonuc-label {
    color: #64748b;
    font-weight: 500;
}

.bg-sonuc-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

/* Durum renkleri */
.bg-durum-aktif {
    color: #16a34a;
}

.bg-durum-bitti {
    color: #dc2626;
}

.bg-durum-iptal {
    color: #6b7280;
}

/* Kalan gün vurgusu */
.bg-kalan-gun {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.bg-kalan-gun.aktif {
    background: #dcfce7;
    color: #166534;
}

.bg-kalan-gun.bitti {
    background: #fee2e2;
    color: #991b1b;
}

/* Hata mesajı */
.bg-hata-mesaj {
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: #991b1b;
}

.bg-hata-mesaj a {
    display: inline-block;
    margin-top: 12px;
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.bg-hata-mesaj a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .bg-garanti-box {
        padding: 28px 20px;
    }

    .bg-garanti-form {
        flex-direction: column;
    }

    .bg-button {
        width: 100%;
    }

    .bg-sonuc-row {
        flex-direction: column;
        gap: 4px;
    }

    .bg-sonuc-value {
        text-align: left;
    }
}

/* =========================================================================
   Tema Entegrasyonu — Garanti Sorgulama Bölüm Stilleri
   ========================================================================= */

/* Garanti section padding */
.garanti-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.garanti-section .bg-garanti-wrap {
    max-width: 640px;
}

.garanti-section .bg-garanti-box {
    box-shadow: 0 8px 40px rgba(30, 64, 175, 0.08);
    border: 2px solid #e2e8f0;
}

.garanti-section .bg-garanti-box:hover {
    border-color: #1e40af;
}

/* Bilgi kartları */
.garanti-info {
    padding: 80px 0;
    background: #f8fafc;
}

.garanti-info .section-label {
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-align: center;
}

.garanti-info .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-align: center;
}

.garanti-info .section-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.info-card:hover {
    box-shadow: 0 16px 50px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e40af;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .garanti-info .section-title {
        font-size: 28px;
    }
}
