/**
 * Çerez bilgilendirme banner — site-wide popup.
 * Alt-sağ köşede, marka rengi (#5c1a58 mor), Poppins, soft shadow + slide-in.
 */

.cookie-consent {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  /* sağa yaslı */
  z-index: 1060;
  font-family: 'Poppins', sans-serif;

  /* Initial gizli — slide-in için */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.cookie-consent.cookie-consent-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(12, 0, 61, 0.08);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon text"
    "actions actions";
  gap: 1rem;
  box-shadow:
    0 24px 48px -20px rgba(12, 0, 61, 0.25),
    0 4px 12px -4px rgba(12, 0, 61, 0.08);
}

.cookie-consent-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5c1a58, #7E5EFE);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-consent-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-consent-text {
  grid-area: text;
  min-width: 0;
}

.cookie-consent-text h3 {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0C003D;
  line-height: 1.3;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(12, 0, 61, 0.7);
}

.cookie-consent-text a {
  color: #5c1a58;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.cookie-consent-text a:hover {
  text-decoration-thickness: 2px;
}

.cookie-consent-actions {
  grid-area: actions;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s, filter 0.15s, background 0.15s, color 0.15s;
}

.cookie-consent-btn-primary {
  background: #5c1a58;
  color: #fff;
}

.cookie-consent-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cookie-consent-btn-ghost {
  background: transparent;
  color: #0C003D;
  border: 1px solid rgba(12, 0, 61, 0.15);
}

.cookie-consent-btn-ghost:hover {
  background: rgba(12, 0, 61, 0.04);
  color: #0C003D;
}

/* Mobil — tam genişlik, daha kompakt */
@media (max-width: 540px) {
  .cookie-consent {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .cookie-consent-inner {
    padding: 1rem;
    grid-template-columns: 36px 1fr;
    gap: 0.75rem;
  }

  .cookie-consent-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .cookie-consent-icon svg {
    width: 20px;
    height: 20px;
  }

  .cookie-consent-text h3 {
    font-size: 0.875rem;
  }

  .cookie-consent-text p {
    font-size: 0.75rem;
  }

  .cookie-consent-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .cookie-consent-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}
