/*
Theme Name: tk777 Cinematic Bengali Guide
Theme URI: https://tk777.buzz/
Author: tk777 বাংলা সম্পাদকীয় দল
Description: tk777-এর স্বতন্ত্র বাংলা তথ্য সাইটের জন্য Dark Cinematic Image Story থিম।
Version: 1.0.0
Text Domain: tk777-cinematic
*/

:root {
  --bg: #0b0c0d;
  --surface: #141618;
  --card: #1b1d20;
  --accent: #f2c94c;
  --accent-strong: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --content: 820px;
  --wide: 1240px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: var(--text);
  font-family: "Nirmala UI", "Vrinda", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 6%, rgba(242, 201, 76, .08), transparent 34rem),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #ffe58b; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; z-index: 9999; top: 10px; left: 10px;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip: auto; background: var(--accent); color: #0b0c0d; border-radius: 999px;
}
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 70px;
  border-bottom: 1px solid rgba(242, 201, 76, .16);
  background: rgba(11, 12, 13, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--wide), calc(100% - 48px)); min-height: 70px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-brand {
  color: var(--text); font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em;
  text-decoration: none; white-space: nowrap;
}
.site-brand span { color: var(--accent); }
.site-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 13px;
  border-radius: 999px; color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a {
  background: rgba(242, 201, 76, .1); color: var(--text);
}
.nav-toggle {
  display: none; min-width: 48px; min-height: 48px; padding: 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-lines { position: relative; margin: auto; }
.nav-toggle-lines::before { position: absolute; top: -7px; }
.nav-toggle-lines::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.site-main { min-height: 65vh; }
.content-shell { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; padding: 70px 0 96px; }
.page-intro { padding: 30px 0 22px; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; color: var(--accent); font-size: .78rem;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--text); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 920px; margin: 0 auto 26px; font-size: clamp(40px, 6vw, 76px); }
h2 { margin: 92px 0 24px; font-size: clamp(32px, 4.2vw, 44px); }
h3 { margin: 42px 0 16px; font-size: clamp(24px, 3vw, 30px); }
.page-intro p { max-width: 780px; margin: 0 auto; color: #d9d9d5; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.7; }
p { margin: 0 0 1.35em; }
strong { color: #fff; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .55em; }
.lead { color: #deded9; font-size: 1.08em; }
.section-kicker {
  display: block; margin-bottom: 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.inline-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 11px 22px;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #111; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 28px rgba(242, 201, 76, .12);
}
.inline-cta:hover { background: #ffe17b; color: #111; transform: translateY(-1px); }
.inline-link { font-weight: 750; }
.media-wide {
  width: min(var(--wide), calc(100vw - 48px)); margin: 42px 0 58px 50%; transform: translateX(-50%);
}
.media-wide img, .media-standard img {
  width: 100%; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface);
}
.media-standard { margin: 34px 0 46px; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .83rem; text-align: center; }
.table-wrap { width: 100%; margin: 30px 0 44px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .91rem; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { position: sticky; left: 0; background: #202225; color: var(--accent); font-weight: 750; }
tr:last-child td { border-bottom: 0; }
.steps { margin: 32px 0; padding: 0; counter-reset: step; list-style: none; }
.steps li {
  position: relative; min-height: 62px; margin: 0 0 18px; padding: 16px 18px 16px 72px;
  border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, var(--card), var(--surface));
}
.steps li::before {
  position: absolute; left: 18px; top: 14px; display: grid; width: 38px; height: 38px; place-items: center;
  counter-increment: step; content: counter(step); border-radius: 50%; background: var(--accent); color: #111; font-weight: 900;
}
.notice, .warning {
  margin: 30px 0; padding: 22px 24px; border: 1px solid #3b4038; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--notice);
}
.warning { border-left-color: var(--warning); }
.faq-list { margin: 30px 0; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  position: relative; min-height: 58px; padding: 18px 48px 18px 4px; cursor: pointer; color: var(--text); font-weight: 750; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 8px; top: 17px; content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 36px 20px 4px; color: #d6d6d2; }
.topic-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 16px; }
.topic-selector a {
  display: flex; min-height: 76px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 750; text-decoration: none;
}
.topic-selector a:hover { border-color: var(--accent); background: #22241f; }
.editorial-meta {
  margin-top: 76px; padding: 24px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem;
}
.editorial-meta p { margin-bottom: .5em; }
.correction-form { margin: 34px 0; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field legend { display: block; margin-bottom: 8px; color: var(--text); font-weight: 750; }
input, select, textarea {
  width: 100%; min-height: 48px; border: 1px solid #4a4c50; border-radius: 10px; background: #0e0f10; color: var(--text); font: inherit;
}
input, select { padding: 9px 12px; }
textarea { min-height: 180px; padding: 12px; resize: vertical; }
.checkbox-field { display: flex; min-height: 44px; align-items: flex-start; gap: 12px; padding-block: 8px; }
.checkbox-field input { width: 22px; min-height: 22px; margin-top: 4px; flex: 0 0 auto; }
.form-submit {
  min-height: 48px; padding: 11px 24px; border: 0; border-radius: 999px; background: var(--accent); color: #111; font: inherit; font-weight: 850; cursor: pointer;
}
.form-message { margin: 22px 0; padding: 16px 18px; border-radius: 10px; background: #173528; color: #dff8e8; }
.form-message.error { background: #422221; color: #ffe4df; }
.honeypot { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid rgba(242, 201, 76, .25); background: #090a0b; }
.footer-inner { width: min(var(--wide), calc(100% - 48px)); margin-inline: auto; padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 48px; }
.footer-brand { margin-bottom: 14px; color: var(--text); font-size: 1.4rem; font-weight: 850; }
.footer-copy, .footer-note { color: var(--muted); font-size: .88rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.footer-nav li { margin: 0 0 10px; break-inside: avoid; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-rule { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: #ddd; font-size: .9rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: #92938f; font-size: .8rem; }
.empty-state { text-align: center; }

@media (max-width: 920px) {
  .site-header, .header-inner { min-height: 60px; }
  .header-inner { width: min(var(--wide), calc(100% - 32px)); }
  .nav-toggle { display: block; }
  .site-nav { width: 100%; order: 3; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 14px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .js .site-nav a { padding-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .content-shell { width: min(var(--content), calc(100% - 32px)); padding: 52px 0 64px; }
  .page-intro { padding-top: 18px; }
  h1 { font-size: clamp(36px, 11vw, 52px); }
  h2 { margin-top: 60px; }
  .media-wide { width: calc(100vw - 32px); margin-top: 30px; margin-bottom: 42px; }
  .media-wide img, .media-standard img { border-radius: 12px; }
  .topic-selector, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-nav ul { columns: 1; }
}

@media (max-width: 390px) {
  .header-inner, .content-shell, .footer-inner { width: calc(100% - 32px); }
  .js .site-nav ul { grid-template-columns: 1fr; }
  .media-wide { width: calc(100vw - 32px); }
  .media-wide img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
  .correction-form { padding: 20px 16px; }
  th, td { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
