/* Castellum Cookie Consent CSS */
:root {
  --cc-bg:      #ffffff;
  --cc-overlay: rgba(0,0,0,.45);
  --cc-accent:  #8b5e3c;
  --cc-text:    #1f2937;
  --cc-muted:   #6b7280;
  --cc-border:  #e5e7eb;
  --cc-radius:  12px;
  --cc-shadow:  0 20px 60px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.1);
}

/* Banner wrapper */
#cc-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
#cc-banner.cc-visible {
  opacity: 1;
  pointer-events: all;
}

/* Overlay */
#cc-overlay {
  position: fixed;
  inset: 0;
  background: var(--cc-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Dialog box */
#cc-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  background: var(--cc-bg);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  max-height: 90vh;
  overflow-y: auto;
}
#cc-banner.cc-visible #cc-box {
  transform: translateY(0);
}

/* Header */
#cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--cc-border);
}
#cc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-text);
  font-family: 'Playfair Display', Georgia, serif;
}
#cc-version {
  font-size: 11px;
  color: var(--cc-muted);
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Body */
#cc-body {
  padding: 16px 22px;
}
#cc-text {
  font-size: 14px;
  color: var(--cc-muted);
  line-height: 1.65;
  margin: 0 0 4px;
}
#cc-text a {
  color: var(--cc-accent);
  text-decoration: none;
  font-weight: 500;
}
#cc-text a:hover { text-decoration: underline; }

/* Category rows */
.cc-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.cc-cat-row:last-child { border-bottom: none; }
.cc-cat-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.cc-cat-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.cc-cat-label { font-size: 14px; font-weight: 600; color: var(--cc-text); }
.cc-cat-desc { font-size: 12px; color: var(--cc-muted); margin-top: 2px; line-height: 1.5; }

/* Toggle switch */
.cc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider {
  position: absolute; inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background .2s;
}
.cc-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cc-toggle input:checked + .cc-slider { background: var(--cc-accent); }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-slider { background: #9ca3af; cursor: not-allowed; }
.cc-toggle input:disabled + .cc-slider::before { box-shadow: none; }

/* Footer */
#cc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--cc-border);
  flex-wrap: wrap;
}

/* Buttons */
.cc-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}
.cc-btn-accept {
  background: var(--cc-accent);
  color: white;
}
.cc-btn-accept:hover { background: #7a4f2f; }
.cc-btn-outline {
  background: transparent;
  color: var(--cc-text);
  border: 1.5px solid var(--cc-border);
}
.cc-btn-outline:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cc-btn-primary {
  background: #1f2937;
  color: white;
}
.cc-btn-primary:hover { background: #111827; }
.cc-btn-ghost {
  background: transparent;
  color: var(--cc-muted);
  font-weight: 500;
}
.cc-btn-ghost:hover { color: var(--cc-text); }

/* Mobil */
@media (max-width: 600px) {
  #cc-banner { padding: 0; align-items: flex-end; }
  #cc-box { border-radius: var(--cc-radius) var(--cc-radius) 0 0; max-width: 100%; max-height: 85vh; }
  #cc-footer { flex-direction: column; align-items: stretch; }
  #cc-footer > div { display: flex; gap: 8px; }
  .cc-btn { text-align: center; }
}

/* Scrollbar */
#cc-box::-webkit-scrollbar { width: 4px; }
#cc-box::-webkit-scrollbar-track { background: transparent; }
#cc-box::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
