/* ============================================
   COOKIE CONSENT BANNER - GDPR
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(14, 14, 24, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

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

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn--accept {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: #fff;
}

.cookie-btn--accept:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.cookie-btn--necessary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.cookie-btn--necessary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.cookie-btn--customize {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.cookie-btn--customize:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

/* === CUSTOMIZE PANEL === */
.cookie-customize-panel {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.cookie-customize-panel.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-info h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cookie-category-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--neon-purple);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
  background: var(--neon-purple);
}

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

.cookie-save-prefs {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px;
  }

  .cookie-banner {
    padding: 24px 16px;
  }
}
