/**
 * TubeLogic Cookie Consent - Red Cyberpunk Theme
 * Refined glassmorphism with neon red accents.
 */

:root {
  --tl-red: #dc2626;
  --tl-red-hover: #b91c1c;
  --tl-bg: rgba(15, 15, 15, 0.95);
  --tl-border: rgba(220, 38, 38, 0.3);
  --tl-text: #f1f1f1;
  --tl-text-muted: #aaaaaa;
}

#tl-cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--tl-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--tl-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 38, 38, 0.1);
  z-index: 10000;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tl-text);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}

#tl-cookie-banner.visible {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#tl-cookie-banner:not(.visible) {
  transform: translateX(-50%) translateY(20px);
}

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

.tl-cookie-icon {
  width: 2rem;
  height: 2rem;
  background: var(--tl-red);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-cookie-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
}

.tl-cookie-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tl-text-muted);
  margin-bottom: 2rem;
}

.tl-cookie-body b {
  color: #fff;
}

.tl-cookie-body a {
  color: var(--tl-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tl-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tl-btn {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
}

.tl-btn-primary {
  background: var(--tl-red);
  color: white;
  border-color: var(--tl-red);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.tl-btn-primary:hover {
  background: var(--tl-red-hover);
  transform: translateY(-1px);
}

.tl-btn-primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.4);
}

.tl-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

.tl-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tl-btn-secondary:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  #tl-cookie-banner {
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }
  
  .tl-cookie-actions {
    flex-direction: column;
  }
  
  .tl-btn {
    width: 100%;
    text-align: center;
  }
}
