/* ============================================
   COOKIES & PRIVACY BANNER STYLES
   ============================================ */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to left, #4d3973, #4d3973, #808c37);
    color: #fff;
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 250px;
}

.cookie-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-content a {
    color: #4d9fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 300px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #7c853d;
    color: #fff;
}

.cookie-btn-accept:hover {
    background-color: #3a2a5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 56, 115, 0.3);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.cookie-btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #4d9fff;
    color: #4d9fff;
}

.cookie-btn-reject {
    background-color: transparent;
    color: #fff;
    border: 1px solid #999;
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #333;
}

.cookie-option {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-option-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4c3873;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-option-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cookie-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    justify-content: flex-end;
}

.cookie-modal-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-modal-btn-save {
    background-color: #4c3873;
    color: #fff;
}

.cookie-modal-btn-save:hover {
    background-color: #3a2a5b;
    transform: translateY(-2px);
}

.cookie-modal-btn-reject {
    background-color: #f0f0f0;
    color: #333;
}

.cookie-modal-btn-reject:hover {
    background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-modal-content {
        padding: 25px;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content h3 {
        font-size: 16px;
        color: #fff;
    }
    
    .cookie-content p {
        font-size: 13px;
    }
    
    .cookie-buttons {
        min-width: auto;
        width: 100%;
    }
    
    .cookie-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .cookie-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .cookie-modal-header h2 {
        font-size: 20px;
    }
}
