/**
 * Tüm temalarda aynı çerez onay tasarımı – sayfanın en altında, sabit.
 * KVKK/GDPR uyumlu tek görünüm.
 */

/* Bar: sayfanın en altında, tam genişlik, en önde (z-index yüksek) */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0f172a;
  color: #f1f5f9;
  padding: 1rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
}

.cookie-consent-bar.cookie-consent-visible {
  transform: translateY(0);
}

.cookie-consent-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-message {
  flex: 1;
  min-width: 200px;
  margin: 0;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.95);
}

.cookie-consent-policy-link {
  color: #93c5fd;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-policy-link:hover {
  color: #bfdbfe;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.cookie-consent-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.cookie-consent-btn-accept {
  background: #2563eb;
  color: #fff;
}

.cookie-consent-btn-accept:hover {
  background: #1d4ed8;
  color: #fff;
}

.cookie-consent-btn-reject {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(241, 245, 249, 0.5);
}

.cookie-consent-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #f1f5f9;
  color: #fff;
}

.cookie-consent-btn-link {
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-consent-btn-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Panel: tercihleri özelleştir */
.cookie-consent-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #1e293b;
  color: #f1f5f9;
  padding: 1.25rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cookie-consent-panel.cookie-consent-visible {
  transform: translateY(0);
}

.cookie-consent-panel-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-consent-panel-title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

.cookie-consent-categories .cookie-consent-category {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-categories .cookie-consent-category:last-child {
  border-bottom: 0;
}

.cookie-consent-category-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-consent-category-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.75);
  line-height: 1.4;
}

.cookie-consent-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: #2563eb;
  cursor: pointer;
}

.cookie-consent-checkbox:disabled {
  cursor: default;
}

.cookie-consent-panel-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.7);
  line-height: 1.4;
}

.cookie-consent-panel-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.cookie-consent-panel-actions .cookie-consent-btn {
  padding: 0.5rem 1.25rem;
}

.cookie-consent-panel-actions #cookie-consent-accept-all-panel {
  margin-left: auto;
}
