/* Cookie Banner Styles */

* {
    box-sizing: border-box;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 900px;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
}

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

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #683A88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: #374151;
    line-height: 1.6;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
}

.privacy-link {
    color: #683A88;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-link:hover {
    border-bottom-color: #683A88;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 66px;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: inherit;
}

.btn:focus {
    outline: 2px solid #683A88;
    outline-offset: 2px;
}

.btn-primary {
    background: #683A88;
    color: white;
}

.btn-primary:hover {
    background: #532E6D;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

/* Modal de Personalização */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px 24px 0;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.category-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.active {
    background: #683A88;
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 1024px) {
    .cookie-banner {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        bottom: 15px;
        border-radius: 12px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .btn {
        flex: 1;
        min-width: 80px;
    }

    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header, 
    .modal-body, 
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        width: 94%;
        bottom: 10px;
        border-radius: 10px;
    }

    .cookie-content {
        padding: 16px;
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .cookie-text h3 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 10px;
        min-width: 70px;
        letter-spacing: 0.1px;
    }
}