
:root {
    /* Цветовая палитра (Dark Modern Theme) */
    --color-bg-main: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-card: #334155;
    
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-accent: #06b6d4;
    --color-success: #22c55e;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #475569;

    /* Типографика */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Отступы и размеры */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.5rem;

    /* Эффекты */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-neon: 0 0 15px rgba(59, 130, 246, 0.5);
    
    --transition-base: all 0.3s ease;
}

/* Сброс и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: var(--line-height-base);
    overflow-x: hidden;
}

/* Ссылки */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Layout Containers */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container, .site-content-inner, .main-navigation-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header & Navigation */
.main-navigation {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Content Area */
.site-content {
    padding: var(--spacing-lg) 0;
    animation: fadeIn 0.8s ease-out;
}

#primary {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Article Styling */
.article-post {
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.entry-content ul {
    list-style: none;
    margin-bottom: var(--spacing-md);
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.entry-content ul li::before {
    content: "➝";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) auto;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Buttons & Interactive Elements */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.btn, .button, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff !important; /* Force override inline styles if needed */
    background: linear-gradient(90deg, var(--color-success), #16a34a);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover, .button:hover, button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
    background: linear-gradient(90deg, #16a34a, var(--color-success));
}

.btn:active {
    transform: translateY(0);
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.25rem;
    max-width: 400px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-field {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    width: 100%;
    outline: none;
}

.search-submit {
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: unset;
}

.search-submit::after {
    content: "🔍"; /* Simple icon fallback */
    font-size: 0.8rem;
    filter: invert(1);
}

/* Footer */
.site-footer {
    background-color: #020617;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    text-align: center;
}

.footer-info {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Scroll Top Button */
.scrolltop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
}

.scrolltop::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    transform: rotate(45deg);
    margin-top: 4px;
}

.scrolltop.is-active, .scrolltop:hover { /* Assuming JS toggles a class or strictly hover for now */
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific adjustments for 1xBet Brand Colors styling within article */
.btn[style*="background-color:#80ae30"] {
    background: linear-gradient(135deg, #80ae30 0%, #6a9126 100%) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
    }

    .article-post {
        padding: var(--spacing-sm);
    }

    h1.entry-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }
    
    .scrolltop {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Utility Classes */
.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;
}
