/*
 * PMK Hero contrast layer
 * Loaded AFTER assets/hero.css. It does not replace the existing design;
 * it normalizes text/background/borders for light + dark environments.
 */

.pmk-hero-wrap {
  color-scheme: light dark;
  --pmk-bg: #f8fafc;
  --pmk-surface: #ffffff;
  --pmk-surface-2: #f1f5f9;
  --pmk-text: #0f172a;
  --pmk-muted: #475569;
  --pmk-border: #cbd5e1;
  --pmk-accent: #0a1d56;
  --pmk-link: #1d4ed8;
  --pmk-focus: #2563eb;
  --pmk-input-bg: #ffffff;
  --pmk-input-text: #0f172a;
  --pmk-warning-bg: #fff7ed;
  --pmk-warning-text: #9a3412;
  --pmk-warning-border: #fdba74;
  --pmk-success-bg: #ecfdf5;
  --pmk-success-text: #065f46;
  --pmk-success-border: #6ee7b7;
  --pmk-info-bg: #eff6ff;
  --pmk-info-text: #1e3a8a;
  --pmk-info-border: #93c5fd;
  --pmk-danger-bg: #fff1f2;
  --pmk-danger-text: #9f1239;
  --pmk-danger-border: #fda4af;
}

.pmk-hero-wrap,
.pmk-hero-wrap .pmk-hero-card,
.pmk-hero-wrap .pmk-rules,
.pmk-hero-wrap .pmk-result-placeholder {
  color: var(--pmk-text);
}

.pmk-hero-wrap .pmk-hero-card,
.pmk-hero-wrap .pmk-rules {
  background: var(--pmk-surface);
  border-color: var(--pmk-border);
}

.pmk-hero-wrap h1,
.pmk-hero-wrap h2,
.pmk-hero-wrap h3,
.pmk-hero-wrap p,
.pmk-hero-wrap li,
.pmk-hero-wrap label,
.pmk-hero-wrap summary,
.pmk-hero-wrap strong {
  color: inherit;
}

.pmk-hero-wrap .pmk-small,
.pmk-hero-wrap .pmk-privacy-note {
  color: var(--pmk-muted);
}

.pmk-hero-wrap a {
  color: var(--pmk-link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.pmk-hero-wrap a:hover,
.pmk-hero-wrap a:focus-visible {
  text-decoration: underline;
}

.pmk-hero-wrap input[type="text"],
.pmk-hero-wrap input[type="email"],
.pmk-hero-wrap input[type="number"],
.pmk-hero-wrap select,
.pmk-hero-wrap textarea {
  background: var(--pmk-input-bg);
  color: var(--pmk-input-text);
  border: 1px solid var(--pmk-border);
}

.pmk-hero-wrap input::placeholder,
.pmk-hero-wrap textarea::placeholder {
  color: var(--pmk-muted);
  opacity: 1;
}

.pmk-hero-wrap input:focus-visible,
.pmk-hero-wrap select:focus-visible,
.pmk-hero-wrap textarea:focus-visible,
.pmk-hero-wrap button:focus-visible,
.pmk-hero-wrap summary:focus-visible,
.pmk-hero-wrap a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pmk-focus) 60%, transparent);
  outline-offset: 2px;
}

.pmk-hero-wrap .pmk-hero-test,
.pmk-hero-wrap .pmk-rules-notice {
  background: var(--pmk-warning-bg);
  color: var(--pmk-warning-text);
  border: 1px solid var(--pmk-warning-border);
}

.pmk-hero-wrap .pmk-msg.ok,
.pmk-hero-wrap .pmk-joined {
  background: var(--pmk-success-bg);
  color: var(--pmk-success-text);
  border-color: var(--pmk-success-border);
}

.pmk-hero-wrap .pmk-msg.info,
.pmk-hero-wrap .pmk-result-placeholder {
  background: var(--pmk-info-bg);
  color: var(--pmk-info-text);
  border-color: var(--pmk-info-border);
}

.pmk-hero-wrap .pmk-msg.err {
  background: var(--pmk-danger-bg);
  color: var(--pmk-danger-text);
  border-color: var(--pmk-danger-border);
}

.pmk-hero-wrap .pmk-rules {
  overflow: hidden;
}

.pmk-hero-wrap .pmk-rules > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--pmk-text);
}

.pmk-hero-wrap .pmk-rules-content {
  color: var(--pmk-text);
}

.pmk-hero-wrap .pmk-rules-content h3 {
  margin-top: 1.15rem;
  margin-bottom: .45rem;
  color: var(--pmk-text);
  font-size: 1rem;
}

.pmk-hero-wrap .pmk-rules-content ul {
  margin-top: .35rem;
  padding-inline-start: 1.25rem;
}

.pmk-hero-wrap .pmk-rules-content li + li {
  margin-top: .35rem;
}

.pmk-hero-wrap .pmk-privacy-note {
  padding: .75rem .85rem;
  border: 1px solid var(--pmk-border);
  border-radius: 12px;
  background: var(--pmk-surface-2);
}

/* OS/browser dark preference */
@media (prefers-color-scheme: dark) {
  .pmk-hero-wrap {
    --pmk-bg: #0b1220;
    --pmk-surface: #111827;
    --pmk-surface-2: #172033;
    --pmk-text: #f8fafc;
    --pmk-muted: #cbd5e1;
    --pmk-border: #475569;
    --pmk-accent: #93c5fd;
    --pmk-link: #93c5fd;
    --pmk-focus: #60a5fa;
    --pmk-input-bg: #0f172a;
    --pmk-input-text: #f8fafc;
    --pmk-warning-bg: #431407;
    --pmk-warning-text: #fed7aa;
    --pmk-warning-border: #9a3412;
    --pmk-success-bg: #052e16;
    --pmk-success-text: #bbf7d0;
    --pmk-success-border: #166534;
    --pmk-info-bg: #172554;
    --pmk-info-text: #dbeafe;
    --pmk-info-border: #1d4ed8;
    --pmk-danger-bg: #4c0519;
    --pmk-danger-text: #fecdd3;
    --pmk-danger-border: #be123c;
  }
}

/* Common explicit dark-mode hooks used by WordPress themes/frameworks */
html[data-theme="dark"] .pmk-hero-wrap,
body[data-theme="dark"] .pmk-hero-wrap,
html.dark .pmk-hero-wrap,
body.dark .pmk-hero-wrap,
body.dark-mode .pmk-hero-wrap,
[data-bs-theme="dark"] .pmk-hero-wrap {
  --pmk-bg: #0b1220;
  --pmk-surface: #111827;
  --pmk-surface-2: #172033;
  --pmk-text: #f8fafc;
  --pmk-muted: #cbd5e1;
  --pmk-border: #475569;
  --pmk-accent: #93c5fd;
  --pmk-link: #93c5fd;
  --pmk-focus: #60a5fa;
  --pmk-input-bg: #0f172a;
  --pmk-input-text: #f8fafc;
  --pmk-warning-bg: #431407;
  --pmk-warning-text: #fed7aa;
  --pmk-warning-border: #9a3412;
  --pmk-success-bg: #052e16;
  --pmk-success-text: #bbf7d0;
  --pmk-success-border: #166534;
  --pmk-info-bg: #172554;
  --pmk-info-text: #dbeafe;
  --pmk-info-border: #1d4ed8;
  --pmk-danger-bg: #4c0519;
  --pmk-danger-text: #fecdd3;
  --pmk-danger-border: #be123c;
}

/* Explicit light mode wins even when the device itself prefers dark. */
html[data-theme="light"] .pmk-hero-wrap,
body[data-theme="light"] .pmk-hero-wrap,
html.light .pmk-hero-wrap,
body.light .pmk-hero-wrap,
body.light-mode .pmk-hero-wrap,
[data-bs-theme="light"] .pmk-hero-wrap {
  --pmk-bg: #f8fafc;
  --pmk-surface: #ffffff;
  --pmk-surface-2: #f1f5f9;
  --pmk-text: #0f172a;
  --pmk-muted: #475569;
  --pmk-border: #cbd5e1;
  --pmk-accent: #0a1d56;
  --pmk-link: #1d4ed8;
  --pmk-focus: #2563eb;
  --pmk-input-bg: #ffffff;
  --pmk-input-text: #0f172a;
  --pmk-warning-bg: #fff7ed;
  --pmk-warning-text: #9a3412;
  --pmk-warning-border: #fdba74;
  --pmk-success-bg: #ecfdf5;
  --pmk-success-text: #065f46;
  --pmk-success-border: #6ee7b7;
  --pmk-info-bg: #eff6ff;
  --pmk-info-text: #1e3a8a;
  --pmk-info-border: #93c5fd;
  --pmk-danger-bg: #fff1f2;
  --pmk-danger-text: #9f1239;
  --pmk-danger-border: #fda4af;
}

@media (max-width: 640px) {
  .pmk-hero-wrap .pmk-rules-content {
    font-size: .95rem;
    line-height: 1.55;
  }
}


/* HERO-LIVE-POLISH-H3: belirgin katılım CTA'sı */
.pmk-hero-wrap .pmk-hero-cta {
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--pmk-warning-border);
  border-radius: 18px;
  background: var(--pmk-warning-bg);
  color: var(--pmk-warning-text);
  text-align: center;
}

.pmk-hero-wrap .pmk-hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #9a5c00;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.pmk-hero-wrap .pmk-hero-cta-button:hover,
.pmk-hero-wrap .pmk-hero-cta-button:focus-visible {
  background: #744500;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pmk-hero-wrap .pmk-hero-cta p {
  margin: 11px auto 0;
  max-width: 760px;
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.pmk-hero-wrap #pmk-hero-join {
  scroll-margin-top: 100px;
}

@media (prefers-color-scheme: dark) {
  .pmk-hero-wrap .pmk-hero-cta-button {
    background: #f0b84b;
    color: #251600 !important;
  }

  .pmk-hero-wrap .pmk-hero-cta-button:hover,
  .pmk-hero-wrap .pmk-hero-cta-button:focus-visible {
    background: #ffd27a;
    color: #251600 !important;
  }
}

html[data-theme="dark"] .pmk-hero-wrap .pmk-hero-cta-button,
body[data-theme="dark"] .pmk-hero-wrap .pmk-hero-cta-button,
html.dark .pmk-hero-wrap .pmk-hero-cta-button,
body.dark .pmk-hero-wrap .pmk-hero-cta-button,
body.dark-mode .pmk-hero-wrap .pmk-hero-cta-button,
[data-bs-theme="dark"] .pmk-hero-wrap .pmk-hero-cta-button {
  background: #f0b84b;
  color: #251600 !important;
}

@media (max-width: 640px) {
  .pmk-hero-wrap .pmk-hero-cta-button {
    display: flex;
    width: 100%;
    font-size: 15px;
  }
}
