/**
 * Cookie Consent Banner Styles - Portal de Concursos Policon
 * Conformidade LGPD/GDPR
 */

/* Banner Principal */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #007bff;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner.hide {
    transform: translateY(100%);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-consent-text h5 i {
    color: #ffc107;
    margin-right: 8px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e8f4fd;
}

.cookie-consent-text a {
    color: #87ceeb;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #b3d9f2;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.cookie-consent-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.cookie-consent-actions .btn-success {
    background: #28a745;
    border: none;
    color: white;
}

.cookie-consent-actions .btn-success:hover {
    background: #218838;
}

.cookie-consent-actions .btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.cookie-consent-actions .btn-outline-light:hover {
    background: #ffffff;
    color: #1e3c72;
    border-color: #ffffff;
}

/* Notificação */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
    animation: slideInRight 0.4s ease;
}

.cookie-notification .alert {
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
}

.cookie-notification .alert i {
    margin-right: 8px;
}

.cookie-notification .alert-success {
    background: #d4edda;
    color: #155724;
}

.cookie-notification .alert-info {
    background: #cce7ff;
    color: #004085;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px 0;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-consent-actions .btn {
        flex: 1;
        max-width: 140px;
    }
    
    .cookie-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px 0;
    }
    
    .cookie-consent-text h5 {
        font-size: 1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
        max-width: none;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

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

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

/* Estados de foco para acessibilidade */
.cookie-consent-actions .btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Estilo para links no banner */
.cookie-consent-text a:focus {
    outline: 2px solid #ffc107;
    outline-offset: 1px;
    border-radius: 2px;
}

/* Melhorias visuais */
.cookie-consent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #28a745 50%, #ffc107 100%);
}

/* Efeito hover nos botões */
.cookie-consent-actions .btn {
    position: relative;
    overflow: hidden;
}

.cookie-consent-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-consent-actions .btn:hover::before {
    left: 100%;
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000000;
        border-top: 5px solid #ffffff;
    }
    
    .cookie-consent-text {
        color: #ffffff;
    }
    
    .cookie-consent-text a {
        color: #ffff00;
    }
    
    .cookie-consent-actions .btn-success {
        background: #00ff00;
        color: #000000;
    }
    
    .cookie-consent-actions .btn-outline-light {
        border-color: #ffffff;
        color: #ffffff;
    }
}

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-actions .btn,
    .cookie-notification {
        transition: none;
        animation: none;
    }
    
    .cookie-consent-actions .btn:hover {
        transform: none;
    }
}