/* Günlük kelime paketleri — /daily-pack (worker çizer, bkz. worker.js serveDailyPack*). */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

.dp-hero { text-align: center; padding: 3.5rem 1rem 3rem; background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #1e1b4b); }
.dp-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; color: #fff; margin: .9rem 0 .7rem; letter-spacing: .02em; }
.dp-hero p { max-width: 620px; margin: auto; color: rgba(255,255,255,.75); line-height: 1.7; }
.dp-emoji { display: block; font-size: 2.6rem; line-height: 1; margin-bottom: .2rem; }
.dp-meta { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; justify-content: center; }
.dp-badge { display: inline-block; padding: .28rem .75rem; border-radius: 999px; background: rgba(99,102,241,.18); color: #a5b4fc; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dp-date { color: rgba(255,255,255,.65); font-size: .85rem; }

.dp-body { max-width: 820px; width: 100%; margin: 2.5rem auto 4rem; padding: 0 1rem; box-sizing: border-box; display: flex; flex-direction: column; gap: 1.25rem; }
.dp-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem; }
.dp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.dp-section h2 { font-size: 1.05rem; margin: 0; }
.dp-section-sub { color: var(--text-muted); font-size: .8rem; }

/* Kelime uzunluğuna göre renk (koyu zeminde okunur tonlar). */
.dp-legend { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .9rem; color: var(--text-muted); font-size: .78rem; }
.dp-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dp-legend i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.dp-words { display: flex; flex-wrap: wrap; gap: .5rem; }
.dp-word { padding: .4rem .85rem; border-radius: 999px; font-weight: 700; font-size: .88rem; letter-spacing: .06em; border: 1px solid transparent; }
.dp-len-s { background: rgba(148,163,184,.14); color: #cbd5e1; }
.dp-len-4 { background: rgba(99,102,241,.16); color: #a5b4fc; border-color: rgba(99,102,241,.3); }
.dp-len-5 { background: rgba(16,185,129,.14); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.dp-len-6 { background: rgba(245,158,11,.14); color: #fcd34d; border-color: rgba(245,158,11,.3); }
.dp-len-7 { background: rgba(236,72,153,.14); color: #f9a8d4; border-color: rgba(236,72,153,.3); }
.dp-dot-4 { background: #818cf8; } .dp-dot-5 { background: #34d399; } .dp-dot-6 { background: #fbbf24; } .dp-dot-7 { background: #f472b6; }

.dp-note { color: var(--text-muted); font-size: .8rem; margin: .9rem 0 0; }

.dp-play { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; text-decoration: none; background: var(--gradient); color: #fff; border-radius: 12px; padding: .65rem 1.15rem; font-weight: 700; font-size: .88rem; }
.dp-play:hover { transform: translateY(-1px); }
.dp-play:active { transform: scale(.98); }
.dp-back { text-align: left; }
.dp-back a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }

/* Liste */
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; max-width: 1080px; width: 100%; margin: 2.5rem auto 4rem; padding: 0 1rem; box-sizing: border-box; }
.dp-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.35rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: inherit; text-decoration: none; transition: var(--transition); }
.dp-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.dp-card-date { color: var(--text-muted); font-size: .78rem; }
.dp-card h2 { font-size: 1.2rem; margin: 0; letter-spacing: .02em; }
.dp-card p { color: var(--text-muted); line-height: 1.6; margin: 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dp-card .dp-words { gap: .35rem; }
.dp-card .dp-word { font-size: .72rem; padding: .25rem .6rem; }
.dp-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; color: var(--text-muted); padding: 3rem 1rem; }
.dp-empty p { margin: 0; }


@media (max-width: 560px) {
  .dp-section { padding: 1.1rem 1rem 1.2rem; }
}

/* styles.css'teki genel öğe kuralları (main section, h1, h2) ana sayfa içindir;
   paket sayfalarında etkisizleştirilir. */
main section.dp-section,
main section.dp-section:nth-child(even) { padding: 1.4rem 1.4rem 1.5rem; background: var(--bg-card); }
main section.dp-grid,
main section.dp-grid:nth-child(even) { padding: 0 1rem; background: none; }
.dp-hero h1 { background: none; -webkit-text-fill-color: #fff; color: #fff; margin-bottom: .7rem; }
.dp-section h2,
.dp-card h2 {
  text-align: left;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}
.dp-section h2 { margin: 0; }
.dp-card h2 { margin: 0; }
@media (max-width: 560px) {
  main section.dp-section,
  main section.dp-section:nth-child(even) { padding: 1.1rem 1rem 1.2rem; }
}

/* Breadcrumb (hero'nun üstünde, ince şerit). */
.dp-crumbs { background: #1e1b4b; }
.dp-crumbs ol { list-style: none; margin: 0 auto; padding: .7rem 1rem 0; max-width: 1080px; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.dp-crumbs li + li::before { content: '›'; margin-right: .35rem; color: rgba(255,255,255,.35); }
.dp-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.dp-crumbs a:hover { color: #fff; }
.dp-crumbs [aria-current] { color: rgba(255,255,255,.9); }


main section.dp-related,
main section.dp-related:nth-child(even) { padding: 0; background: none; }
.dp-related > h2 { font-size: 1.05rem; margin: 1rem 0 .9rem; text-align: left; background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.dp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }

/* styles.css'teki genel <article> kart kuralı paket gövdesine uygulanmasın. */
article.dp-body { background: none; border: 0; border-radius: 0; overflow: visible; transition: none; }
article.dp-body::before { display: none; }
article.dp-body:hover { transform: none; box-shadow: none; border-color: transparent; }
article.dp-body p { color: inherit; }
article.dp-body .dp-hint, article.dp-body .dp-note, article.dp-body .dp-card p { color: var(--text-muted); }

/* Word Hunt: normal oyundaki gibi tahta üstte, renkli kelimeler hemen altında. */
.dp-body { max-width: 1080px; }
.dp-play-section { scroll-margin-top: 1rem; }
.dp-play-section .dp-game-head { flex-direction: column; align-items: center; gap: .75rem; max-width: 460px; margin: 0 auto 1.25rem; }
.dp-game-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: .5rem; width: 100%; min-height: 44px; }
.dp-game-stats .lx-stat { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 0; text-align: left; }
.dp-game-stats .lx-stat:last-child { align-items: flex-end; text-align: right; }
.dp-game-stats .lx-label { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.dp-game-stats .lx-val { color: var(--text); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.dp-play-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "game" "words"; max-width: 460px; margin: 0 auto; gap: 1rem; align-items: start; }
.dp-play-words { grid-area: words; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.dp-play-words .lx-words { justify-content: center; gap: .5rem; margin: 0; }
.dp-play-words .dp-word { border-radius: 6px; font-size: .8rem; padding: .4rem .6rem; letter-spacing: .03em; }
/* Tahta sayfa yüzeyini paylaşır; ayrı çerçeve veya kaydırma alanı oluşturmaz. */
.dp-game.lx-game { grid-area: game; width: 100%; max-width: 460px; min-width: 0; margin: 0; box-sizing: border-box; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.dp-game-stats #lx-word-preview { position: static; height: auto; min-width: 0; min-height: 44px; margin: 0; pointer-events: none; }
/* Önizleme oyun kutusunun dışında da defter temasındaki okunur yüzeyini korur. */
.dp-game-stats .lx-word-preview-chip { max-width: 100%; box-sizing: border-box; padding: .4rem .6rem; background: var(--nb-paper, #f7f4ec); border: 2px solid var(--nb-ink, #161e46); color: var(--nb-ink, #161e46); font-family: 'Mali', 'Inter', sans-serif; font-size: .9rem; box-shadow: none; }
.dp-game-stats .lx-word-preview-chip span { min-width: 0; overflow-wrap: anywhere; }
.dp-game .lx-grid { margin-bottom: 0; }
.dp-game .lx-grid[aria-busy="true"] { aspect-ratio: 1; background: var(--bg); border-radius: 6px; }
.dp-game .lx-overlay { position: relative; inset: auto; overflow: visible; border-radius: 12px; }
.dp-open { align-self: flex-start; color: var(--text-muted); font-size: .8rem; text-decoration: underline; text-underline-offset: .2em; }
.dp-open:hover { color: var(--text); }
@media (max-width: 420px) {
  .dp-game-stats { gap: .75rem; }
  .dp-game-stats .lx-stat { flex-direction: column; gap: .1rem; }
}

/* Temayı anlatan SEO metni: okunur satır uzunluğu, sade paragraflar. */
.dp-about h2 { margin: 0 0 .8rem; }
.dp-about p { max-width: 68ch; margin: 0 0 .9rem; color: var(--text-muted); line-height: 1.75; }
.dp-about p:last-child { margin-bottom: 0; }

/* Paket içeriği ortak bir orta eksende okunur. */
.dp-crumbs ol { justify-content: flex-start; }
article.dp-body { text-align: center; }
.dp-body .dp-section-head { justify-content: center; }
.dp-body .dp-section h2,
.dp-body .dp-card h2,
.dp-body .dp-related > h2 { text-align: center; }
.dp-body .dp-words,
.dp-body .dp-legend { justify-content: center; }
.dp-body .dp-open { align-self: center; }
.dp-body .dp-about p { margin-left: auto; margin-right: auto; }

/* Temaya kelime katkısı: tek alan, paketle aynı yüzey ve hizalama. */
.dp-suggest > p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
#dp-suggest-form { max-width: 460px; margin: 1.25rem auto 0; }
#dp-suggest-form label { display: block; margin-bottom: .5rem; font-size: .85rem; }
.dp-suggest-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.dp-suggest-row input { width: 100%; min-width: 0; box-sizing: border-box; padding: .75rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 12px; font: inherit; }
.dp-suggest-row button { padding: .75rem 1rem; background: var(--primary); color: #fff; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dp-suggest-row button:active { transform: scale(.98); }
.dp-suggest-row button:disabled { opacity: .65; cursor: wait; }
.dp-suggest-row :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
#dp-suggest-help, #dp-suggest-status { font-size: .8rem; line-height: 1.6; }
#dp-suggest-help { color: var(--text-muted); }
#dp-suggest-status { min-height: 1.6em; }
@media (max-width: 420px) { .dp-suggest-row { grid-template-columns: minmax(0, 1fr); } }
