/* ==========================================================================
   MOVE 1 STICK - 100% FULL-WIDTH HEADER, FOOTER & ALIGNED LOGO POSITION
   ========================================================================== */

/* 100% FULL-WIDTH HEADER BAR */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  box-sizing: border-box;
}

/* NAV CONTAINER MATCHES GAME STAGE (1040PX) — MOVES LOGO TO GREEN AREA */
.nav-container {
  width: 100%;
  max-width: 1040px; /* Aligns left logo flush with the green box in image */
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* LEFT SIDE: Logo */
.header-left-logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* RIGHT SIDE: Navigation & Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Action Buttons / Navigation Pills in Header */
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.header-nav-btn:hover {
  transform: translateY(-1px);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
}

.header-nav-btn.play-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-nav-btn.play-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.header-nav-btn.levels-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
}

[data-theme="dark"] .header-nav-btn.levels-pill {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.header-nav-btn.levels-pill .star-icon {
  color: #f59e0b;
}

.header-nav-btn.levels-pill .pill-caret {
  font-size: 0.65rem;
  opacity: 0.75;
}

.header-nav-btn.how-to-play-link {
  color: var(--text-muted);
}

.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

/* Circular Buttons */
.icon-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .icon-btn-round {
  background: #334155;
  color: #f8fafc;
}

.icon-btn-round:hover {
  transform: translateY(-2px);
}

.dark-mode-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
}

[data-theme="dark"] .dark-mode-btn {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   SEARCH MODAL STYLING (ACTIVE SEARCH FEATURE)
   ========================================================================== */
.search-modal-window {
  max-width: 480px;
}

.search-form-wrap {
  width: 100%;
  margin-bottom: 16px;
}

.search-input-group {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border: 2px solid var(--border-color);
  border-radius: 9999px;
  background: var(--bg-subtle);
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.search-input-group:focus-within {
  border-color: #3b82f6;
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input-group input {
  flex: 1;
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-main);
  outline: none;
  box-sizing: border-box;
}

.btn-search-go {
  padding: 0 20px;
  height: 100%;
  min-height: 44px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-search-go:hover {
  opacity: 0.92;
}

.search-quick-tags {
  width: 100%;
  margin-bottom: 18px;
  text-align: left;
}

.search-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.search-tag-chip {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-tag-chip:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.mobile-drawer {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 16px 0;
  box-shadow: var(--shadow-sm);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-list a {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 4px 0;
}

/* Content Articles */
.content-article-section {
  max-width: 880px;
  width: 100%;
  margin: 36px auto 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-sizing: border-box;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.article-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ea580c;
  margin-bottom: 6px;
}

.article-heading {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.article-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-body strong {
  color: var(--text-main);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

table.segment-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

table.segment-matrix th,
table.segment-matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

table.segment-matrix th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 800;
  color: var(--text-main);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.strategy-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.strategy-item .strat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: #3b82f6;
  margin-bottom: 4px;
}

.strategy-item h4 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.faq-icon-arrow {
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

/* ==========================================================================
   AUTHOR BIO CARD STYLING (E-E-A-T)
   ========================================================================== */
.author-bio-section {
  width: 100%;
  max-width: 1040px;
  margin: 36px auto 0;
  padding: 0 10px;
  box-sizing: border-box;
}

.author-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.author-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  font-family: var(--font-main);
  user-select: none;
}

.author-meta-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-eyebrow-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2563eb;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

[data-theme="dark"] .author-eyebrow-tag {
  color: #60a5fa;
}

.author-name-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  display: inline-block;
  border-bottom: 2px dotted #2563eb;
  width: fit-content;
}

[data-theme="dark"] .author-name-title {
  border-bottom-color: #60a5fa;
}

.author-bio-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-bio-text strong {
  color: var(--text-main);
}

.author-bio-more {
  margin: 2px 0 0;
}

.author-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.15s ease;
}

.author-about-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  transform: translateX(2px);
}

[data-theme="dark"] .author-about-link {
  color: #60a5fa;
}

.author-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.author-footer-brand strong { color: var(--text-main); }
.author-footer-date strong { color: #2563eb; }
[data-theme="dark"] .author-footer-date strong { color: #60a5fa; }

/* ==========================================================================
   100% FULL-WIDTH FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
  padding: 42px 0 24px;
  box-sizing: border-box;
  width: 100%;
}

.footer-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  box-sizing: border-box;
}

.footer-col h5 {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-bottom {
  width: 100%;
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 20px 10px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  box-sizing: border-box;
}