/* ═══════════════════════════════════════════════════════════
   NEBIRON — cookies.css
   GDPR Cookie Consent Banner — matches site cyber aesthetic
═══════════════════════════════════════════════════════════ */

/* ── BANNER CONTAINER ── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(92vw, 680px);
  max-width: calc(100vw - 2rem);
  z-index: 9000;
  opacity: 0;
  transition: transform .45s cubic-bezier(.23,1,.32,1), opacity .4s ease;
}

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

/* ── INNER CARD ── */
.cookie-inner {
  background: rgba(4, 8, 16, 0.97);
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 4px;
  padding: 2rem;
  backdrop-filter: blur(24px);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 30px rgba(0,245,255,0.06);
}

/* Top cyan accent line */
.cookie-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f5ff, rgba(168,85,247,0.8), transparent);
}

/* Corner accents */
.cookie-inner::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-top: 1px solid rgba(0,245,255,0.4);
  border-right: 1px solid rgba(0,245,255,0.4);
}

/* ── HEADER ── */
.cookie-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.cookie-icon {
  color: #00f5ff;
  font-size: 1rem;
}
.cookie-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: .78rem;
  color: #e8f4ff;
  letter-spacing: .12em;
}

/* ── TEXT ── */
.cookie-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  color: #4a6070;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.cookie-link {
  color: #00f5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,245,255,0.35);
  transition: text-decoration-color .2s;
}
.cookie-link:hover { text-decoration-color: #00f5ff; }

/* ── TOGGLES ── */
.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0,245,255,0.02);
  border: 1px solid rgba(0,245,255,0.06);
  border-radius: 3px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-toggle-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: #e8f4ff;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.cookie-toggle-desc {
  font-size: .78rem;
  color: #4a6070;
  line-height: 1.5;
}

/* ── SWITCH ── */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 11px;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  padding: 0;
  outline: none;
}
.cookie-switch:focus-visible {
  box-shadow: 0 0 0 2px rgba(0,245,255,0.4);
}
.cookie-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #4a6070;
  border-radius: 50%;
  transition: transform .3s, background .3s;
  pointer-events: none;
}
.cookie-switch--on {
  background: rgba(0,245,255,0.12);
  border-color: rgba(0,245,255,0.4);
}
.cookie-switch--on .cookie-switch-knob {
  transform: translateX(18px);
  background: #00f5ff;
  box-shadow: 0 0 8px rgba(0,245,255,0.6);
}
.cookie-switch--locked {
  cursor: not-allowed;
  opacity: .6;
}

/* ── ACTION BUTTONS ── */
.cookie-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cookie-btn--ghost {
  background: transparent;
  color: #4a6070;
  border-color: rgba(255,255,255,0.08);
}
.cookie-btn--ghost:hover { color: #c8d8e8; border-color: rgba(255,255,255,0.2); }

.cookie-btn--outline {
  background: transparent;
  color: #00f5ff;
  border-color: rgba(0,245,255,0.3);
}
.cookie-btn--outline:hover { border-color: #00f5ff; background: rgba(0,245,255,0.06); }

.cookie-btn--primary {
  background: #00f5ff;
  color: #020408;
  border-color: #00f5ff;
  box-shadow: 0 0 20px rgba(0,245,255,0.25);
  font-weight: 700;
}
.cookie-btn--primary:hover { background: #fff; box-shadow: 0 0 30px rgba(0,245,255,0.5); }

/* ── FOOTER NOTE ── */
.cookie-footer-note {
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: rgba(74,96,112,.6);
  letter-spacing: .06em;
}

/* ── FOOTER TRIGGER BUTTON ── */
#cookie-settings-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 8999;
  background: rgba(4,8,16,0.92);
  border: 1px solid rgba(0,245,255,0.15);
  color: #4a6070;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  padding: .45rem .85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s;
  backdrop-filter: blur(10px);
}
#cookie-settings-btn:hover {
  border-color: rgba(0,245,255,0.35);
  color: #00f5ff;
  box-shadow: 0 0 14px rgba(0,245,255,0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(120%);
    border-radius: 0;
  }
  #cookie-banner.cookie-banner--visible {
    transform: translateY(0);
  }
  .cookie-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.4rem 1.2rem;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn { width: 100%; text-align: center; }
  #cookie-settings-btn { bottom: .8rem; right: .8rem; }
}
