/* ============================================================
   Variables — Spinbet: dark purple + green
   ============================================================ */

:root {
  --color-bg:          #0d0d1a;
  --color-bg-card:     #141428;
  --color-bg-header:   #080814;
  --color-bg-footer:   #080814;
  --color-text:        #ffffff;
  --color-text-muted:  #8888b8;
  --color-accent:      #22c55e;
  --color-accent-alt:  #a78bfa;
  --color-border:      #1e1e38;
  --color-table-head:  #191930;
  --color-table-row:   #0f0f24;
  --font-main:         'Inter', sans-serif;
  --radius:            8px;
  --max-width:         1200px;
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background-color: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}
.custom-logo-link:hover {
  text-decoration: none;
}

.custom-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn--full {
  display: flex;
  width: 100%;
  justify-content: center;
}

.btn--ghost {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}

.btn--primary {
  color: #ffffff;
  background: var(--color-accent);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.site-nav__list a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__list a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================================
   Main content
   ============================================================ */

.site-main {
  min-height: calc(100vh - 64px - 80px);
  padding: 48px 0;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--color-text);
}

.page-body {
  width: 100%;
}

.page-body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.75;
}

.page-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text-muted);
}

.page-body img {
  border-radius: var(--radius);
  margin: 1.75rem 0;
  height: auto;
}

.page-body figure {
  margin: 1.75rem 0;
}

.page-body figure img {
  margin: 0;
}

.page-body figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.page-body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-body .alignleft {
  float: left;
  margin: 0.25rem 1.75rem 1rem 0;
}

.page-body .alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.75rem;
}

.page-body .alignwide {
  width: 100%;
}

.page-body::after {
  content: '';
  display: table;
  clear: both;
}

.page-body ul,
.page-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--color-text);
  line-height: 1.75;
}

.page-body li {
  margin-bottom: 0.4rem;
}

/* ============================================================
   Footer
   ============================================================ */

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

.site-footer__widgets-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--color-border);
}

.site-footer__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 40px;
}

.site-footer__widget {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer__widget a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-footer__widget a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__widget-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .site-footer__widgets {
    grid-template-columns: 1fr;
  }
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer__list {
  list-style: none;
  display: flex;
  gap: 24px;
}

.site-footer__list a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-footer__list a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================================
   Tables
   ============================================================ */

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  background-color: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-body table thead {
  background-color: var(--color-table-head);
}

.page-body table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.page-body table td {
  padding: 12px 16px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.page-body table tbody tr:last-child td {
  border-bottom: none;
}

.page-body table tbody tr:nth-child(even) {
  background-color: var(--color-table-row);
}

.page-body table tbody tr:hover {
  background-color: var(--color-table-head);
}

/* ============================================================
   Gutenberg Button block
   ============================================================ */

.wp-block-buttons {
  width: 100%;
}

.wp-block-button {
  width: 100%;
}

.wp-block-button__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid transparent;
}
.wp-block-button__link:hover {
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  background: transparent;
}

.wp-block-button.wp-block-button__width-100 {
  width: 100%;
}
.wp-block-button.wp-block-button__width-100 .wp-block-button__link {
  width: 100%;
}

/* ============================================================
   Badge
   ============================================================ */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--green  { background: rgba(34, 197, 94, 0.15);  color: #22c55e; }
.badge--purple { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.badge--yellow { background: rgba(245, 158, 11, 0.15);  color: #f59e0b; }
