/* ============================================
   Astra Theme — Скрытые условия бонусов букмекеров
   ============================================ */

/* CSS Variables */
:root {
  --primary: #6b2c91;
  --primary-dark: #4a1f66;
  --secondary: #3e1a52;
  --accent: #10b981;
  --accent-hover: #059669;
  --bg-page: #f3eef7;
  --bg-card: #ffffff;
  --text-body: #1e1533;
  --text-muted: #6b5b7e;
  --header-bg: #6b2c91;
  --footer-bg: #1e1533;
  --border: #dcd0e8;
  --shadow: rgba(107, 44, 145, 0.1);
  --radius: 10px;
  --wrap-max: 1320px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-body);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Layout — Sticky Footer & Three Columns
   ============================================ */

.astra-wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.astra-site {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.astra-main {
  flex-grow: 1;
  padding: 1.5rem 0 3rem;
}

.astra-grid {
  display: grid;
  grid-template-columns: 20% 58% 20%;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .astra-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Header — Magazine Centered
   ============================================ */

.site-header {
  background: var(--header-bg);
  color: #fff;
}

.header-brand {
  text-align: center;
  padding: 1.25rem 0;
}

.header-brand a {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.header-brand a:hover {
  color: #f3e8ff;
}

.header-divider {
  height: 3px;
  background: var(--accent);
  width: 100%;
}

.main-nav {
  background: rgba(0,0,0,0.15);
  padding: 0.75rem 0;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .main-nav ul {
    gap: 1rem;
    padding: 0 1rem;
  }
  .header-brand a {
    font-size: 1.5rem;
  }
}

/* ============================================
   Sidebar Widgets
   ============================================ */

.astra-sidebar {
  position: sticky;
  top: 1.5rem;
}

.widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.widget-title {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--text-body);
}

.widget ul li {
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.widget ul li a {
  font-size: 0.92rem;
  color: var(--text-body);
}

.widget ul li a:hover {
  color: var(--primary);
}

.widget-tags a.astra-tag {
  display: inline;
  font-size: 0.88rem;
  color: var(--primary);
  margin-right: 0.35rem;
}

.widget-tags a.astra-tag:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.35rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================
   Homepage — Hero & Cards
   ============================================ */

.hero-section {
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.04);
  transform: rotate(15deg);
  pointer-events: none;
}

.hero-title {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  position: relative;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Homepage card grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Article Cards — Horizontal Layout
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(107, 44, 145, 0.18);
  transform: translateY(-3px);
}

.card-image {
  width: 35%;
  min-width: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: var(--text-body);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

@media (max-width: 640px) {
  .card {
    flex-direction: column;
  }
  .card-image {
    width: 100%;
    height: 180px;
  }
}

/* Category grid (same as home but single column option via media) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ============================================
   Article Page
   ============================================ */

.article-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 10px var(--shadow);
}

.article-header {
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

.article-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.25rem;
}

.featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article body wrapper */
.article-body {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  color: var(--text-body);
  margin-top: 1.8rem;
  margin-bottom: 0.85rem;
}

.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p {
  margin-bottom: 1.1rem;
}

/* Drop caps on first paragraph (randomly applied via JS or limited use) */
.article-body.dropcaps > p:first-of-type::first-letter {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.5rem;
  color: var(--primary);
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-body ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

.article-body ol li {
  list-style: decimal;
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--primary-dark);
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.article-body figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.article-body thead {
  background: var(--primary);
  color: #fff;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-body tbody tr:nth-child(even) {
  background: #faf7fc;
}

.article-body tbody tr:hover {
  background: #f3eef7;
}

/* Blockquotes */
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #faf7fc, #f3eef7);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-body);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Infobox */
.article-body .infobox {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.article-body .infobox strong {
  color: var(--accent-hover);
}

/* Stat block */
.article-body .stat-block {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
}

.article-body .stat-block .stat-number {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.article-body .stat-block .stat-label {
  font-size: 0.95rem;
  opacity: 0.92;
}

/* Pull quote (decorative) */
.article-body .pull-quote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.article-body .pull-quote::before {
  content: '"';
  font-family: 'PT Serif', serif;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  line-height: 1;
}

/* Step box */
.article-body .step-box {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.article-body .step-box .step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Highlighted phrase */
.article-body .highlight {
  background: linear-gradient(transparent 60%, rgba(16, 185, 129, 0.25) 60%);
  padding: 0 2px;
}

/* Article tags at bottom */
.article-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.article-tags .tags-label {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.article-tags a.astra-tag {
  color: var(--primary);
  margin-right: 0.35rem;
}

.article-tags a.astra-tag:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Related articles block */
.related-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #faf7fc, #f3eef7);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.related-block h3 {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-body);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-list >li{
  display: flex;
}

.related-list a {
  color: var(--text-body);
  font-size: 0.97rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-list a:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--primary);
}

/* ============================================
   Footer — Creative Asymmetric
   ============================================ */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.footer-watermark {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 4.5rem;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-content {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.footer-right {
  width: 58%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 768px) {
  .footer-right {
    width: 100%;
  }
  .footer-watermark {
    font-size: 3rem;
    bottom: 0;
  }
}

/* ============================================
   Overview / All Articles Page
   ============================================ */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Tag Page
   ============================================ */

.tag-header {
  margin-bottom: 1.5rem;
}

.tag-header h1 {
  font-size: 1.8rem;
}

/* ============================================
   Utility
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
