﻿/* === Genel Ayarlar === */
.cookie-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === Alt Bant Stilleri === */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #252e3d;
    color: #ffffff;
    padding: 15px 20px;
    z-index: 9999;
    display: none; /* JS ile gösterilecek */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

    #cookie-banner p {
        margin: 0;
        flex-grow: 1;
    }

    #cookie-banner a {
        color: #4a90e2;
        text-decoration: underline;
    }

    #cookie-banner .banner-buttons {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
    }

.banner-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#banner-accept-btn {
    background-color: #4CAF50;
    color: white;
}

#banner-settings-btn {
    background-color: #6c757d;
    color: white;
}

#banner-decline-btn {
    background-color: transparent;
    color: #ddd;
    border: 1px solid #ddd;
}


/* === Modal Panel Stilleri === */
#cookie-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none; /* JS ile gösterilecek */
    justify-content: center;
    align-items: center;
}

#cookie-modal {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.modal-body p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #555;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-option-info {
    flex-grow: 1;
    margin-right: 15px;
}

    .cookie-option-info strong {
        color: #34495e;
    }

    .cookie-option-info span {
        font-size: 13px;
        color: #777;
        display: block;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

input:disabled + .slider {
    background-color: #a0cda2;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#save-prefs-btn {
    background-color: #6c757d;
    color: white;
}

#accept-all-modal-btn {
    background-color: #28a745;
    color: white;
}
