﻿/* ========== ÇEREZ BANNER (FOOTER) ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw; /* Sayfa genişliğini tam kaplaması için */
    background-color: rgba(0, 0, 0, 0.75); /* Transparanlık artırıldı */
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999999;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
}

    /* Çerez Bannerı Metni */
    .cookie-banner p {
        margin: 0;
        padding: 0 15px;
        max-width: 90%;
        font-size: 13px;
        line-height: 1.5;
    }

    .cookie-banner a {
        color: #FFD700;
        text-decoration: underline;
        font-weight: bold;
    }

/* Çerez Bannerı Butonları */
.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

    /* Buton Stilleri */
    .cookie-buttons button {
        border: none;
        padding: 10px 6px;
        cursor: pointer;
        font-size: 12px;
        border-radius: 5px;
        font-weight: bold;
        text-transform: uppercase;
        min-width: 140px;
        flex: 1;
        max-width: 260px;
    }

/* Yeşil - Tüm Çerezleri Kabul Et */
.accept {
    background-color: #4CAF50;
    color: white;
}

    .accept:hover {
        background-color: #45A049;
    }

/* Gri - Çerez Ayarları */
.settings {
    background-color: #6C757D;
    color: white;
}

    .settings:hover {
        background-color: #5A6268;
    }

/* Kırmızı - Kabul Etmiyorum */
.reject {
    background-color: #D9534F;
    color: white;
}

    .reject:hover {
        background-color: #C9302C;
    }

/* ========== ÇEREZ AYARLARI POP-UP ========== */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.95); /* Transparanlık artırıldı */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    z-index: 100000;
    text-align: left;
    font-family: Arial, sans-serif;
}

/* Pop-up İçeriği */
.popup-content {
    padding: 10px;
}

/* Başlık */
.popup h2 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

/* Açıklamalar */
.popup p {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #555;
    text-align: center;
}

/* Çerez Seçenekleri */
.cookie-option {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    width: 100%;
}

    /* Checkbox */
    .cookie-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #4CAF50;
    }

    /* Başlık */
    .cookie-option label {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        flex-grow: 1;
        cursor: pointer;
    }

        /* Açıklama */
        .cookie-option label strong {
            font-weight: bold;
            display: block;
            margin-bottom: 2px;
        }

    .cookie-option label {
        font-size: 12px;
        color: #666;
        line-height: 1.3;
    }

/* Kapatma Butonu */
.popup .close-popup {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    font-weight: bold;
    border: none;
    background: none;
}

    .popup .close-popup:hover {
        color: red;
    }

/* Kaydet Butonu */
.save-settings {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

    .save-settings:hover {
        background-color: #45A049;
    }

/* ========== MOBİL UYUMLULUK ========== */
@media (max-width: 600px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

        .cookie-buttons button {
            width: 100%;
            max-width: 90%;
            text-align: center;
        }

    .popup {
        max-width: 95%;
        padding: 15px;
    }

        .popup h2 {
            font-size: 15px;
        }

        .popup p, .popup ul {
            font-size: 12px;
        }

    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
}
