/**
 * IAescola — Cookie Consent Banner Styles
 * AEPD-compliant: 3 botons d'igual mida, color i posició
 */

#ia-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: #0a1929;
  color: #f5f5f4;
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 -8px 32px -8px rgba(0, 0, 0, 0.5);
  font-family: var(--font-inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  animation: ia-cc-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ia-cc-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #ia-cookie-banner { animation: none; }
}

.ia-cc-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.ia-cc-text { min-width: 0; }

.ia-cc-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  color: #f5f5f4;
}

.ia-cc-body {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 245, 244, 0.7);
  margin: 0;
}

.ia-cc-body strong { color: #f5f5f4; font-weight: 500; }

.ia-cc-body a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ia-cc-body a:hover { color: #fde68a; }

.ia-cc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* AEPD: 3 botons amb el MATEIX estil */
.ia-cc-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid rgba(245, 245, 244, 0.25);
  background: transparent;
  color: #f5f5f4;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
}

.ia-cc-btn:hover {
  background: rgba(245, 245, 244, 0.08);
  border-color: rgba(245, 245, 244, 0.45);
}

.ia-cc-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.ia-cc-btn:active { transform: scale(0.98); }

@media (max-width: 720px) {
  .ia-cc-inner {
    grid-template-columns: 1fr;
    padding: 20px 24px;
    gap: 18px;
  }
  .ia-cc-actions { flex-direction: column; width: 100%; }
  .ia-cc-btn { width: 100%; min-width: 0; }
}
