/* BuForm Cookie Consent Widget */
/* ==================== BANNER (ilk gorunum) ==================== */
.buform-cookie-banner {
    position: fixed;
    background: var(--bfc-bg, #ffffff);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    max-width: 480px;
    width: calc(100% - 32px);
    z-index: 999999;
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bfc-text, #1a1a1a);
    box-sizing: border-box;
}
.buform-cookie-banner *,
.buform-cookie-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Banner positions */
.buform-cookie-left {
    left: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.buform-cookie-left.buform-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

.buform-cookie-right {
    right: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.buform-cookie-right.buform-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

.buform-cookie-bottom-left {
    left: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.buform-cookie-bottom-left.buform-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

.buform-cookie-bottom-right {
    right: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.buform-cookie-bottom-right.buform-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tam genislik (bar) modu - pozisyondan bagimsiz, ekranin altina tam genislikte sabitlenir */
.buform-cookie-banner.buform-cookie-full-width {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
}
.buform-cookie-banner.buform-cookie-full-width .buform-cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
}
.buform-cookie-banner.buform-cookie-full-width .buform-cookie-banner-text {
    margin-bottom: 0;
    flex: 1 1 280px;
}
.buform-cookie-banner.buform-cookie-full-width .buform-cookie-banner-actions {
    flex: 0 0 auto;
}
.buform-cookie-banner.buform-cookie-full-width .buform-cookie-btn {
    flex: none;
}

/* Banner inner */
.buform-cookie-banner-inner {
    padding: 20px 22px;
}

.buform-cookie-banner-text {
    margin-bottom: 16px;
}
.buform-cookie-banner-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bfc-text, #1a1a1a);
    margin-bottom: 6px;
}
.buform-cookie-banner-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.buform-cookie-banner-text p a,
.buform-cookie-modal-desc a {
    color: var(--bfc-primary, #0d6efd);
    text-decoration: underline;
}

/* Banner buttons - tek satir */
.buform-cookie-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.buform-cookie-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}
.buform-cookie-btn:active {
    transform: scale(0.97);
}

.buform-cookie-btn-accept {
    background: var(--bfc-primary, #0d6efd);
    color: #fff;
}
.buform-cookie-btn-accept:hover {
    background: var(--bfc-primary-hover, #0b5ed7);
}

.buform-cookie-btn-reject {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}
.buform-cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.buform-cookie-btn-manage {
    background: transparent;
    color: var(--bfc-primary, #0d6efd);
    border: 1px solid var(--bfc-primary, #0d6efd);
}
.buform-cookie-btn-manage:hover {
    background: var(--bfc-primary, #0d6efd);
    color: #fff;
}

/* ==================== MODAL (yonetim popup) ==================== */
.buform-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.buform-cookie-overlay.buform-cookie-visible {
    opacity: 1;
    pointer-events: auto;
}

.buform-cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: var(--bfc-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 1000001;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bfc-text, #1a1a1a);
    box-sizing: border-box;
}
.buform-cookie-modal.buform-cookie-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.buform-cookie-modal-inner {
    padding: 28px;
}

/* Modal header */
.buform-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.buform-cookie-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bfc-text, #1a1a1a);
}
.buform-cookie-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.buform-cookie-modal-close:hover {
    color: #333;
}

.buform-cookie-modal-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Categories */
.buform-cookie-categories {
    margin-bottom: 24px;
}
.buform-cookie-category {
    padding: 14px 16px;
    background: var(--bfc-secondary-bg, #f8f9fa);
    border-radius: 10px;
    border: 1px solid var(--bfc-border, #eee);
    margin-bottom: 8px;
}
.buform-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.buform-cookie-category-info {
    flex: 1;
    min-width: 0;
}
.buform-cookie-category-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--bfc-text, #1a1a1a);
}
.buform-cookie-required-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    background: var(--bfc-primary, #0d6efd);
    color: #fff;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.buform-cookie-category-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* Toggle Switch - kompakt */
.buform-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}
.buform-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.buform-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    transition: background 0.25s;
}
.buform-cookie-toggle-slider:before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.buform-cookie-toggle input:checked + .buform-cookie-toggle-slider {
    background: var(--bfc-primary, #0d6efd);
}
.buform-cookie-toggle input:checked + .buform-cookie-toggle-slider:before {
    transform: translateX(18px);
}
.buform-cookie-toggle input:disabled + .buform-cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal actions */
.buform-cookie-modal-actions {
    display: flex;
    gap: 8px;
}
.buform-cookie-modal-actions .buform-cookie-btn {
    flex: 1;
}

.buform-cookie-btn-save {
    background: var(--bfc-primary, #0d6efd);
    color: #fff;
}
.buform-cookie-btn-save:hover {
    background: var(--bfc-primary-hover, #0b5ed7);
}

/* Modal footer */
.buform-cookie-modal-footer {
    text-align: center;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--bfc-border, #f0f0f0);
}
.buform-cookie-modal-footer small {
    color: #ccc;
    font-size: 10px;
}
.buform-cookie-modal-footer a {
    color: #bbb;
    text-decoration: none;
}

/* ==================== REOPEN BUTTON ==================== */
.buform-cookie-reopen {
    position: fixed;
    z-index: 999997;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bfc-primary, #0d6efd);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 18px;
}
.buform-cookie-reopen:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.buform-cookie-reopen-left { left: 16px; bottom: 16px; }
.buform-cookie-reopen-right { right: 16px; bottom: 16px; }
.buform-cookie-reopen-bottom-left { left: 16px; bottom: 16px; }
.buform-cookie-reopen-bottom-right { right: 16px; bottom: 16px; }

/* ==================== SCROLLBAR ==================== */
.buform-cookie-modal::-webkit-scrollbar { width: 5px; }
.buform-cookie-modal::-webkit-scrollbar-track { background: transparent; }
.buform-cookie-modal::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ==================== MOBILE ==================== */
@media (max-width: 480px) {
    .buform-cookie-banner {
        max-width: none;
        width: calc(100% - 16px);
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
    }
    .buform-cookie-banner-inner {
        padding: 16px;
    }
    .buform-cookie-banner-actions {
        flex-wrap: wrap;
    }
    .buform-cookie-banner-actions .buform-cookie-btn {
        flex: 1 1 calc(50% - 4px);
    }
    .buform-cookie-banner.buform-cookie-full-width {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        border-radius: 14px 14px 0 0;
    }
    .buform-cookie-banner.buform-cookie-full-width .buform-cookie-banner-actions {
        width: 100%;
    }
    .buform-cookie-modal {
        max-width: none;
        width: calc(100% - 16px);
        max-height: calc(100vh - 24px);
    }
    .buform-cookie-modal-inner {
        padding: 20px;
    }
}

/* ==================== TEMALAR ==================== */

/* Modern (varsayılan) – yuvarlak köşe, zengin gölge, canlı renk */
.bfc-theme-modern.buform-cookie-banner,
.bfc-theme-modern.buform-cookie-modal {
    border-radius: 14px;
}

/* Minimal – düz, az gölge, küçük köşeler */
.bfc-theme-minimal.buform-cookie-banner,
.bfc-theme-minimal.buform-cookie-modal {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--bfc-border, #e0e0e0);
}
.bfc-theme-minimal .buform-cookie-btn {
    border-radius: 4px;
    font-weight: 500;
}
.bfc-theme-minimal .buform-cookie-btn-accept {
    background: var(--bfc-primary, #333333);
    color: #fff;
}
.bfc-theme-minimal .buform-cookie-btn-accept:hover {
    background: var(--bfc-primary-hover, #111111);
}
.bfc-theme-minimal .buform-cookie-btn-manage {
    color: #555;
    border-color: #bbb;
}
.bfc-theme-minimal .buform-cookie-category {
    border-radius: 4px;
}
.bfc-theme-minimal .buform-cookie-toggle input:checked + .buform-cookie-toggle-slider {
    background: var(--bfc-primary, #333333);
}
.bfc-theme-minimal .buform-cookie-required-badge {
    background: #555;
}

/* Classic – köşeli, belirgin kenarlık, koyu başlık */
.bfc-theme-classic.buform-cookie-banner,
.bfc-theme-classic.buform-cookie-modal {
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2px solid #222;
}
.bfc-theme-classic .buform-cookie-banner-text h3,
.bfc-theme-classic .buform-cookie-modal-header h3 {
    font-family: Georgia, serif;
    letter-spacing: -0.3px;
}
.bfc-theme-classic .buform-cookie-btn {
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12px;
}
.bfc-theme-classic .buform-cookie-btn-accept {
    background: var(--bfc-primary, #1a1a1a);
    color: #fff;
}
.bfc-theme-classic .buform-cookie-btn-accept:hover {
    background: var(--bfc-primary-hover, #333);
}
.bfc-theme-classic .buform-cookie-btn-manage {
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}
.bfc-theme-classic .buform-cookie-btn-manage:hover {
    background: #1a1a1a;
    color: #fff;
}
.bfc-theme-classic .buform-cookie-category {
    border-radius: 0;
    border: 1px solid #ccc;
}
.bfc-theme-classic .buform-cookie-modal-header {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.bfc-theme-classic .buform-cookie-toggle input:checked + .buform-cookie-toggle-slider {
    background: var(--bfc-primary, #1a1a1a);
}
.bfc-theme-classic .buform-cookie-required-badge {
    background: #1a1a1a;
    border-radius: 0;
}
