/* Ebced analizi sayfası — sitenin style.css değişkenleri ve bileşenleri üzerine küçük eklemeler */
/* Sitenin .form { display: grid } gibi kuralları hidden özniteliğini ezmesin */
.ebced-page [hidden] { display: none !important; }
.ebced-page .nav { background: rgba(255, 248, 241, 0.92); }
.ebced-section {
  min-height: 80vh;
  padding-top: 150px;
  background: var(--paper);
}
.ebced-section .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.ebced-section .eyebrow::before { display: none; }
.ebced-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ebced-intro { max-width: 34rem; margin: 1rem auto 0; }
.ebced-state { text-align: center; color: var(--muted); padding: 2rem 0; }
.ebced-closed p { margin-bottom: .6rem; font-size: 1.05rem; }
.ebced-closed .btn { margin-top: 1.4rem; display: inline-block; }
.ebced-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; box-shadow: var(--shadow); }
.ebced-form .btn { justify-self: start; min-width: 220px; }
.ebced-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ebced-form .field-date input { color: var(--ink); }
.ebced-form .field-date input { min-height: 58px; }
.ebced-form .field-date label { top: .45rem; font-size: .74rem; font-weight: 600; color: var(--accent); }
.ebced-form .field.error input, .ebced-form .consent.error span { border-color: #d0344f; color: #a3213f; }
.ebced-mode-note { font-size: .92rem; color: var(--muted); background: var(--accent-soft); padding: .8rem 1rem; border-radius: 12px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ebced-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }

.ebced-result { display: grid; gap: 1.6rem; }
.ebced-final {
  display: grid; gap: .3rem; text-align: center; padding: 2.4rem 1.5rem; border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 120%, rgba(255, 122, 89, 0.45), transparent 55%),
    radial-gradient(circle at 10% -20%, rgba(107, 79, 207, 0.5), transparent 55%),
    var(--ink);
  color: #fff; box-shadow: var(--shadow);
}
.ebced-final-label { font-size: .72rem; letter-spacing: .32em; opacity: .8; }
.ebced-final-value { font-family: var(--serif); font-size: clamp(3.4rem, 10vw, 5rem); line-height: 1; font-weight: 500; }
.ebced-final-sub { font-size: .9rem; opacity: .8; }
.ebced-result-title { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; text-align: center; }
.ebced-part { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.ebced-part-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ebced-part-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.ebced-part-name { font-family: var(--serif); font-size: 1.5rem; }
.ebced-part-arabic { margin-left: auto; font-size: 1.6rem; font-family: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; }
.ebced-letters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.ebced-letter { display: grid; justify-items: center; min-width: 3.4rem; padding: .5rem .6rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ebced-letter b { font-size: .8rem; letter-spacing: .08em; }
.ebced-letter span { font-size: 1.3rem; line-height: 1.4; font-family: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; }
.ebced-letter i { font-style: normal; font-size: .8rem; color: var(--muted); }
.ebced-expr { font-size: .95rem; color: var(--muted); }
.ebced-expr strong { color: var(--ink); }
.ebced-text { background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.ebced-text + .ebced-text { margin-top: 1rem; }
.ebced-text h3 { margin-bottom: .6rem; }
.ebced-text p { white-space: pre-line; line-height: 1.75; }
.ebced-cta { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.ebced-cta p { color: var(--muted); max-width: 32rem; }
.ebced-cta .btn { display: inline-block; margin-top: 0; }
.ebced-cta .btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.ebced-again { justify-self: center; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: .5rem; }
.ebced-again:hover { color: var(--accent); }
.ebced-page .footer { padding-top: 0; }
.ebced-page .footer-bottom { border-top: 0; }
.ebced-page .footer-credit { padding-bottom: 24px; }

@media (max-width: 640px) {
  .ebced-section { padding-top: 120px; }
  .ebced-form { padding: 22px 18px; border-radius: 18px; }
  .ebced-form .btn { width: 100%; justify-self: stretch; }
  .ebced-part { padding: 1.2rem 1.1rem; }
  .ebced-part-arabic { margin-left: 0; width: 100%; text-align: right; }
}

/* Arapça yazım kontrolü (hesaplamadan önce) */
.ebced-spelling { display: grid; gap: 1.1rem; }
.ebced-spell-intro { text-align: center; color: var(--muted); max-width: 34rem; margin: 0 auto; }
.ebced-spell-warn { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fdf1dc; color: #7a4f08; border: 1px solid #f1d9a8; font-size: .93rem; }
.ebced-spell { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .4rem 1.2rem; align-items: start; }
.ebced-spell.has-error { box-shadow: 0 0 0 1.5px #d0344f, var(--shadow); }
.ebced-spell-col { display: grid; gap: .15rem; justify-items: start; }
.ebced-spell-k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ebced-spell-latin { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.ebced-spell-ar { font-family: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; font-size: 2rem; line-height: 1.35; }
.ebced-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px; }
.ebced-badge.ok { background: #e5f4f1; color: #17695f; }
.ebced-badge.auto { background: #fdf1dc; color: #8a5a0b; }
.ebced-badge.manual { background: #efebfb; color: #4a3d8f; }
.ebced-spell-words { font-size: .82rem; color: var(--muted); }
.ebced-spell-edit { grid-column: 1 / -1; display: grid; gap: .45rem; }
.ebced-spell-edit button { justify-self: start; background: none; border: 0; padding: .2rem 0; color: var(--accent); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ebced-spell-edit input { font-family: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; font-size: 1.5rem; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; max-width: 26rem; }
.ebced-spell-edit input:focus { outline: none; border-color: var(--accent); }
.ebced-spell-edit small { color: var(--muted); font-size: .78rem; }
.ebced-spell-err { grid-column: 1 / -1; color: #a3213f; font-size: .88rem; }
.ebced-spell-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; justify-content: center; align-items: center; }
.ebced-spell-actions .btn { margin-top: 0; }
.ebced-spell-actions .btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.ebced-spelling .btn:disabled { opacity: .6; cursor: wait; }
.ebced-letters { flex-direction: row-reverse; justify-content: flex-end; }
.ebced-letter em { font-style: normal; font-size: .68rem; color: var(--muted); }
.ebced-part-src { width: 100%; }
@media (max-width: 640px) {
  .ebced-spell { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.1rem; }
}

/* Akıl ve Fikir */
.ebced-af { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ebced-af-card { display: grid; gap: .25rem; justify-items: center; text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ebced-af-label { font-size: .7rem; letter-spacing: .3em; color: var(--accent); font-weight: 600; }
.ebced-af-value { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); }
.ebced-af-sub { font-size: .82rem; color: var(--muted); }
@media (max-width: 520px) { .ebced-af { grid-template-columns: minmax(0, 1fr); } }
.ebced-buy { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

/* yüzen etiketler tek satır: uzun etiket telefonda kutunun kenarına taşmasın */
.field > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px); }
