/* ============================================================
   Tora Wash — WordPress'e özgü ek stiller
   Yönetici çubuğu, Contact Form 7, içerik sayfaları, arşiv, 404.
   ============================================================ */

/* Yönetici çubuğu varken yapışkan header aşağı iner */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   CONTACT FORM 7 — tema formu görünümü
   ============================================================ */
.contact__formwrap .wpcf7 { color: var(--c-ink); }
.contact__formwrap .wpcf7-form { display: block; }

.contact__formwrap .field { display: block; margin-bottom: 18px; }
.contact__formwrap .wpcf7-form-control-wrap { display: block; }

.contact__formwrap .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(input[type="checkbox"]) {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: #FAFBFC;
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.contact__formwrap textarea.wpcf7-form-control { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.contact__formwrap select.wpcf7-form-control { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.contact__formwrap .wpcf7-form-control::placeholder { color: #A3AFBF; }
.contact__formwrap .wpcf7-form-control:focus { outline: none; border-color: var(--c-brand); background: #fff; box-shadow: 0 0 0 3px rgba(22, 163, 239, .16); }
.contact__formwrap .wpcf7-form-control.wpcf7-not-valid { border-color: #E5484D; background: #FFF8F8; }

/* Doğrulama ipucu ve sonuç mesajı */
.contact__formwrap .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12.5px; color: #C8383D; }
.contact__formwrap .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: 0 !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.contact__formwrap .wpcf7-form.sent .wpcf7-response-output { color: #1C8A4E; }
.contact__formwrap .wpcf7-form.invalid .wpcf7-response-output,
.contact__formwrap .wpcf7-form.failed .wpcf7-response-output,
.contact__formwrap .wpcf7-form.aborted .wpcf7-response-output,
.contact__formwrap .wpcf7-form.spam .wpcf7-response-output { color: #C8383D; }

/* Onay kutusu (acceptance) */
.contact__formwrap .check { display: block; margin: 4px 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--c-ink-soft); }
.contact__formwrap .check .wpcf7-list-item { display: block; margin: 0; }
.contact__formwrap .check .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.contact__formwrap .check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-brand-deep); cursor: pointer; }
.contact__formwrap .check .wpcf7-not-valid-tip { margin-top: 4px; }

/* Gönder düğmesi ve alt satır */
.contact__formwrap .form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact__formwrap input.form__submit {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--c-navy);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  transition: background .25s var(--ease), opacity .25s var(--ease);
}
.contact__formwrap input.form__submit:hover { background: var(--c-navy-soft); }
.contact__formwrap .wpcf7-form.submitting input.form__submit { opacity: .6; cursor: default; }
.contact__formwrap .wpcf7-spinner { margin: 0; }
.contact__formwrap .wpcf7-form .form__foot + .wpcf7-response-output { margin-top: 14px; }

@media (max-width: 560px) {
  .contact__formwrap input.form__submit { width: 100%; justify-content: center; }
}

/* ============================================================
   İÇERİK SAYFALARI
   ============================================================ */
.entry-hero {
  padding: clamp(24px, 3vw, 40px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, #F6F8FB 0%, #FFFFFF 100%);
}
.entry-hero__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--c-ink);
}
.entry-hero__title em { font-style: normal; color: var(--c-brand); }
.entry-hero__meta { margin-top: 12px; font-size: 14px; color: var(--c-ink-light); }

.entry { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); }
.entry__body { max-width: 780px; font-size: 17px; line-height: 1.75; color: var(--c-ink); }
.entry__body > * + * { margin-top: 1.1em; }
.entry__body h2, .entry__body h3, .entry__body h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 1.8em; }
.entry__body h2 { font-size: 1.7em; }
.entry__body h3 { font-size: 1.3em; }
.entry__body h4 { font-size: 1.1em; }
.entry__body p { color: var(--c-ink-soft); }
.entry__body a { color: var(--c-brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry__body ul, .entry__body ol { padding-left: 1.4em; color: var(--c-ink-soft); }
.entry__body ul { list-style: disc; }
.entry__body ol { list-style: decimal; }
.entry__body li + li { margin-top: .4em; }
.entry__body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--c-brand); color: var(--c-ink-soft); font-style: italic; }
.entry__body img { border-radius: 8px; }
.entry__body figure figcaption { margin-top: 8px; font-size: 13px; color: var(--c-ink-light); }
.entry__body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry__body th, .entry__body td { padding: 10px 14px; border: 1px solid var(--c-line); text-align: left; }
.entry__body th { background: var(--c-surface); font-weight: 600; }
.entry__body pre { padding: 16px 18px; border-radius: 8px; background: var(--c-surface); overflow-x: auto; font-size: 14px; }
.entry__body .alignwide { max-width: none; }
.entry__body .aligncenter { margin-inline: auto; }
.entry__body .wp-block-buttons a, .entry__body .wp-block-button__link { text-decoration: none; }

.entry__thumb { margin-bottom: 32px; border-radius: 8px; overflow: hidden; }
.entry__thumb img { width: 100%; height: auto; }

/* Arşiv listesi */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.post-card { display: block; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #EEF2F6; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__date { display: block; margin-top: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-light); }
.post-card__title { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--c-ink); transition: color .25s var(--ease); }
.post-card:hover .post-card__title { color: var(--c-brand-deep); }
.post-card__excerpt { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--c-ink-soft); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); font-size: 14px; font-weight: 500; color: var(--c-ink-soft); }
.pagination .page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* Arama formu (arşiv boş sonuç) */
.searchform { display: flex; gap: 10px; max-width: 520px; margin: 24px 0 0; }
.searchform input { flex: 1; height: 50px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 4px; font: inherit; font-size: 15px; }
.searchform button { height: 50px; padding: 0 22px; border-radius: 4px; background: var(--c-navy); color: #fff; font-weight: 600; }

/* ============================================================
   404 — koyu sahne
   ============================================================ */
.nf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  color: #fff;
  background: linear-gradient(160deg, #0F2B45 0%, #0A1F36 55%, #050E1A 100%);
}
.nf__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(48% 60% at 76% 44%, rgba(22, 163, 239, .28), transparent 70%); }
.nf__dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 50%, #000 20%, transparent 100%);
          mask-image: radial-gradient(70% 80% at 60% 50%, #000 20%, transparent 100%);
}

.nf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.nf__kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 100px;
  background: rgba(229, 72, 77, .14); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .4); color: #FF9A9E;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.nf__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .22); }

.nf__title { margin-top: 20px; font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 600; line-height: 1.02; letter-spacing: -.032em; }
.nf__title em { font-style: normal; color: var(--c-brand); }
.nf__text { max-width: 46ch; margin-top: 18px; font-size: 16.5px; line-height: 1.72; color: rgba(255, 255, 255, .7); }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.nf__search {
  display: flex; align-items: center; gap: 10px;
  max-width: 460px; margin-top: 22px; padding: 6px 6px 6px 16px;
  border-radius: 8px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: box-shadow .25s var(--ease);
}
.nf__search:focus-within { box-shadow: inset 0 0 0 1px rgba(22, 163, 239, .7); }
.nf__search svg { flex: none; width: 18px; height: 18px; color: rgba(255, 255, 255, .5); }
.nf__search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; font: inherit; font-size: 15px; color: #fff; outline: none; }
.nf__search input::placeholder { color: rgba(255, 255, 255, .45); }
.nf__search button { height: 40px; padding: 0 18px; border-radius: 6px; background: var(--c-brand); color: #fff; font-size: 14px; font-weight: 600; transition: background .25s var(--ease); }
.nf__search button:hover { background: #2FB1F7; }

/* Dev 404: ortadaki sıfır, logodaki baloncuk gibi marka mavisi halka */
.nf__visual { position: relative; display: grid; justify-items: center; gap: 22px; }
.nf__code {
  display: inline-flex; align-items: center;
  font-size: clamp(7rem, 18vw, 17rem); font-weight: 600; line-height: .9; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .35);
}
.nf__code i {
  position: relative; display: inline-grid; place-items: center;
  width: .72em; height: .72em; margin: 0 .04em; border-radius: 50%;
  border: .085em solid var(--c-brand);
  box-shadow: 0 0 60px rgba(22, 163, 239, .35), inset 0 0 40px rgba(22, 163, 239, .18);
  animation: nfFloat 6s ease-in-out infinite;
}
.nf__code i b { position: absolute; top: 18%; left: 22%; width: .16em; height: .1em; border-radius: 50%; background: rgba(255, 255, 255, .9); transform: rotate(-30deg); }
.nf__code i::after { content: ""; position: absolute; inset: -.2em; border-radius: 50%; border: 2px solid rgba(22, 163, 239, .5); animation: nfPing 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes nfFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes nfPing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

.nf__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, .97); color: var(--c-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
}
.nf__tag i { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); }

/* Hızlı bağlantılar */
.nf__links { margin-top: clamp(48px, 7vw, 88px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nf__links-label { display: block; margin-bottom: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.nf__links ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nf__links a {
  display: block; padding: 16px 18px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.nf__links a:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(22, 163, 239, .5); transform: translateY(-2px); }
.nf__links strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nf__links span { display: block; margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .58); }

@media (prefers-reduced-motion: reduce) { .nf__code i, .nf__code i::after { animation: none; } }

@media (max-width: 1000px) {
  .nf { min-height: 0; }
  .nf__grid { grid-template-columns: 1fr; gap: 40px; }
  .nf__visual { order: -1; }
  .nf__links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nf__cta .btn { width: 100%; justify-content: center; }
  .nf__links ul { grid-template-columns: 1fr; }
  .nf__search { flex-wrap: wrap; padding: 10px; }
  .nf__search button { width: 100%; }
}
