/* Cookie Banner LGPD - Estilos */

/* Banner Principal */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--dark-card, #1a1a1a);
    border-top: 2px solid var(--accent, #e63946);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.cookie-banner-show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    color: var(--text-light, #ffffff);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-banner-text p {
    color: var(--text-gray, #9ca3af);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--accent, #e63946);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--accent-hover, #d62839);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Botões */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    color: white;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light, #ffffff);
    border: 2px solid rgba(230, 57, 70, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--accent, #e63946);
}

.cookie-btn-text {
    background: transparent;
    color: var(--text-gray, #9ca3af);
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: var(--text-light, #ffffff);
}

/* Modal de Configurações */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

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

.cookie-modal-content {
    background: var(--dark-card, #1a1a1a);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.cookie-modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    color: var(--text-light, #ffffff);
    font-size: 1.5rem;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-gray, #9ca3af);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent, #e63946);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-modal-body > p {
    color: var(--text-gray, #9ca3af);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-category {
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-category-header h3 {
    color: var(--text-light, #ffffff);
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
}

.cookie-category p {
    color: var(--text-gray, #9ca3af);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badges */
.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-badge-required {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.cookie-badge-optional {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Links */
.cookie-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    text-align: center;
}

.cookie-links a {
    color: var(--accent, #e63946);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-links a:hover {
    text-decoration: underline;
}

/* Footer do Modal */
.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsivo */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        margin: 1rem;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

/* Animações */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-show {
    animation: slideUp 0.3s ease;
}
