﻿.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    z-index: 9998;
    background: #1f1f1f;
    color: #f5f5f5;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    transition: bottom 0.35s ease-in-out;
    padding: 20px;
}

.cookie-consent-banner--visible {
    bottom: 0;
}

.cookie-consent-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-banner__text {
    flex: 1 1 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

    .cookie-consent-banner__text a {
        color: #8ab4ff;
        text-decoration: underline;
    }

.cookie-consent-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Reddet, Tercihleri Yönet ve Kabul Et butonları AYNI boyut/padding'i
   paylaşır - dark-pattern yasağına uyum için bilinçli tasarım kararı. */
.cookie-consent-btn {
   /* padding: 10px 20px;*/
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 140px;
}

.cookie-consent-btn--primary {
    background: #3b82f6;
    color: #ffffff;
}

    .cookie-consent-btn--primary:hover {
        background: #2563eb;
    }

.cookie-consent-btn--secondary {
    background: transparent;
    color: #f5f5f5;
    border-color: #6b7280;
}

    .cookie-consent-btn--secondary:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.cookie-preference-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-preference-modal--visible {
    display: flex;
}

.cookie-preference-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-preference-modal__panel {
    position: relative;
    background: #ffffff;
    color: #1f1f1f;
    max-width: 560px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-preference-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .cookie-preference-modal__header h2 {
        font-size: 18px;
        margin: 0;
    }

.cookie-preference-modal__close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.cookie-preference-category {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-preference-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-preference-category__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-preference-category__checkbox {
    width: 18px;
    height: 18px;
}

.cookie-preference-category__badge {
    font-size: 11px;
    text-transform: uppercase;
    color: #059669;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 999px;
}

.cookie-preference-category__description {
    margin: 6px 0 0 28px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.cookie-preference-modal__footer {
    margin-top: 16px;
    text-align: right;
}

@media (max-width: 640px) {
    .cookie-consent-banner__actions {
        width: 100%;
    }

    .cookie-consent-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}
