/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: particle-wave, футер: columns, стиль: pitch-green.
Version: 1.1.10
Author: Site Builder Plugin
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sb-font-body, "Segoe UI", system-ui, -apple-system, sans-serif);
    font-size: var(--sb-font-size, 16px);
    line-height: var(--sb-line-height, 1.6);
    color: var(--sb-color-text, #222);
    background: var(--sb-color-bg, #fff);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-color-link, #2271b1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Site wrapper ===== */
.sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sb-site-content {
    flex: 1;
    padding: 32px 20px;
    max-width: var(--sb-content-max-width, 920px);
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading, var(--sb-font-body, sans-serif));
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }

/* ===== Content elements ===== */
.sb-content figure { margin: 24px 0; }
.sb-content figure img { border-radius: 4px; }
.sb-content figcaption {
    font-size: 0.9em;
    color: var(--sb-color-muted, #666);
    text-align: center;
    margin-top: 6px;
}
.sb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sb-content th, .sb-content td {
    padding: 8px 12px;
    border: 1px solid var(--sb-color-border, #e2e8f0);
    text-align: left;
}
.sb-content th {
    background: var(--sb-color-bg-alt, #f8f9fa);
    font-weight: 600;
}
.sb-content blockquote {
    border-left: 4px solid var(--sb-color-accent, #2271b1);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    color: var(--sb-color-muted, #555);
}
.sb-content code {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.sb-content pre {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ===== Variant-specific styles (header, footer, color scheme) injected below ===== */

/* pitch-green — sport / betting colour scheme.
   Deep pitch green as the anchor, amber accent like a marker line or a ball
   under floodlights, clean neutral text. Light-first, high contrast. */
:root {
    --sb-color-bg:              #ffffff;
    --sb-color-bg-alt:          #f2f6f3;
    --sb-color-text:            #14231a;
    --sb-color-muted:           #5d6b62;
    --sb-color-link:            #0f7a4a;
    --sb-color-border:          #d8e3db;
    --sb-color-accent:          #f2a900;

    --sb-font-body:             "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --sb-font-heading:          "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.65;
    --sb-content-max-width:     920px;
}

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}

body.sb-site h1,
body.sb-site h2,
body.sb-site h3,
body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    letter-spacing: -0.01em;
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.sb-site a:hover {
    color: var(--sb-color-accent);
}

/* Accent underline under H2 — a pitch-marker touch that ties the scheme
   to the sport theme without adding markup. */
body.sb-site .sb-content h2 {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--sb-color-accent);
    display: inline-block;
}


/* ===== Header variant: particle-wave ===== */
/* templates/theme/headers/particle-wave.css */

.sb-header-particle-wave {
    position: relative;
    z-index: 1000;
    background: var(--sb-color-bg, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.sb-header-particle-wave.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sb-header-particle-wave a {
    text-decoration: none;
}

.sb-header-particle-wave a::after {
    display: none !important;
    content: none !important;
}

/* Particle canvas background */
.sb-header-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sb-header-particle-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 1;
}

/* Brand */
.sb-header-particle-brand {
    flex-shrink: 0;
    z-index: 2;
}

.sb-header-particle-brand a {
    display: flex;
    align-items: center;
    color: var(--sb-color-text, #111);
    font-size: 24px;
    font-weight: 900;
    font-family: var(--sb-font-heading, sans-serif);
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
    position: relative;
}

.sb-header-particle-brand a:hover {
    transform: scale(1.05);
}

.sb-header-particle-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Navigation */
.sb-header-particle-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.sb-header-particle-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-particle-item {
    margin: 0;
    position: relative;
}

/* Menu items */
.sb-particle-link,
.sb-particle-pill {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sb-particle-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sb-color-link, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sb-particle-link:hover::before,
.sb-particle-item.current-menu-item .sb-particle-link::before {
    opacity: 1;
}

.sb-particle-link-text {
    color: var(--sb-color-text, #111);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.sb-particle-link:hover .sb-particle-link-text,
.sb-particle-item.current-menu-item .sb-particle-link-text {
    color: #fff;
}

.sb-particle-link:hover,
.sb-particle-pill:hover {
    transform: translateY(-2px);
    border-color: var(--sb-color-link, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.sb-particle-item.current-menu-item .sb-particle-link {
    border-color: var(--sb-color-link, #2563eb);
}

/* Dropdown pill */
.sb-particle-pill {
    padding: 0;
    gap: 4px;
}

.sb-particle-pill-link {
    color: var(--sb-color-text, #111);
    font-size: 15px;
    font-weight: 600;
    padding: 0 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

.sb-particle-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-color-text, #111);
    transition: color 0.3s ease;
    z-index: 1;
}

.sb-particle-pill:hover .sb-particle-pill-link,
.sb-particle-pill:hover .sb-particle-trigger,
.sb-particle-item.sb-dropdown-open .sb-particle-pill-link,
.sb-particle-item.sb-dropdown-open .sb-particle-trigger {
    color: #fff;
}

.sb-particle-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sb-color-link, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 22px;
}

.sb-particle-pill:hover::before,
.sb-particle-item.sb-dropdown-open .sb-particle-pill::before {
    opacity: 1;
}

.sb-particle-caret {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sb-particle-item.sb-dropdown-open .sb-particle-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.sb-particle-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--sb-color-link, #2563eb);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    z-index: 999;
}

.sb-particle-item.sb-dropdown-open .sb-particle-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sb-particle-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.sb-particle-dropdown-grid::-webkit-scrollbar {
    width: 6px;
}

.sb-particle-dropdown-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.sb-particle-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-link, #2563eb);
    border-radius: 10px;
}

.sb-particle-dropdown a {
    color: var(--sb-color-text, #111);
    padding: 10px 14px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sb-particle-dropdown a:hover {
    background: var(--sb-color-link, #2563eb);
    color: #fff;
    transform: translateX(4px);
}

/* Mobile toggle */
.sb-header-particle-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--sb-color-link, #2563eb);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    transition: all 0.3s ease;
}

.sb-header-particle-toggle:hover,
.sb-header-particle-toggle[aria-expanded="true"] {
    background: var(--sb-color-link, #2563eb);
}

.sb-header-particle-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sb-header-particle-toggle:hover span,
.sb-header-particle-toggle[aria-expanded="true"] span {
    background: #fff;
}

.sb-header-particle-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sb-header-particle-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sb-header-particle-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 968px) {
    .sb-header-particle-inner {
        padding: 12px 20px;
    }

    .sb-header-particle-toggle {
        display: flex;
    }

    .sb-header-particle-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 2px solid var(--sb-color-link, #2563eb);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .sb-header-particle-nav.is-open {
        display: block;
    }

    .sb-header-particle-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 8px;
    }

    .sb-particle-link,
    .sb-particle-pill {
        width: 100%;
        border-radius: 12px;
        justify-content: space-between;
    }

    .sb-particle-dropdown {
        position: static;
        transform: none;
        margin-top: 8px;
        display: none;
    }

    .sb-particle-item.sb-dropdown-open .sb-particle-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sb-particle-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .sb-header-particle-brand a {
        font-size: 20px;
    }

    .sb-header-particle-brand img {
        max-height: 32px;
    }

    .sb-particle-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-header-particle-wave,
    .sb-particle-link,
    .sb-particle-pill,
    .sb-particle-dropdown {
        transition: none !important;
    }
}

.sb-header-particle-brand h1 {
    margin: 0!important;
}

body.sb-site h1 {
   margin: 0!important;
}

/* ===== Footer variant: columns ===== */
/* columns — Колонки */
.sb-footer-columns { background: var(--sb-color-bg-alt, #f8f9fa); border-top: 1px solid var(--sb-color-border, #e5e7eb); padding: 40px 20px 20px; color: var(--sb-color-text); margin-top: 40px; } .sb-footer-columns .sb-footer-inner { max-width: var(--sb-content-max-width, 920px); margin: 0 auto; } .sb-footer-columns .sb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; } .sb-footer-columns .sb-footer-col { font-size: 0.9em; } .sb-footer-columns .sb-footer-heading { margin: 0 0 12px; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sb-color-muted, #6b7280); font-weight: 600; } .sb-footer-columns .sb-footer-brand img { max-height: 40px; width: auto; margin-bottom: 8px; } .sb-footer-columns .sb-footer-brand-text { font-weight: 700; font-size: 1.1em; color: var(--sb-color-text); } .sb-footer-columns .sb-footer-tagline { margin: 6px 0 0; color: var(--sb-color-muted); font-size: 0.92em; line-height: 1.55; } .sb-footer-columns .sb-menu, .sb-footer-columns .sb-footer-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .sb-footer-columns .sb-menu a, .sb-footer-columns .sb-footer-info-list a { color: var(--sb-color-text); text-decoration: none; } .sb-footer-columns .sb-menu a:hover, .sb-footer-columns .sb-footer-info-list a:hover { color: var(--sb-color-link); text-decoration: underline; } .sb-footer-columns .sb-footer-copyright { padding-top: 18px; border-top: 1px solid var(--sb-color-border, #e5e7eb); color: var(--sb-color-muted, #6b7280); font-size: 0.85em; text-align: center; } @media (max-width: 700px) { .sb-footer-columns .sb-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

