
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Цветовая палитра (Dark Theme for Gaming/Casino Vibe) */
    --color-bg-body: #0f1115;
    --color-bg-card: #1a1d24;
    --color-bg-input: #252830;
    
    --color-primary: #ff5e00;
    --color-primary-dark: #cc4b00;
    --color-secondary: #ffcc00;
    --color-accent: #ff004c;
    
    --color-text-main: #f0f2f5;
    --color-text-muted: #949aa3;
    --color-border: #2d323b;

    /* Градиенты */
    --gradient-btn: linear-gradient(135deg, #ff5e00 0%, #ff9900 100%);
    --gradient-btn-hover: linear-gradient(135deg, #ff7a2e 0%, #ffaa2e 100%);
    --gradient-header: linear-gradient(to bottom, #1a1d24 0%, #0f1115 100%);

    /* Типографика */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --line-height-base: 1.6;
    
    /* Размеры и отступы */
    --container-width: 75rem; /* ~1200px */
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 94, 0, 0.3);
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

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

/* =========================================
   2. Layout & Container
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   3. Header Styling
   ========================================= */
.site-header {
    background: var(--gradient-header);
    border-bottom: 1px solid var(--color-border);
    padding: var(--gap-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-md);
}

.site-branding .site-logotype {
    /* Fallback styles if no image provided in HTML */
    width: 150px;
    height: 40px;
    background-color: var(--color-bg-input);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.site-branding .site-logotype::after {
    content: 'LOGO';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-text-muted);
    font-weight: bold;
    font-size: 0.875rem;
}

/* Hamburger Menu */
.mob-hamburger {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--color-bg-input);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.mob-hamburger:hover {
    background: var(--color-border);
}

.mob-hamburger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-main);
    position: relative;
    transition: all 0.3s ease;
}

.mob-hamburger span::before,
.mob-hamburger span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
    transition: all 0.3s ease;
}

.mob-hamburger span::before { top: -6px; }
.mob-hamburger span::after { bottom: -6px; }

/* Header Search Form */
.mob-search .search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-input);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.search-form__text {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    width: 12rem;
}

.search-form__submit {
    background-color: var(--color-primary);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.search-form__submit:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.header-separator {
    height: var(--gap-lg);
}

/* =========================================
   4. Content Area
   ========================================= */
.site-content {
    flex: 1;
    margin-bottom: var(--gap-lg);
}

.content-area {
    width: 100%;
}

.site-main article {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--gap-lg);
    border: 1px solid var(--color-border);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    margin-bottom: var(--gap-md);
    line-height: 1.3;
}

h1.entry-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #fff, var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--gap-lg);
}

h3.wp-block-heading {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--gap-md);
    margin-top: var(--gap-lg);
}

/* Paragraphs & Lists */
p {
    margin-bottom: var(--gap-md);
    color: var(--color-text-main);
    font-size: 1.05rem;
}

ul.wp-block-list {
    margin-left: 0;
    margin-bottom: var(--gap-md);
    padding-left: 1.5rem;
    list-style: none;
}

ul.wp-block-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

ul.wp-block-list li::before {
    content: '➜';
    color: var(--color-primary);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* Images */
figure.wp-block-image {
    margin: var(--gap-lg) 0;
    text-align: center;
}

figure.wp-block-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

figure.wp-block-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   5. Buttons (CTA)
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: var(--gap-lg) 0;
}

.btn-box {
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important; /* Force white text */
    background: var(--gradient-btn);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 94, 0, 0.5);
    background: var(--gradient-btn-hover);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

/* Separators */
.page-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: var(--gap-lg) 0;
}

/* =========================================
   6. Comments Section
   ========================================= */
.comments-area {
    margin-top: var(--gap-lg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--gap-lg);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--gap-lg);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
}

.comments-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 1.5rem;
    background-color: var(--color-primary);
    margin-right: var(--gap-sm);
    border-radius: 2px;
}

.comment-list {
    list-style: none;
    display: grid;
    gap: var(--gap-md);
}

.comment-box {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.comment-box:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--gap-md);
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    object-fit: cover;
    margin-right: var(--gap-md);
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: bold;
    font-style: normal;
    color: var(--color-text-main);
    font-size: 1rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: #cfd4db;
    line-height: 1.5;
    margin-bottom: var(--gap-sm);
}

.comment-footer {
    text-align: right;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s;
}

.comment-reply-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Smilies in comments */
.wp-smiley {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin: 0 0.2em;
}

/* =========================================
   7. Form Elements (Global)
   ========================================= */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--color-text-main);
    font-family: var(--font-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.2);
}

/* =========================================
   8. Responsive Media Queries
   ========================================= */
@media screen and (max-width: 768px) {
    /* Layout */
    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-branding {
        margin-bottom: var(--gap-sm);
    }
    
    .mob-search {
        order: 3;
        width: 100%;
        margin-top: var(--gap-sm);
    }
    
    .mob-search .search-form {
        width: 100%;
    }
    
    .search-form__text {
        width: 100%;
    }
    
    /* Typography */
    h1.entry-title {
        font-size: 1.75rem;
    }
    
    /* Content */
    .site-main article {
        padding: var(--gap-md);
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Comments */
    .comment-header {
        flex-direction: row; /* Keep row but maybe adjust sizes */
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .site-header-inner {
        flex-direction: column;
    }
    
    .site-branding, .mob-hamburger {
        margin-bottom: var(--gap-sm);
    }
}
