/*
Theme Name: 2777bet বাংলা গাইড
Theme URI: https://2777bet.beer/
Author: 2777bet.beer সম্পাদকীয় দল
Description: Bangladesh পাঠকের জন্য স্বতন্ত্র বাংলা ব্র্যান্ড ও পণ্য তথ্যসাইট।
Version: 1.0.2
Text Domain: bet2777-guide
*/

:root {
  --bg: #071a17;
  --bg-soft: #0e2823;
  --card: #13342c;
  --gold: #f4c84a;
  --green: #2fc79a;
  --text: #f7faf9;
  --muted: #b5c7c0;
  --border: #2b4a41;
  --notice: #193d34;
  --warning: #e3a23b;
  --focus: #74e0bc;
  --max: 1180px;
  --reading: 780px;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }

.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;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(47, 199, 154, .09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a {
  color: var(--green);
  text-decoration-thickness: .09em;
  text-underline-offset: .2em;
}

a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img, video, iframe { display: block; max-width: 100%; height: auto; }

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 68px;
  background: rgba(7, 26, 23, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  color: var(--text);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.04em;
  text-decoration: none;
}

.site-brand span { color: var(--gold); }

.site-header .site-brand {
  display: inline-flex;
  min-width: 138px;
  height: 42px;
  align-items: center;
}

.site-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }

.primary-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: flex;
  min-height: 48px;
  padding: 10px 15px;
  align-items: center;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--card);
  color: var(--gold);
}

.site-main { min-height: 65vh; }

.article-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 76px 0 52px;
  border-bottom: 1px solid var(--border);
}

.article-header-inner { max-width: 930px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -.025em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

h2 {
  position: relative;
  margin: 0 0 22px;
  padding-top: 8px;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.2;
}

h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  content: "";
}

h3 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: clamp(21px, 2.5vw, 25px);
  line-height: 1.25;
}

.article-lead {
  max-width: 850px;
  margin: 0;
  color: #dce8e3;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.article-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: .92rem;
}

.content-section {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
  padding: 72px 0 0;
  scroll-margin-top: 92px;
}

.content-section:last-child { padding-bottom: 80px; }

.content-section p,
.content-section ul,
.content-section ol { margin-top: 0; margin-bottom: 1.1em; }

.content-section li + li { margin-top: .5em; }

.content-section strong { color: #fff4c6; }

.content-figure {
  width: min(calc(100% - 40px), 1080px);
  margin: 38px auto 0;
}

.content-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.content-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.section-link,
.button-link {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #071a17;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}

.section-link:hover,
.button-link:hover {
  transform: translateY(-2px);
  background: #ffe184;
  color: #071a17;
}

.notice,
.site-boundary {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--notice);
}

.site-boundary { color: #dae8e2; }

.table-wrap {
  width: min(calc(100% - 40px), 1080px);
  margin: 30px auto 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--bg-soft);
}

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th { background: var(--card); color: var(--gold); }
tr:last-child td { border-bottom: 0; }

.steps {
  margin: 28px 0 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 74px;
  margin: 0 0 14px;
  padding: 18px 20px 18px 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: guide-step;
}

.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: var(--bg);
  content: counter(guide-step);
  font-weight: 900;
}

.steps strong { display: block; }

.feedback-form {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.feedback-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #547066;
  border-radius: 10px;
  background: #0b211d;
  color: var(--text);
  font: inherit;
}

.feedback-form textarea { min-height: 150px; resize: vertical; }

.form-status {
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: rgba(47, 199, 154, .12);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #051410;
}

.footer-inner { padding: 52px 0 34px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(300px, 1fr);
  gap: 46px;
  align-items: start;
}

.footer-description { max-width: 520px; color: var(--muted); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
}

.footer-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.footer-note p { margin: .35em 0; }

.not-found {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
  padding: 90px 0;
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-shell, .article-header, .content-section, .content-figure, .table-wrap { width: min(calc(100% - 32px), var(--max)); }
  .site-header, .header-inner { min-height: 60px; }
  .site-brand { font-size: 23px; }
  .site-header .site-brand { min-width: 126px; height: 36px; }
  .site-logo { height: 36px; }
  .menu-toggle { display: inline-flex; }
  .js .primary-nav {
    position: fixed;
    z-index: 60;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 20px 16px;
    border-left: 1px solid var(--border);
    background: var(--bg-soft);
    box-shadow: -18px 20px 40px rgba(0, 0, 0, .35);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s ease;
  }
  .js .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 6px; }
  .primary-nav a { padding-inline: 18px; }
  .article-header { padding: 52px 0 38px; }
  h1 { font-size: clamp(34px, 10vw, 42px); }
  h2 { font-size: clamp(27px, 8vw, 32px); }
  .content-section { padding-top: 48px; }
  .content-section:last-child { padding-bottom: 52px; }
  .section-link, .button-link { width: 100%; }
  .feedback-form { padding: 20px 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 390px) {
  .footer-links { grid-template-columns: 1fr; }
  .steps li { padding: 70px 18px 18px; }
  .steps li::before { top: 16px; left: 18px; }
}

@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; }
}
