/**
 * Çerez bildirimi stilleri — tüm sayfalarda kullanılır (main.css / Tailwind’ten bağımsız).
 */
:root {
  --cc-card: #ffffff;
  --cc-line: #d5dfff;
  --cc-radius: 8px;
  --cc-shadow: 0 16px 40px #e0dfdf;
  --cc-text: #212121;
  --cc-muted: #646464;
  --cc-brand: #2f5dff;
  --cc-brand-2: #597dff;
}

.cookie-consent {
  position: fixed;
  z-index: 100000;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: auto;
  width: min(100% - 32px, 26rem);
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  filter: drop-shadow(0 12px 40px rgba(43, 86, 114, 0.18));
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  background: var(--cc-card);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: clamp(18px, 3vw, 22px);
  box-shadow: var(--cc-shadow);
}

.cookie-consent__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cc-text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--cc-muted);
}

.cookie-consent__link {
  color: var(--cc-brand);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent__link:hover {
  color: var(--cc-brand-2);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

.cookie-consent__btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--cc-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid var(--cc-brand);
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
  background: linear-gradient(120deg, var(--cc-brand), var(--cc-brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px #eaefff;
}

.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn--secondary {
  background: #f5f7ff;
  color: #2b5672;
}

.cookie-consent__btn--secondary:hover {
  transform: translateY(-1px);
}

button.cookie-consent-foot {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  color: var(--cc-muted);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

button.cookie-consent-foot:hover {
  color: var(--cc-text);
}

button.cookie-consent-foot:focus-visible {
  outline: 2px solid var(--cc-brand);
  outline-offset: 2px;
}

/* Koyu tema (ör. html.dark) ile uyum için footer düğmesi */
.dark button.cookie-consent-foot {
  color: #a1a1aa;
}
.dark button.cookie-consent-foot:hover {
  color: #fafafa;
}
