/* ===================================================
   Paket 3: Form Stilleri, Sticky Teklif ve Spinner (Kılıç BMW)
   =================================================== */

/* Dönen Spinner ve Yükleniyor Overlay */
.form-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(3px);
}

.form-spinner-box {
    background: #ffffff;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-spinner-circle {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #00b2ee;
    border-radius: 50%;
    animation: formSpin 0.9s linear infinite;
}

.form-spinnerText {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

@keyframes formSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bildirim Kutulari */
.form-inline-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.form-inline-alert.alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.form-inline-alert.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Sabit / Sticky Teklif Widget (Anasayfa & Urun Detay) */
.sabit-teklif-kapsayici {
    position: fixed;
    right: 20px;
    bottom: 75px;
    z-index: 9990;
    font-family: inherit;
}

/* Kucuk floating acma butonu */
.sabit-teklif-buton {
    background: linear-gradient(135deg, #00b2ee 0%, #0066b2 100%);
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 178, 238, 0.4);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    user-select: none;
}

.sabit-teklif-buton:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 178, 238, 0.55);
}

.sabit-teklif-buton i {
    font-size: 17px;
}

/* Sabit Teklif Paneli */
.sabit-teklif-panel {
    display: none;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: fadeInSlideUp 0.3s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sabit-teklif-baslik {
    background: #1e293b;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #00b2ee;
}

.sabit-teklif-baslik h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sabit-teklif-kapat {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.sabit-teklif-kapat:hover {
    color: #ffffff;
}

.sabit-teklif-govde {
    padding: 14px 16px 16px;
    max-height: 480px;
    overflow-y: auto;
}

.sabit-teklif-govde .form-group {
    margin-bottom: 9px;
}

.sabit-teklif-govde label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
    display: block;
}

.sabit-teklif-govde .form-control {
    font-size: 12px;
    height: 33px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.sabit-teklif-govde textarea.form-control {
    height: 52px;
    resize: none;
}

.sabit-teklif-govde .btn-teklif-gonder {
    background: #00b2ee;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    width: 100%;
    transition: background 0.2s;
    cursor: pointer;
}

.sabit-teklif-govde .btn-teklif-gonder:hover {
    background: #0099cc;
}

/* Ana Sayfa Bilgi Al Modal */
.bilgi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    z-index: 99995;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.bilgi-modal-kutu {
    width: 90%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fadeInSlideUp 0.3s ease;
}

.bilgi-modal-baslik {
    background: #1e293b;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #00b2ee;
}

.bilgi-modal-baslik h4 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.bilgi-modal-kapat {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.bilgi-modal-kapat:hover {
    color: #ffffff;
}

.bilgi-modal-govde {
    padding: 20px;
}

.bilgi-modal-govde .form-group {
    margin-bottom: 12px;
}

.bilgi-modal-govde label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: block;
}

.bilgi-modal-govde .btn-bilgi-gonder {
    background: #00b2ee;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    width: 100%;
    transition: background 0.2s;
    cursor: pointer;
}

.bilgi-modal-govde .btn-bilgi-gonder:hover {
    background: #0099cc;
}

/* Mobil Uyum */
@media (max-width: 767px) {
    .sabit-teklif-kapsayici {
        right: 15px;
        bottom: 122px;
    }
    .sabit-teklif-panel {
        width: calc(100vw - 24px);
        max-width: 320px;
        right: 0;
    }
}

/* KVKK CEREZ ONAY PANELI STILLERI */
.kvkk-cerez-kutu {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #1e242b;
    color: #f1f1f1;
    border: 1px solid #333d47;
    border-radius: 8px;
    padding: 15px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    z-index: 999999;
    font-size: 13.5px;
    line-height: 1.6;
    animation: kvkkFadeInUp 0.4s ease-out;
}
@keyframes kvkkFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.kvkk-cerez-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.kvkk-cerez-metin {
    flex: 1;
    min-width: 280px;
}
.kvkk-link {
    color: #00b2ee !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.kvkk-cerez-butonlar {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-kvkk-kabul {
    background: #00b2ee;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}
.btn-kvkk-kabul:hover {
    background: #0099cc;
}
.btn-kvkk-reddet {
    background: transparent;
    color: #bbb;
    border: 1px solid #555;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.btn-kvkk-reddet:hover {
    color: #fff;
    border-color: #888;
    background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 768px) {
    .kvkk-cerez-kutu {
        bottom: 70px;
        left: 10px;
        right: 10px;
        padding: 12px 16px;
    }
    .kvkk-cerez-icerik {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .kvkk-cerez-butonlar {
        justify-content: flex-end;
    }
}

/* MODERN CSS TICKER ANIMASYONU */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #000000;
    padding: 8px 0;
    box-sizing: border-box;
}
.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerAnim 35s linear infinite;
}
.ticker-move:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.ticker-item table {
    width: auto !important;
    display: inline-table !important;
}
.ticker-item img {
    max-height: 52px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
}
@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
