/* Site v4 — ek bileşenler ve iyileştirmeler (style.css üzerine) */

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--accent-gold); color: #09090e; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.independence-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; padding: 8px 4%; font-size: .8rem; color: var(--text-secondary); background: rgba(212,175,55,.07); border-bottom: 1px solid var(--glass-border); text-align: center; }
.independence-bar i { color: var(--accent-gold); }
.lang-notice { color: var(--accent-teal); font-weight: 500; }
.lang-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Hero: zarif, hafif arka plan hareketi */
.hero { position: relative; isolation: isolate; }
.hero-orbs span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.hero-orbs span:nth-child(1) { width: 380px; height: 380px; background: var(--accent-gold); left: -80px; top: 10%; }
.hero-orbs span:nth-child(2) { width: 420px; height: 420px; background: var(--accent-purple); right: -100px; bottom: 0; opacity: .28; }
@media (prefers-reduced-motion: no-preference) {
    .hero-orbs span:nth-child(1) { animation: orb-a 16s ease-in-out infinite alternate; }
    .hero-orbs span:nth-child(2) { animation: orb-b 20s ease-in-out infinite alternate; }
    .hero-content > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
    .hero-content > *:nth-child(2) { animation-delay: .08s; } .hero-content > *:nth-child(3) { animation-delay: .16s; } .hero-content > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes orb-a { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes orb-b { to { transform: translate(-50px, -30px) scale(1.15); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.btn-primary { background: linear-gradient(135deg, #e0bd4c 0%, #b88a1e 55%, #9d4edd 140%); }

/* Kitap aramasi */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-width: min(100%, 340px); border-radius: 999px; background: var(--bg-input); border: 1px solid var(--glass-border); }
.search-field:focus-within { border-color: var(--accent-gold); }
.search-field input { flex: 1; background: transparent; border: 0; color: var(--text-primary); font: inherit; outline: none; }
.result-count { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 18px; min-height: 1.3em; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 38px 20px; color: var(--text-muted); border: 1px dashed var(--glass-border); border-radius: 18px; }
.empty-state i { font-size: 1.6rem; color: var(--accent-gold); margin-bottom: 10px; display: block; }
.book-card .book-cover { aspect-ratio: 2 / 3; }
.source-line { font-size: .78rem; color: var(--text-muted); margin-top: 10px; }
.source-line a, .inline-link { color: var(--accent-gold); }
.timeline-source { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 8px; }
.card-link { color: inherit; text-decoration: none; }

/* Form */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-secondary); cursor: pointer; }
.check-label input { margin-top: 4px; accent-color: var(--accent-gold); width: 18px; height: 18px; flex-shrink: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-gold); font: inherit; text-decoration: underline; cursor: pointer; }
.char-count { display: block; text-align: right; color: var(--text-muted); font-size: .75rem; margin-top: 4px; }
.form-status { min-height: 1.4em; margin-bottom: 12px; font-size: .9rem; }
.form-status.ok { color: var(--accent-teal); } .form-status.err { color: var(--accent-crimson); }
.form-control:user-invalid { border-color: var(--accent-crimson); }
.prose p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.7; }
.detail-text p { margin-bottom: 14px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.75; }
.detail-img { max-width: 100%; max-height: 60svh; border-radius: 12px; display: block; margin: 0 auto 16px; object-fit: contain; }

@media (max-width: 600px) { .hero { padding-top: 28px; } section { padding: 56px 5%; } .toolbar { flex-direction: column; } }

.book-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; }
.book-facts dt { color: var(--text-muted); } .book-facts dd { color: var(--text-primary); }

/* Düzeltmeler: hero ızgarası, mobil başlık */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; grid-column: 1 / -1; }
.hero-orbs span { z-index: 0; }
.site-header { flex-wrap: nowrap; }
.logo { min-width: 0; }
@media (max-width: 600px) {
    .logo-sub { display: none; }
    .logo { font-size: 1.3rem; }
    .site-header { padding: 10px 4%; gap: 8px; }
    .header-tools { gap: 6px; }
    .tool-btn { padding: 7px 10px; }
    .lang-btn { padding: 4px 7px; }
    .independence-bar { font-size: .72rem; padding: 6px 4%; }
}
.hero-orbs { inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); }
