/* ==============================================
   Creatorz Cookie Consent — Banner Styles
   ============================================== */
:root {
  --ccc-accent: #c9a84c;
  --ccc-bg:     #0a1628;
  --ccc-text:   #f0e8d0;
  --ccc-radius: 16px;
  --ccc-shadow: 0 8px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.3);
  --ccc-ease:   cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Overlay ---------- */
.ccc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ccc-ease);
}
.ccc-overlay.ccc-show {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Banner ---------- */
.ccc-banner {
  position: fixed;
  z-index: 999999;
  background: var(--ccc-bg);
  color: var(--ccc-text);
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: var(--ccc-radius);
  box-shadow: var(--ccc-shadow);
  max-width: 620px;
  width: calc(100% - 32px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: transform 0.5s var(--ccc-ease), opacity 0.5s var(--ccc-ease);
  will-change: transform, opacity;
}

/* Positions */
.ccc-pos-bottom        { bottom: 20px; left: 50%; transform: translateX(-50%) translateY(110%); }
.ccc-pos-top           { top: 20px;    left: 50%; transform: translateX(-50%) translateY(-110%); }
.ccc-pos-bottom-left   { bottom: 20px; left: 16px; transform: translateY(110%); }
.ccc-pos-bottom-right  { bottom: 20px; right: 16px; transform: translateY(110%); }

/* Visible state */
.ccc-banner.ccc-visible.ccc-pos-bottom,
.ccc-banner.ccc-visible.ccc-pos-top {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ccc-banner.ccc-visible.ccc-pos-bottom-left,
.ccc-banner.ccc-visible.ccc-pos-bottom-right {
  transform: translateY(0);
  opacity: 1;
}

/* Hidden (dismissed) */
.ccc-banner.ccc-hide {
  opacity: 0 !important;
  pointer-events: none !important;
}
.ccc-banner.ccc-hide.ccc-pos-bottom,
.ccc-banner.ccc-hide.ccc-pos-top {
  transform: translateX(-50%) translateY(110%) !important;
}
.ccc-banner.ccc-hide.ccc-pos-bottom-left,
.ccc-banner.ccc-hide.ccc-pos-bottom-right {
  transform: translateY(110%) !important;
}

/* ---------- Inner ---------- */
.ccc-inner {
  padding: 24px 28px 18px;
}

/* ---------- Header ---------- */
.ccc-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ccc-logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  flex-shrink: 0;
  animation: ccc-pulse 3s ease-in-out infinite;
}

@keyframes ccc-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.ccc-shield { font-size: 22px; line-height: 1; }
.ccc-logo-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ccc-accent);
}

.ccc-title-wrap { flex: 1; }

.ccc-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ccc-accent) !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.3 !important;
}

.ccc-message {
  font-size: 13px;
  color: rgba(240,232,208,0.85);
  margin: 0 0 8px;
  line-height: 1.65;
}

.ccc-policy-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ccc-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(201,168,76,0.45);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.ccc-policy-link:hover { border-bottom-style: solid; color: #f5e6b8; }

/* ---------- Preferences Panel ---------- */
.ccc-prefs {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ccc-ease), opacity 0.35s ease;
  opacity: 0;
}
.ccc-prefs.ccc-prefs-open {
  max-height: 400px;
  opacity: 1;
}

.ccc-prefs-inner {
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
}

.ccc-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background 0.2s;
}
.ccc-pref-item:last-child { border-bottom: none; }
.ccc-pref-item:hover { background: rgba(201,168,76,0.05); }

.ccc-pref-required { opacity: 0.75; }

.ccc-pref-info { flex: 1; }
.ccc-pref-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ccc-text);
  margin-bottom: 2px;
}
.ccc-pref-info span {
  font-size: 11.5px;
  color: rgba(240,232,208,0.6);
  line-height: 1.4;
}

/* Toggle Switch */
.ccc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.ccc-toggle input { opacity: 0; width: 0; height: 0; }
.ccc-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.ccc-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--ccc-ease);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.ccc-toggle input:checked + .ccc-slider { background: var(--ccc-accent); border-color: var(--ccc-accent); }
.ccc-toggle input:checked + .ccc-slider::before { transform: translateX(20px); }
.ccc-toggle-disabled .ccc-slider { cursor: not-allowed; background: rgba(201,168,76,0.5); border-color: transparent; }

/* ---------- Action Buttons ---------- */
.ccc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ccc-btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ccc-ease);
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.ccc-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.ccc-btn:hover::after { background: rgba(255,255,255,0.08); }
.ccc-btn:active { transform: scale(0.97); }

/* Primary — Accept */
.ccc-btn-primary {
  background: linear-gradient(135deg, var(--ccc-accent), #e8c96e);
  color: #0a1628;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.ccc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.55);
}

/* Secondary — Reject */
.ccc-btn-secondary {
  background: transparent;
  color: var(--ccc-text);
  border-color: rgba(240,232,208,0.3);
}
.ccc-btn-secondary:hover {
  border-color: rgba(240,232,208,0.65);
  background: rgba(255,255,255,0.06);
}

/* Outline — Manage */
.ccc-btn-outline {
  background: transparent;
  color: var(--ccc-accent);
  border-color: rgba(201,168,76,0.4);
}
.ccc-btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--ccc-accent);
}

/* ---------- Footer Note ---------- */
.ccc-footer-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(240,232,208,0.4);
  padding-top: 10px;
  border-top: 1px solid rgba(201,168,76,0.12);
  flex-wrap: wrap;
  gap: 6px;
}
.ccc-footer-note a { color: var(--ccc-accent); text-decoration: none; }
.ccc-footer-note a:hover { text-decoration: underline; }

/* ---------- Reopen Button ---------- */
.ccc-reopen {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ccc-bg, #0a1628), #1a3560);
  border: 2px solid rgba(201,168,76,0.5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 0 0 rgba(201,168,76,0.3);
  transition: all 0.3s var(--ccc-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  pointer-events: none;
}
.ccc-reopen.ccc-reopen-show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: all;
  animation: ccc-bounce-in 0.5s var(--ccc-ease);
}
.ccc-reopen:hover {
  transform: scale(1.12) rotate(10deg);
  border-color: var(--ccc-accent, #c9a84c);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 6px rgba(201,168,76,0.12);
}

@keyframes ccc-bounce-in {
  0%   { transform: scale(0.4) rotate(-30deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(5deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* ---------- Shimmer on first load ---------- */
@keyframes ccc-shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .ccc-banner {
    width: calc(100% - 24px);
    left: 12px !important;
    right: 12px !important;
    transform: translateX(0) translateY(110%) !important;
    border-radius: 12px;
  }
  .ccc-banner.ccc-visible {
    transform: translateX(0) translateY(0) !important;
  }
  .ccc-banner.ccc-hide {
    transform: translateX(0) translateY(120%) !important;
  }
  .ccc-inner { padding: 18px 16px 14px; }
  .ccc-header { flex-direction: column; gap: 10px; }
  .ccc-logo-badge { flex-direction: row; align-self: flex-start; }
  .ccc-actions { flex-direction: column; }
  .ccc-btn { min-width: unset; width: 100%; }
  .ccc-btn-primary { order: -1; }
  .ccc-title { font-size: 15px !important; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .ccc-banner { max-width: 540px; }
  .ccc-btn { min-width: 100px; }
}
