/* ═══════════════════════════════════════════════
   TREDNETS — cookie-consent.css
   GDPR cookie banner styles
════════════════════════════════════════════════ */

#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--accent);
  border-top: 1px solid #2e2e2e;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent.cc-visible {
  transform: translateY(0);
  opacity: 1;
}

.cc-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 40px;
}

/* ── Header & Text ────────────────────────── */
.cc-header {
  margin-bottom: 10px;
}

.cc-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, 0.9);
}

.cc-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}

.cc-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.cc-text a:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-hl);
}

/* ── Buttons ──────────────────────────────── */
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn-accept {
  background: var(--accent-hl);
  color: #fff;
}

.cc-btn-accept:hover {
  background: var(--accent-dim);
}

.cc-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-btn-reject:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.cc-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-btn-settings:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Preferences Panel ────────────────────── */
.cc-preferences {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.cc-preferences.cc-prefs-open {
  max-height: 500px;
  padding-top: 24px;
}

.cc-prefs-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #2e2e2e;
  margin-bottom: 4px;
}

.cc-prefs-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Category rows ────────────────────────── */
.cc-category {
  padding: 14px 0;
  border-bottom: 1px solid #2e2e2e;
}

.cc-category:last-of-type {
  border-bottom: none;
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cc-toggle-label {
  flex: 1;
  cursor: pointer;
}

.cc-category-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.cc-category-desc {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* ── Toggle Switch ────────────────────────── */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  transition: background 0.2s;
}

.cc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: var(--accent-hl);
}

.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
}

.cc-toggle-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.cc-toggle input:disabled + .cc-toggle-locked {
  background: rgba(255, 255, 255, 0.08);
}

.cc-toggle input:disabled:checked + .cc-toggle-locked {
  background: rgba(191, 30, 45, 0.5);
}

/* ── Save button ──────────────────────────── */
.cc-prefs-actions {
  padding-top: 16px;
}

.cc-btn-save {
  background: var(--accent-hl);
  color: #fff;
}

.cc-btn-save:hover {
  background: var(--accent-dim);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 860px) {
  .cc-inner {
    padding: 22px 24px;
  }

  .cc-actions {
    flex-direction: column;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
  }
}
