/* Cookie Banner Styles - LSSI-CE/ePrivacy Compliant */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner__icon {
    font-size: 24px;
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.cookie-banner__text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner__text a:hover {
    opacity: 0.8;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner__button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-banner__button--accept {
    background: white;
    color: #667eea;
}

.cookie-banner__button--accept:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner__button--reject {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cookie-banner__button--reject:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cookie-banner__button--settings {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-banner__button--settings:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-modal__content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-modal__header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cookie-settings-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-settings-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-settings-modal__body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-category__description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background-color: #667eea;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-modal__footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-settings-modal__button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-modal__button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-settings-modal__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-settings-modal__button--secondary {
    background: #f0f0f0;
    color: #333;
}

.cookie-settings-modal__button--secondary:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner__container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner__actions {
        flex-direction: column;
    }
    
    .cookie-banner__button {
        width: 100%;
        text-align: center;
    }
    
    .cookie-settings-modal__footer {
        flex-direction: column;
    }
    
    .cookie-settings-modal__button {
        width: 100%;
    }
}
