/* ============================================================
   COOKIE CONSENT BANNER — Time Zone AI  v2.0
   Kompaktowy pasek u dołu ekranu, zgodny z GDPR/ePrivacy
   ============================================================ */

#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(8, 10, 22, 0.97);
  border-top: 1px solid rgba(0, 245, 212, 0.18);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#cc-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f5d4, #4cc9f0, #c77dff);
}

#cc-banner.cc-visible { transform: translateY(0); }

/* Wrapper */
.cc-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Lewa kolumna: ikona + tekst */
.cc-left {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex: 1;
  min-width: 200px;
}

.cc-emoji {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cc-title {
  font-family: 'Oxanium', 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: #f0f4ff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.cc-desc {
  font-size: 0.75rem;
  color: rgba(240, 244, 255, 0.48);
  line-height: 1.5;
}

.cc-desc a {
  color: #00f5d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 212, 0.28);
  transition: color 0.2s;
}
.cc-desc a:hover { color: #4cc9f0; }

/* Toggles */
.cc-toggles {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.cc-toggle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cc-toggle-label {
  font-size: 0.6rem;
  font-family: 'Space Mono', monospace;
  color: rgba(240, 244, 255, 0.36);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Switch */
.cc-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
  cursor: pointer;
}

.cc-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(240, 244, 255, 0.32);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s;
}

.cc-switch input:checked + .cc-switch-track {
  background: rgba(0, 245, 212, 0.2);
  border-color: rgba(0, 245, 212, 0.42);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.16);
}

.cc-switch input:checked + .cc-switch-track::after {
  transform: translateX(16px);
  background: #00f5d4;
}

.cc-switch input:disabled + .cc-switch-track {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Przyciski */
.cc-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cc-btn-reject {
  background: transparent;
  color: rgba(240, 244, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-btn-reject:hover {
  color: rgba(240, 244, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.cc-btn-save {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 244, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.cc-btn-save:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f0f4ff;
}

.cc-btn-accept {
  background: linear-gradient(135deg, #00f5d4, #4cc9f0);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
}
.cc-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.42);
}

.cc-btn:active { transform: scale(0.96); }

/* ── Link "Zarządzaj cookies" — wstawiasz w stopce każdej strony ── */
.cc-manage-link {
  color: inherit;
  text-decoration: underline;
  /* Jawny rozmiar = taki sam jak .footer-links a we wszystkich plikach.
     "inherit" NIE działa na <button> — przeglądarki resetują font do
     wartości systemowej (~16px). Musimy ustawić wartość wprost. */
  font-size: 0.8rem;
  line-height: 1;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  transition: color 0.2s;
  display: inline;
  -webkit-appearance: none;
  appearance: none;
}
.cc-manage-link:hover { color: #00f5d4; }

/* Nadpisania per breakpoint — muszą pasować do .footer-links a */
@media (max-width: 600px) {
  .cc-manage-link { font-size: 0.8rem; }
}
@media (max-width: 360px) {
  .cc-manage-link { font-size: 0.72rem; }
}
@media (max-width: 280px) {
  .cc-manage-link { font-size: 0.66rem; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .cc-toggles { gap: 10px; }
}

/* Mobile ≤600px — układ kolumnowy */
@media (max-width: 600px) {
  .cc-wrap {
    padding: 12px 14px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .cc-left { min-width: 0; }
  .cc-title { font-size: 0.76rem; }
  .cc-desc  { font-size: 0.71rem; }

  .cc-toggles {
    justify-content: space-evenly;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .cc-btn-accept { grid-column: 1 / -1; }

  .cc-btn { padding: 10px 10px; font-size: 0.7rem; }
}

/* Small ≤360px */
@media (max-width: 360px) {
  .cc-wrap { padding: 10px 12px; gap: 8px; }
  .cc-emoji { font-size: 1rem; }
  .cc-title { font-size: 0.7rem; }
  .cc-desc  { font-size: 0.65rem; }
  .cc-toggle-label { font-size: 0.52rem; }
  .cc-switch { width: 32px; height: 18px; }
  .cc-switch-track::after { width: 10px; height: 10px; }
  .cc-switch input:checked + .cc-switch-track::after { transform: translateX(14px); }
  .cc-btn { padding: 9px 8px; font-size: 0.66rem; border-radius: 7px; }
}

/* Jio Phone ≤280px */
@media (max-width: 280px) {
  .cc-wrap { padding: 9px 10px; gap: 7px; }
  .cc-emoji { font-size: 0.9rem; }
  .cc-title { font-size: 0.63rem; }
  .cc-desc  { font-size: 0.6rem; line-height: 1.4; }
  .cc-toggles { gap: 4px; }
  .cc-toggle-label { font-size: 0.48rem; }
  .cc-switch { width: 28px; height: 16px; }
  .cc-switch-track::after { width: 8px; height: 8px; top: 3px; left: 3px; }
  .cc-switch input:checked + .cc-switch-track::after { transform: translateX(12px); }
  .cc-btn { padding: 8px 7px; font-size: 0.6rem; border-radius: 6px; }
}