/* gdpr-consent.css */
/* Kilitlemeyen, okunabilir GDPR banner + modal + floating button */

/* === BANNER (alt kısım) === */

.gdpr-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: 960px;
    width: calc(100% - 32px);
    background: #ffffff;
    color: #111827; /* daha koyu metin */
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    border-radius: 10px;
    padding: 14px 16px;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: none;
}

.gdpr-banner.gdpr-banner--visible {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gdpr-banner__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #0f172a;
}

.gdpr-banner__text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: #111827;
}

.gdpr-banner__link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}

.gdpr-banner__link:hover {
    text-decoration: none;
}

.gdpr-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.gdpr-btn {
    flex: 1 1 120px;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    color: #111827;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gdpr-btn:hover {
    box-shadow: 0 1px 3px rgba(15,23,42,0.2);
}

.gdpr-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.gdpr-btn--accept {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.gdpr-btn--accept:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.gdpr-btn--reject {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.gdpr-btn--customize {
    background: #ffffff;
    border-color: #cbd5e1;
}

/* === MODAL (orta kısım) === */

.gdpr-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* Arka planı daha az karart: */
    background: rgba(0,0,0,0.28);
}

.gdpr-modal.gdpr-modal--visible {
    display: flex;
}

.gdpr-modal__content {
    background: #ffffff;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: calc(100% - 80px);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.45);
    overflow: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.gdpr-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gdpr-modal__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.gdpr-modal__close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #4b5563;
}

.gdpr-modal__close:hover {
    color: #111827;
}

.gdpr-modal__body {
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
}

/* Kategori kutuları */

.gdpr-category {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
    background: #f9fafb;
}

.gdpr-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gdpr-category__title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.gdpr-category__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #111827;
}

/* Toggle switch */

.gdpr-switch {
    position: relative;
    width: 36px;
    height: 18px;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.gdpr-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(15,23,42,0.35);
}

.gdpr-switch--on {
    background: #22c55e;
}

.gdpr-switch--on::after {
    transform: translateX(16px);
}

.gdpr-category__description {
    margin-top: 6px;
    font-size: 13px;
    color: #374151;
}

/* Modal footer butonları */

.gdpr-modal__footer {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.gdpr-modal__footer .gdpr-btn {
    flex: 0 0 auto;
}

/* === Floating “Gizlilik Tercihleri” butonu === */

.gdpr-floating-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15,23,42,0.32);
    z-index: 9990;
    display: none;
}

.gdpr-floating-btn.gdpr-floating-btn--visible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gdpr-floating-btn__icon {
    font-size: 14px;
}

/* Mobile tweaks */

@media (max-width: 600px) {
    .gdpr-banner {
        bottom: 8px;
        padding: 12px 14px;
    }
    .gdpr-banner__buttons {
        flex-direction: column;
    }
    .gdpr-modal__content {
        padding: 16px 14px;
    }
}
