/* ══════════════════════════════════════════════════════════
   cookie-consent.css — ARFF BDJ Platform
   Cookie Banner dark glassmorphism
═══════════════════════════════════════════════════════════ */

/* ── Banner wrapper ──────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  z-index: 9999;
  width: min(680px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.35s ease;
}

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

#cookie-banner.cookie-banner--hiding {
  transform: translateX(-50%) translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

/* ── Card ────────────────────────────────────────────────── */
.cookie-card {
  background: rgba(20, 28, 43, 0.92);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1.5px solid rgba(58, 190, 204, 0.22);
  border-radius: 18px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(58, 190, 204, 0.15) inset;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* Accent line kiri */
.cookie-card::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, #3ABECC, #4a90d9);
  border-radius: 0 3px 3px 0;
}

/* ── Icon ────────────────────────────────────────────────── */
.cookie-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(58, 190, 204, 0.12);
  border: 1.5px solid rgba(58, 190, 204, 0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #3ABECC;
}

/* ── Body ────────────────────────────────────────────────── */
.cookie-body {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(58, 190, 204, 0.15);
  color: #3ABECC;
  border: 1px solid rgba(58, 190, 204, 0.3);
  letter-spacing: 0.3px;
}

.cookie-desc {
  font-size: 0.8rem;
  color: #8a9bb5;
  line-height: 1.5;
  margin-bottom: 14px;
}

.cookie-desc a {
  color: #3ABECC;
  text-decoration: underline;
  text-decoration-color: rgba(58, 190, 204, 0.4);
  text-underline-offset: 2px;
}
.cookie-desc a:hover { text-decoration-color: #3ABECC; }

/* ── Actions ─────────────────────────────────────────────── */
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
  white-space: nowrap;
}
.cookie-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cookie-btn--accept {
  background: linear-gradient(135deg, #3ABECC, #2aa8b5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 190, 204, 0.3);
}
.cookie-btn--accept:hover {
  box-shadow: 0 6px 20px rgba(58, 190, 204, 0.45);
}

.cookie-btn--decline {
  background: rgba(255, 255, 255, 0.05);
  color: #8a9bb5;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
}
.cookie-btn--decline:hover {
  color: #e8edf5;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  #cookie-banner {
    bottom: 16px;
    width: calc(100vw - 24px);
  }

  .cookie-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
  }

  .cookie-icon {
    width: 36px; height: 36px;
    font-size: 1rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
  }
}
