/*
Theme Name: ScoreBax Minimal
Theme URI: https://scorebax.local
Author: ScoreBax
Description: Lightweight WordPress theme aligned with the core-frontend visual language.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: scorebax-minimal
*/

:root {
  --sb-bg: #071124;
  --sb-bg-soft: #0d1c36;
  --sb-text: #eaf0ff;
  --sb-muted: #b6c5e6;
  --sb-accent: #0b254b;
  --sb-accent-2: #12356a;
  --sb-accent-3: #1d4f97;
  --sb-border: rgba(182, 197, 230, 0.16);
  --sb-radius: 12px;
  --sb-content: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(130deg, rgba(4, 10, 24, 0.78), rgba(7, 17, 36, 0.86)),
    radial-gradient(circle at 85% 15%, rgba(20, 224, 161, 0.18), transparent 35%),
    radial-gradient(circle at 15% 0%, rgba(34, 168, 255, 0.24), transparent 30%),
    var(--sb-bg);
  color: var(--sb-text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  line-height: 1.55;
}

a {
  color: var(--sb-text);
  text-decoration-color: rgba(234, 240, 255, 0.4);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-color: rgba(234, 240, 255, 0.85);
}

h1,
h2,
h3,
.site-title {
  margin: 0 0 0.7rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--sb-muted);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--sb-border);
  background: rgba(7, 17, 36, 0.9);
  backdrop-filter: blur(8px);
}

.site-header__inner,
.site-footer__inner,
.layout,
.hero,
.section {
  width: min(var(--sb-content), 92vw);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.site-title-link {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sb-text);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--sb-muted);
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--sb-text);
}

.layout {
  padding: 2.2rem 0 3.2rem;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero .kicker {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b9cdfa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p {
  max-width: 64ch;
}

.button,
.wp-block-button__link,
input[type='submit'] {
  display: inline-block;
  border: 1px solid rgba(202, 220, 255, 0.3);
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: #eff5ff;
  background: linear-gradient(130deg, var(--sb-accent) 0%, var(--sb-accent-2) 58%, var(--sb-accent-3) 100%);
  box-shadow: 0 10px 28px rgba(2, 12, 38, 0.34);
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
input[type='submit']:hover {
  filter: brightness(1.08);
}

.section {
  padding: 2rem 0;
}

.posts-stack {
  display: grid;
  gap: 1rem;
}

.posts-stack .post .button {
  margin-top: 0.35rem;
}

.post-thumb-link,
.post-thumb-wrap {
  display: block;
  margin-bottom: 0.85rem;
}

.post-thumb {
  display: block;
  width: 100%;
  border-radius: calc(var(--sb-radius) - 2px);
  border: 1px solid rgba(182, 197, 230, 0.22);
  object-fit: cover;
}

.cards {
  display: grid;
  gap: 0.9rem;
}

.card,
article.post,
article.page,
.widget,
input,
textarea,
select {
  border: 1px solid rgba(182, 197, 230, 0.15);
  border-radius: var(--sb-radius);
  background: linear-gradient(180deg, rgba(13, 28, 54, 0.92), rgba(9, 21, 42, 0.82));
}

.card,
article.post,
article.page,
.widget {
  padding: 1rem;
}

.post-title,
.entry-title {
  margin-bottom: 0.25rem;
}

.post-meta {
  margin: 0 0 0.8rem;
  color: var(--sb-muted);
  font-size: 0.88rem;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.pagination,
.posts-navigation,
.post-navigation {
  margin-top: 1.4rem;
}

.pagination .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--sb-text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(182, 197, 230, 0.75);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sb-text);
}

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

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 1.8rem;
  color: var(--sb-muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .main-nav ul {
    width: max-content;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
