/* ===================================
   AMEDIS - Cookie Consent Banner
   Modal de Consentimento LGPD
   =================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: -300px;
    right: 2rem;
    z-index: 10000;
    max-width: 420px;
    width: calc(100% - 4rem);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(2, 129, 54, 0.1);
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
}

.cookie-consent-banner.active {
    bottom: 2rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookieBounce 2s ease-in-out infinite;
}

.cookie-icon svg {
    width: 28px;
    height: 28px;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.cookie-description {
    font-size: 0.8125rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
}

.cookie-link {
    color: var(--primary-green, #028136);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: var(--primary-green-light, #16a34a);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Ubuntu', sans-serif;
    flex: 1;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-green, #028136), var(--primary-green-light, #16a34a));
    color: white;
    box-shadow: 0 4px 12px rgba(2, 129, 54, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 129, 54, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn i {
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 640px) {
    .cookie-consent-banner {
        left: 1rem;
        right: 1rem;
        bottom: -300px;
        max-width: none;
        width: auto;
        padding: 1.25rem;
    }

    .cookie-consent-banner.active {
        bottom: 1rem;
    }

    .cookie-icon {
        width: 36px;
        height: 36px;
    }

    .cookie-icon svg {
        width: 24px;
        height: 24px;
    }

    .cookie-title {
        font-size: 0.9375rem;
    }

    .cookie-description {
        font-size: 0.75rem;
    }

    .cookie-btn {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
}

/* Força tema claro sempre */
.cookie-consent-banner {
    color-scheme: light;
}

.cookie-title {
    color: #111827 !important;
}

.cookie-description {
    color: #4b5563 !important;
}

/* Acessibilidade */
.cookie-consent-banner:focus-within {
    outline: 2px solid var(--primary-green, #028136);
    outline-offset: 4px;
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--primary-green-light, #16a34a);
    outline-offset: 2px;
}

/* Animação de pulso sutil no botão */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(2, 129, 54, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(2, 129, 54, 0.5);
    }
}

.cookie-btn-accept {
    animation: pulse 2s ease-in-out infinite;
}

.cookie-btn-accept:hover {
    animation: none;
}
