﻿/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

    .cookie-banner.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.cookie-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.cookie-description {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.cookie-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-accept-all {
    background: #27ae60;
    color: white;
}

    .btn-accept-all:hover {
        background: #2ecc71;
        transform: translateY(-2px);
    }

.btn-settings {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

    .btn-settings:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.6);
    }

.btn-reject {
    background: #e74c3c;
    color: white;
}

    .btn-reject:hover {
        background: #c0392b;
    }

/* Settings Modal */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

    .cookie-settings-overlay.show {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

.cookie-settings-modal {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-overlay.show .cookie-settings-modal {
    transform: scale(1);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: #2c3e50;
    }

.modal-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

    .cookie-category:hover {
        border-color: #3498db;
    }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.category-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .toggle-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: 0.4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #3498db;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.slider.disabled {
    background-color: #27ae60;
    cursor: not-allowed;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        justify-content: center;
        margin-bottom: 5px;
    }

    .cookie-settings-modal {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .category-title {
        font-size: 14px;
    }

    .category-description {
        font-size: 13px;
    }
}

/* Smooth scrollbar pre modal */
.cookie-settings-modal::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cookie-settings-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    .cookie-settings-modal::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
