/* ============================================================
   Mythea Cookie Consent Theme
   Hosted at cdn.mythea.com/klaro/klaro-mythea.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap');

/* ── Game CSS isolation — prevents mythea3.css / auth CSS bleeding in ── */

/* Reset link styling inside all Klaro UI */
.klaro a,
.klaro a:link,
.klaro a:visited {
  color: var(--gold);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline;
  font-size: inherit;
}

/* Reset input styling inside Klaro (game CSS sets gray backgrounds on all inputs) */
.klaro input,
.klaro input[type="checkbox"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: content-box !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* ── Variables ─────────────────────────────────────────────── */
.klaro {
  --gold:          #d4af37;
  --gold-light:    #e6c547;
  --gold-dim:      rgba(212,175,55,0.2);
  --gold-glow:     rgba(212,175,55,0.12);
  --bg:            rgba(10,10,10,0.97);
  --glass:         rgba(18,18,18,0.96);
  --surface:       rgba(255,255,255,0.04);
  --border:        rgba(212,175,55,0.18);
  --text-primary:  #f0f0f0;
  --text-secondary:#b0b0b0;
  --text-muted:    #666666;
  --font-heading:  'Cinzel', Georgia, serif;
  --font-body:     'Crimson Text', Georgia, serif;
  --radius:        12px;
  font-family:     var(--font-body);
  font-size:       16px;
}

/* ── Cookie Notice (the bottom bar) ───────────────────────── */
.klaro .cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  z-index: 9999;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 0 40px rgba(212,175,55,0.08),
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0;
  overflow: hidden;
}

/* Gold top accent line */
.klaro .cookie-notice::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.klaro .cookie-notice .cn-body {
  padding: 20px 24px 24px;
}

.klaro .cookie-notice .cn-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  display: block;
}

.klaro .cookie-notice p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.klaro .cookie-notice .cn-learn-more {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.klaro .cookie-notice .cn-learn-more a,
.klaro .cookie-notice a,
.klaro .cookie-modal a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}

.klaro .cookie-notice .cn-learn-more a:hover,
.klaro .cookie-notice a:hover,
.klaro .cookie-modal a:hover {
  border-color: var(--gold);
}

.klaro .cookie-notice .cn-ok {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}

/* ── Cookie Modal (full preferences) ──────────────────────── */
.klaro .cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.klaro .cookie-modal .cm-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.8);
}

.klaro .cookie-modal .cm-modal {
  position: relative;
  z-index: 10;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 0 60px rgba(212,175,55,0.1),
    0 24px 80px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.07);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Gold top accent line */
.klaro .cookie-modal .cm-modal::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  flex-shrink: 0;
}

.klaro .cookie-modal .cm-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.klaro .cookie-modal .cm-header h1,
.klaro .cookie-modal .cm-header .title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 8px;
}

.klaro .cookie-modal .cm-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.klaro .cookie-modal .cm-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar {
  width: 4px;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-track {
  background: transparent;
}

.klaro .cookie-modal .cm-body::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 2px;
}

/* ── Service list items ────────────────────────────────────── */
.klaro .cookie-modal ul.cm-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.klaro .cookie-modal li.cm-list-item {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.klaro .cookie-modal li.cm-list-item:hover {
  border-color: var(--gold-dim);
}

.klaro .cookie-modal li.cm-list-item.cm-toggle-all {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
}

.klaro .cookie-modal .cm-list-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.klaro .cookie-modal .cm-list-title,
.klaro .cookie-modal .cm-list-label-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex: 1;
}

.klaro .cookie-modal .cm-list-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 8px 0 0 0;
  padding-left: 0;
}

/* ── Toggle switch ─────────────────────────────────────────── */
.klaro .cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.klaro .cookie-modal .switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.klaro .cookie-modal .slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.klaro .cookie-modal .slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #888;
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.klaro .cookie-modal input:checked + .slider {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
}

.klaro .cookie-modal input:checked + .slider::before {
  transform: translateX(20px);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,0.5);
}

/* Disabled / required toggle */
.klaro .cookie-modal input:disabled + .slider {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

.klaro .cookie-modal input:disabled:checked + .slider::before {
  background: var(--gold);
  transform: translateX(20px);
}

/* ── Footer ────────────────────────────────────────────────── */
.klaro .cookie-modal .cm-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.klaro .cookie-modal .cm-footer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.klaro .cookie-modal .cm-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.klaro .cookie-modal .cm-footer a,
.klaro .cookie-modal .cm-powered-by a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
}

.klaro .cookie-modal .cm-powered-by {
  display: none;
}

/* ── Buttons ───────────────────────────────────────────────── */
.klaro .cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

/* Accept All — gold filled */
.klaro .cm-btn.cm-btn-success {
  background: linear-gradient(135deg, #e6c547, #d4af37, #b8941e);
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(212,175,55,0.25);
}

.klaro .cm-btn.cm-btn-success:hover {
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  filter: brightness(1.08);
}

/* Decline All — ghost */
.klaro .cm-btn.cm-btn-decline {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.12);
}

.klaro .cm-btn.cm-btn-decline:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text-secondary);
}

/* Cookie Settings / Info — subtle gold ghost */
.klaro .cm-btn.cm-btn-info {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.klaro .cm-btn.cm-btn-info:hover {
  background: var(--gold-glow);
  border-color: rgba(212,175,55,0.4);
}

/* Accept selected — same as success but slightly smaller weight */
.klaro .cm-btn.cm-btn-accept {
  background: linear-gradient(135deg, #e6c547, #d4af37, #b8941e);
  color: #0a0a0a;
  border-color: transparent;
}

/* ── Close button ──────────────────────────────────────────── */
.klaro .cookie-modal .hide {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.klaro .cookie-modal .hide:hover {
  color: var(--text-primary);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .klaro .cookie-notice {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px 12px 0 0;
    max-width: 100%;
  }

  .klaro .cookie-notice .cn-ok {
    flex-direction: column;
  }

  .klaro .cm-btn {
    width: 100%;
    justify-content: center;
  }

  .klaro .cookie-modal {
    padding: 0;
    align-items: flex-end;
  }

  .klaro .cookie-modal .cm-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
}
