/* ==========================================================
    KVKK / Çerez Onay Bildirimi
   ----------------------------------------------------------
    markup : resources/views/partials/cerez-onay.blade.php
    davranış: localStorage'da karar saklanır (koz_cerez_onayi)

    Sitenin renk dili kullanıldı:
      lacivert #263043 (panel/footer zemini)
      altın   #b69d74 (birincil vurgu)

    Bildirim açıkken sol alttaki WhatsApp düğmesi yukarı kayar,
    aksi halde ikisi üst üste biner.
   ========================================================== */

.cerez-onay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;

    background: #263043;
    border-top: 2px solid #b69d74;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);

    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cerez-onay.acik {
    transform: translateY(0);
}

.cerez-onay-ic {
    max-width: 1260px;
    margin: 0 auto;
    padding: 18px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}

/* --- Metin tarafı --- */
.cerez-onay-metin {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 460px;
    min-width: 0;
}

.cerez-onay-ikon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(182, 157, 116, 0.14);
    color: #b69d74;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cerez-onay-baslik {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
}

.cerez-onay-aciklama {
    margin: 0;
    color: #d1d1d1;
    font-size: 14px;
    line-height: 1.6;
}

.cerez-onay-aciklama a {
    color: #b69d74;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cerez-onay-aciklama a:hover {
    color: #d4bd92;
}

/* --- Düğmeler --- */
.cerez-onay-dugmeler {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cerez-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 24px;
    border-radius: 3px;
    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* "KVKK Detayları" — ikincil */
.cerez-btn-detay {
    background: transparent;
    border-color: rgba(182, 157, 116, 0.65);
    color: #b69d74;
}

.cerez-btn-detay:hover {
    background: rgba(182, 157, 116, 0.12);
    border-color: #b69d74;
    color: #d4bd92;
}

/* "Okudum, Anladım" — birincil */
.cerez-btn-onay {
    background: #b69d74;
    border-color: #b69d74;
    color: #ffffff;
}

.cerez-btn-onay:hover {
    background: #9c8159;
    border-color: #9c8159;
    color: #ffffff;
}

.cerez-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* --- WhatsApp düğmesiyle çakışmayı önle ---
   Bildirimin yüksekliği ekran genişliğine göre değişir (mobilde
   düğmeler alt alta düşer), bu yüzden sabit px yerine JS'in ölçtüğü
   gerçek yükseklik kullanılır. Bkz. cerez-onay.blade.php */
.cerez-onay-aktif .whatsapp-support {
    bottom: calc(var(--cerez-yukseklik, 0px) + 20px);
}

/* --- Mobil --- */
@media (max-width: 991px) {
    .cerez-onay-ic {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cerez-onay-metin {
        flex: 1 1 auto;
    }

    .cerez-onay-dugmeler {
        justify-content: stretch;
    }

    .cerez-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .cerez-onay-ic {
        padding: 14px 16px;
        gap: 12px;
    }

    .cerez-onay-ikon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .cerez-onay-baslik {
        font-size: 15px;
        margin-bottom: 3px;
    }

    /* Uzun açıklama mobilde yüksekliği şişiriyor; 3 satırla sınırla */
    .cerez-onay-aciklama {
        font-size: 12.5px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cerez-onay-dugmeler {
        gap: 8px;
    }

    .cerez-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}