/*
Theme Name: 555qq বাংলা তথ্যকেন্দ্র
Theme URI: https://555qq.beer/
Author: 555qq বাংলা তথ্যকেন্দ্র
Description: 555qq সম্পর্কে স্বাধীন বাংলা ব্র্যান্ড, পণ্য ও ব্যবহার-তথ্যের জন্য নির্মিত থিম।
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: qq-guide
*/

:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --panel: #1b1d20;
  --panel-soft: #20231f;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --line: #303236;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --success: #6fbf9f;
  --danger: #dd756c;
  --site-width: 1240px;
  --reading-width: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
  --font: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 5%, rgba(242, 201, 76, .07), transparent 24rem),
    radial-gradient(circle at 90% 32%, rgba(0, 106, 78, .06), transparent 30rem);
}
a { color: var(--gold); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; padding: 12px; clip: auto; background: var(--text); color: var(--bg); }
.site-shell { width: min(calc(100% - 48px), var(--site-width)); margin-inline: auto; }
.reading { width: min(100%, var(--reading-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(11, 12, 13, .88);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 70px; align-items: center; gap: 28px; }
.brand-mark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 1.52rem;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark__text { display: inline-flex; align-items: baseline; }
.brand-mark__digits { color: var(--text); }
.brand-mark__letters { color: var(--gold); }
.brand-mark__spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, .12);
}
.brand-mark:hover .brand-mark__digits { color: #fff; }
.brand-mark:hover .brand-mark__letters { color: var(--focus); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--text); }
.header-cta, .button-link, .submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #171509;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.header-cta:hover, .button-link:hover, .submit-button:hover { background: var(--focus); color: #171509; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; content: ""; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-cta { display: none; }

.article-header { padding: 96px 0 64px; text-align: center; }
.article-header .reading { max-width: 900px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.17; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin-bottom: 26px; font-size: clamp(40px, 6vw, 76px); }
h2 { margin-bottom: 24px; font-size: clamp(32px, 4vw, 44px); }
h3 { margin: 34px 0 14px; font-size: clamp(23px, 3vw, 29px); }
.lead { margin: 0 auto; color: #deded9; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.7; }
.updated { display: block; margin-top: 22px; color: var(--muted); font-size: .84rem; }

.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 42px;
  margin-top: -26px;
  flex-wrap: wrap;
}
.home-hero-actions__secondary { border-color: var(--line); background: var(--panel); color: var(--text); }
.home-hero-actions__secondary:hover { border-color: var(--gold); background: var(--panel-soft); color: var(--focus); }

.content-section { padding: 84px 0; border-top: 1px solid rgba(255,255,255,.055); }
.content-section:first-of-type { border-top: 0; }
.content-section p { margin: 0 0 1.25em; }
.content-section ul, .content-section ol { padding-left: 1.35em; }
.content-section li { margin-bottom: .6em; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.section-image { width: min(100%, var(--site-width)); margin: 42px auto 46px; }
.section-image img { width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-image figcaption { width: min(100%, var(--reading-width)); margin: 12px auto 0; color: var(--muted); font-size: .84rem; }
.inline-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; font-weight: 800; }
.inline-link::after { content: "→"; transition: transform .2s ease; }
.inline-link:hover::after { transform: translateX(4px); }

.table-wrap { margin: 34px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: .85rem; }
tr:last-child td { border-bottom: 0; }

.steps { margin: 30px 0; padding: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; min-height: 72px; padding: 18px 18px 18px 76px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.steps li::before { position: absolute; top: 16px; left: 18px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--gold); color: #151309; font-weight: 900; content: counter(step); counter-increment: step; }
.steps strong { display: block; color: var(--text); }
.note { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--panel-soft); color: #deded9; }
.note.warning { border-left-color: var(--warning); }

.faq-list { margin-top: 30px; }
.faq-list details { border-top: 1px solid var(--line); background: transparent; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; min-height: 64px; padding: 18px 52px 18px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 17px; right: 4px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 52px 22px 0; color: var(--muted); }

.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin-top: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--panel), var(--panel-soft)); }
.page-cta p { margin: 0; font-weight: 700; }
.editorial-note { color: var(--muted); font-size: .92rem; }

.correction-form { display: grid; gap: 18px; margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.correction-form label { display: block; margin-bottom: 7px; color: var(--text); font-size: .9rem; font-weight: 800; }
.correction-form input, .correction-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #111315; color: var(--text); }
.correction-form textarea { min-height: 140px; resize: vertical; }
.form-status { padding: 14px 16px; border: 1px solid var(--success); border-radius: 10px; color: var(--success); }

.site-footer { padding: 58px 0 34px; border-top: 1px solid rgba(242,201,76,.45); background: #090a0b; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { margin: 0 0 14px; font-size: 1.5rem; font-weight: 900; }
.footer-title { margin: 0 0 12px; color: var(--gold); font-size: .82rem; font-weight: 800; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-copy { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.footer-bottom { padding-top: 26px; margin-top: 34px; border-top: 1px solid var(--line); color: #8f918c; font-size: .8rem; }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(48px, 9vw, 94px); }

@media (max-width: 900px) {
  .header-inner { min-height: 60px; }
  .site-header { min-height: 60px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 60px; right: 0; left: 0; display: none; padding: 14px 24px 24px; border-bottom: 1px solid var(--line); background: #0b0c0d; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .primary-nav a { width: 100%; min-height: 48px; }
  .header-cta { margin: 12px 0 12px 10px; }
  .mobile-cta { display: inline-flex; }
  .desktop-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--site-width)); }
  .article-header { padding: 56px 0 36px; }
  h1 { font-size: clamp(36px, 11vw, 50px); }
  .content-section { padding: 56px 0; }
  .section-image { margin: 30px auto 34px; }
  .section-image img { border-radius: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .page-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-about { grid-column: auto; }
  table { min-width: 620px; }
	.home-hero-actions { gap: 10px; padding-bottom: 28px; margin-top: -10px; }
	.home-hero-actions .button-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.site-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px;
  background: rgba(9, 13, 24, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48), 0 4px 12px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}

.site-bottom-cta__login {
  color: #fff !important;
  background: #20283a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.site-bottom-cta__login:hover {
  color: #fff !important;
  background: #2d3850;
  transform: translateY(-2px);
}

.site-bottom-cta__register {
  color: #07130c !important;
  background: linear-gradient(135deg, #46f28c 0%, #14c968 100%);
  box-shadow: 0 8px 22px rgba(20, 201, 104, .42), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.site-bottom-cta__register:hover {
  color: #07130c !important;
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(20, 201, 104, .56), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.site-bottom-cta__button:active {
  transform: translateY(0) scale(.97);
}

.site-bottom-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .site-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    gap: 7px;
    padding: 7px;
  }

  .site-bottom-cta__button {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-bottom-cta__register {
    flex-grow: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bottom-cta__button {
    transition: none;
  }
}
