/* =========================================
   COOKIE CONSENT BANNER - GDPR Compliant
   ========================================= */

/* Overlay */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cc-overlay.cc-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Main banner */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 2px solid orange;
  padding: 20px 24px;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-family: 'Source Sans Pro', sans-serif;
  color: #e0e0e0;
}
.cc-banner.cc-visible {
  transform: translateY(0);
}

/* Banner layout */
.cc-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cc-banner h3 {
  color: orange;
  font-size: 18px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.cc-banner p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  color: #ccc;
}
.cc-banner a {
  color: orange;
  text-decoration: underline;
}
.cc-banner a:hover {
  color: #ffb733;
}

/* Buttons row */
.cc-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cc-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.cc-btn:active {
  transform: scale(0.97);
}
.cc-btn-accept {
  background: orange;
  color: #000;
}
.cc-btn-accept:hover {
  background: #e69500;
}
.cc-btn-reject {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}
.cc-btn-reject:hover {
  background: #444;
}
.cc-btn-settings {
  background: transparent;
  color: orange;
  border: 1px solid orange;
}
.cc-btn-settings:hover {
  background: rgba(255, 165, 0, 0.1);
}

/* =========================================
   PREFERENCES PANEL (modal)
   ========================================= */
.cc-preferences {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 100000;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'Source Sans Pro', sans-serif;
  color: #e0e0e0;
}
.cc-preferences.cc-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cc-preferences h3 {
  color: orange;
  font-size: 20px;
  margin: 0 0 6px 0;
  font-weight: 600;
}
.cc-preferences > p {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.cc-preferences a {
  color: orange;
  text-decoration: underline;
}

/* Close button */
.cc-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.cc-close:hover {
  color: #fff;
}

/* Cookie category */
.cc-category {
  background: #222;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cc-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-category-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.cc-category-desc {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
}
.cc-badge {
  font-size: 11px;
  background: #333;
  color: #aaa;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ccc;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: orange;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
  background: #000;
}
.cc-toggle input:disabled + .cc-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Preferences buttons */
.cc-pref-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cc-pref-buttons .cc-btn {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

/* =========================================
   FLOATING SETTINGS BUTTON (post-consent)
   ========================================= */
.cc-settings-float {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: #222;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99997;
  transition: background 0.2s, transform 0.2s;
  color: orange;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
}
.cc-settings-float.cc-visible {
  opacity: 1;
  pointer-events: auto;
}
.cc-settings-float:hover {
  background: #333;
  transform: scale(1.1);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .cc-banner {
    padding: 16px;
  }
  .cc-buttons {
    flex-direction: column;
  }
  .cc-btn {
    width: 100%;
    text-align: center;
  }
  .cc-preferences {
    width: 95%;
    padding: 20px;
  }
  .cc-pref-buttons {
    flex-direction: column;
  }
}