/*
Theme Name: GDBet333 Brand Theme
Theme URI: https://gdbet333online.com/
Author: GDBet333 Online
Description: A lightweight, Gutenberg-ready brand and information theme for GDBet333 Online.
Version: 0.1.1
Requires at least: 6.4
Tested up to: 7.1.3
Requires PHP: 7.4
Text Domain: gdbet333-brand-theme
*/

:root {
  --gdb-bg: #101112;
  --gdb-surface: #181a1c;
  --gdb-surface-2: #202327;
  --gdb-text: #f4f1e8;
  --gdb-muted: #b9b7af;
  --gdb-gold: #d7ad45;
  --gdb-gold-dark: #a87b20;
  --gdb-line: #34363a;
  --gdb-positive: #86c79b;
  --gdb-radius: 18px;
  --gdb-shadow: 0 18px 55px rgb(0 0 0 / 25%);
  --gdb-content: 760px;
  --gdb-wide: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--gdb-bg);
  color: var(--gdb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.admin-bar .site-header {
  top: 32px;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gdb-gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #efd681;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #fff1a8;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

p,
ul,
ol {
  margin: 0 0 1.2em;
}

blockquote {
  margin: 2rem 0;
  padding: 1rem 1.35rem;
  border-left: 4px solid var(--gdb-gold);
  background: var(--gdb-surface);
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--gdb-wide));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(16 17 18 / 94%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 1.5rem;
}

.site-branding {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.custom-logo-link {
  display: inline-flex;
}

.custom-logo,
.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.site-title-text {
  font-size: 1.25rem;
  font-weight: 800;
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--gdb-text);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  background: var(--gdb-surface-2);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gdb-line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle-lines::before {
  transform: translateY(-6px);
}

.menu-toggle-lines::after {
  transform: translateY(4px);
}

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

.entry-content,
.entry-header,
.archive-header,
.not-found {
  width: min(calc(100% - 2rem), var(--gdb-content));
  margin-inline: auto;
}

.entry-content {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.home .entry-content {
  width: 100%;
  padding-top: 0;
}

.home .entry-content > .gdb-section {
  width: min(calc(100% - 2rem), var(--gdb-wide));
  margin-inline: auto;
}

.home .gdb-section > h2,
.home .gdb-section > p,
.gdb-wide-content .entry-content > p {
  max-width: var(--gdb-content);
}

.gdb-wide-content .entry-content {
  width: min(calc(100% - 2rem), var(--gdb-wide));
}

.entry-header,
.archive-header,
.not-found {
  padding-top: clamp(3rem, 7vw, 6.5rem);
}

.entry-header + .entry-content {
  padding-top: 2rem;
}

.entry-kicker,
.gdb-eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gdb-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.entry-summary,
.gdb-lead {
  color: var(--gdb-muted);
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  line-height: 1.55;
}

.entry-meta {
  color: var(--gdb-muted);
  font-size: 0.9rem;
}

.gdb-hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 2rem), var(--gdb-wide));
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem);
  margin-inline: auto;
  overflow: hidden;
}

.gdb-hero::before {
  position: absolute;
  inset: 8% 0 auto 45%;
  z-index: -1;
  height: 84%;
  border-radius: 32px;
  background: linear-gradient(135deg, rgb(215 173 69 / 7%), transparent 60%);
  content: "";
}

.gdb-hero > * {
  width: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.gdb-hero__content {
  max-width: 700px;
}

.gdb-hero h1 {
  margin-bottom: 0.2em;
  color: var(--gdb-gold);
}

.gdb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0;
}

.gdb-button,
.wp-element-button,
.wp-block-button__link,
button.gdb-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--gdb-gold);
  border-radius: 10px;
  background: var(--gdb-gold);
  color: #17130a;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.gdb-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button.gdb-button:hover {
  border-color: #ebcc75;
  background: #ebcc75;
  color: #17130a;
  transform: translateY(-1px);
}

.gdb-button--secondary,
.is-style-outline > .wp-block-button__link {
  border-color: var(--gdb-line);
  background: transparent;
  color: var(--gdb-text);
}

.gdb-button--secondary:hover,
.is-style-outline > .wp-block-button__link:hover {
  border-color: var(--gdb-gold);
  background: rgb(215 173 69 / 8%);
  color: #fff;
}

.header-register {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}

.gdb-section,
.entry-content > .wp-block-group:not(.gdb-hero) {
  margin-block: clamp(3.5rem, 8vw, 7rem);
}

.gdb-section:first-child {
  margin-top: 0;
}

.gdb-home-feature {
  max-width: 980px;
}

.gdb-panel,
.wp-block-group.is-style-gdb-panel {
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid var(--gdb-line);
  border-radius: var(--gdb-radius);
  background: linear-gradient(145deg, var(--gdb-surface), #151719);
  box-shadow: var(--gdb-shadow);
}

.gdb-grid,
.gdb-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gdb-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--gdb-line);
  border-radius: 14px;
  background: var(--gdb-surface);
  color: var(--gdb-text);
  text-decoration: none;
}

.gdb-card:hover {
  border-color: var(--gdb-gold-dark);
  color: #fff;
}

.gdb-card__label {
  margin-bottom: 0.55rem;
  color: var(--gdb-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gdb-card__title {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.gdb-card__description {
  margin: 0;
  color: var(--gdb-muted);
  font-size: 0.94rem;
}

.gdb-faq {
  border-top: 1px solid var(--gdb-line);
}

.gdb-faq details {
  border-bottom: 1px solid var(--gdb-line);
}

.gdb-faq summary {
  position: relative;
  padding: 1.15rem 2rem 1.15rem 0;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.gdb-faq summary::after {
  position: absolute;
  right: 0.25rem;
  content: "+";
  color: var(--gdb-gold);
  font-size: 1.25rem;
}

.gdb-faq details[open] summary::after {
  content: "−";
}

.gdb-faq__answer {
  padding: 0 0 1rem;
  color: var(--gdb-muted);
}

.post-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.post-list article {
  padding: 1.4rem;
  border: 1px solid var(--gdb-line);
  border-radius: 14px;
  background: var(--gdb-surface);
}

.post-list h2 {
  font-size: 1.45rem;
}

.page-links,
.pagination {
  margin-top: 2rem;
}

.fact-note {
  padding: 1rem 1.1rem;
  margin-top: 3rem;
  border-left: 3px solid var(--gdb-gold);
  background: var(--gdb-surface);
  color: var(--gdb-muted);
  font-size: 0.9rem;
}

.fact-note p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--gdb-line);
  background: #0b0c0d;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 3rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.footer-title {
  margin-bottom: 0.7rem;
  color: var(--gdb-gold);
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-copy {
  max-width: 680px;
  color: var(--gdb-muted);
  font-size: 0.94rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--gdb-text);
  font-size: 0.92rem;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    min-height: 72px;
  }

  .custom-logo,
  .brand-logo {
    width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--gdb-line);
    background: #111315;
    box-shadow: var(--gdb-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
  }

  .primary-navigation a {
    padding: 0.75rem;
  }

  .header-register {
    display: none;
  }
}

@media (max-width: 782px) {
  html {
    scroll-padding-top: 82px;
    scroll-padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    font-size: 16px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-shell,
  .entry-content,
  .entry-header,
  .archive-header,
  .not-found,
  .gdb-hero {
    width: min(calc(100% - 1.25rem), var(--gdb-wide));
  }

  .home .entry-content {
    width: 100%;
  }

  .home .entry-content > .gdb-section {
    width: min(calc(100% - 1.25rem), var(--gdb-wide));
  }

  .gdb-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3.5rem 0.5rem 4rem;
  }

  .gdb-hero::before {
    inset: 45% -20% 0 20%;
    height: auto;
  }

  .gdb-grid,
  .gdb-content-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    border-top: 1px solid var(--gdb-line);
    background: rgb(13 14 15 / 97%);
    box-shadow: 0 -12px 35px rgb(0 0 0 / 35%);
  }

  .mobile-action-bar .gdb-button {
    min-width: 0;
    min-height: 48px;
    padding-inline: 0.5rem;
    font-size: 0.9rem;
  }

  .site-main :focus {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .custom-logo,
  .brand-logo {
    width: 150px;
  }

  .gdb-actions {
    display: grid;
  }

  .gdb-actions .gdb-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

