/*
Theme Name: BetOnGame Theme v1.1 Update 2025-10-06
Theme URI: https://github.com/Max-Semian/super_theme
Author: Max Semian
Author URI: https://github.com/Max-Semian
Description: Современная WordPress тема с полной поддержкой Gutenberg, кастомными блоками, мультиязычностью и адаптивным дизайном
Tags: block-editor, gutenberg, responsive, multilingual, seo, custom-blocks, accessibility-ready, translation-ready, featured-images, custom-menu, threaded-comments
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-blog-theme
Domain Path: /languages
*/
html {
    box-sizing: border-box;
    background-color: #07080E;
}
*, *::before, *::after {
    box-sizing: inherit;
}
img {
    display: block;
    max-width: 100%;
}
h1, h2, h3, h4, h5, h6, p {
    padding: 0;
    margin: 0;
}
body {
    margin: 0;
    font-family: 'Vela Sans', sans-serif;
    font-weight: 400;
    background-color: #07080E;
    color: #ffffff;
}

/* WordPress Admin Bar */
#wpadminbar {
    z-index: 2000000 !important;
}

/* Отступ для фиксированного хедера только на фронтенде */
body:not(.wp-admin) {
    padding-top: 80px;
}

/* Page Templates Styles */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .front-page {
    padding: 0;
} */

.front-page .content-area {
    max-width: 100%;
    padding: 0;
}

/* Специальные стили для страниц с Hero Slider убраны - теперь управляется через flex-layout в .content-area */

.entry-content {
    line-height: 1.6;
}

.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.edit-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.edit-link:hover {
    background: #005a87;
}

@media (max-width: 768px) {
    
    .entry-title {
        font-size: 2rem;
    }
}

.wp-block-jetpack-layout-grid{
    --grid-columns: 1;
    --grid-gap: 20px;
}
.recent-post-link { 
    display: none !important;
}

.recent-post-item {
    background-color: #07080E !important;
}

/* Mobile Promo Banner Styles */
.mobile-promo-banner {
    display: none; /* Скрыт по умолчанию */
}

.mobile-promo-content {
    background: #681AE6;
    /* border-radius: 12px; */
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

/* Decorative circle */
.mobile-promo-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.mobile-promo-content .promo-banner-header {
    margin-bottom: 20px;
}

.mobile-promo-content .promo-banner-title {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.mobile-promo-content .promo-banner-amount {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: nowrap;
}

.mobile-promo-content .amount-section {
    background: #000000;
    color: #FFA500;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    transform: skewX(-10deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-promo-content .amount-section * {
    transform: skewX(10deg);
}

.mobile-promo-content .amount-text {
    font-size: 24px;
    font-weight: 600;
    color: #FFA500;
    font-family: 'Vela Sans', serif;
}

.mobile-promo-content .bonus-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'Vela Sans', serif;
}

.mobile-promo-content .promo-banner-button {
    background-color: #1DB954;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 8px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    border: none;
    cursor: pointer;
    transform: skewX(-10deg);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
    font-family: 'Clash Display', sans-serif;
}

.mobile-promo-content .promo-banner-button * {
    transform: skewX(10deg);
}

.mobile-promo-content .promo-banner-button:hover {
    background: #17a34a;
    transform: skewX(-10deg) translateY(-1px);
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.mobile-promo-content .promo-banner-code {
    text-align: center;
    margin-bottom: 0;
}

.mobile-promo-content .promo-code-value {
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 2px;
    font-family: 'Clash Display', sans-serif;
    cursor: pointer;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-promo-content .promo-code-value:hover {
    color: #FFA500;
}

.mobile-promo-content .promo-code-copy-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.mobile-promo-content .promo-code-value:hover .promo-code-copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Copy icon using CSS for mobile */
.mobile-promo-content .promo-code-copy-icon::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: absolute;
    top: 19%;
    left: 81%;
    transform: translate(-50%, -50%);
}

.mobile-promo-content .promo-code-copy-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -60%);
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.mobile-promo-content .promo-code-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Vela Sans', serif;
    font-weight: 500;
}

/* Show mobile banner only on mobile devices */
@media (max-width: 1024px) {
    .mobile-promo-banner {
        display: block;
    }
}
/* Mobile Newsletter Banner Styles */
.mobile-newsletter-banner {
    display: none;
    margin: 0;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B5CF6 0%, #6B21A8 50%, #4C1D95 100%) !important;
    color: #FFFFFF !important;
}

@media (max-width: 1024px) {
    .mobile-newsletter-banner {
        display: block;
    }
}

.mobile-newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-banner-header {
    text-align: center;
    margin-bottom: 25px;
}


.newsletter-subscription-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 480px) {
    .newsletter-input-group {
        flex-direction: row;
        align-items: stretch;
    }
}

.newsletter-email-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 14px;
    font-family: 'Vela Sans', serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-email-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-submit-btn {
    padding: 14px 24px;
    background: #1DB954;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Clash Display', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 216, 185, 0.4);
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transform: skewX(-10deg);
}

.newsletter-submit-btn:hover {
    background: #25B8A4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 216, 185, 0.6);
    transform: skewX(-10deg);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Add subtle animation to newsletter banner */
.mobile-newsletter-banner {
    animation: slideInUp 0.6s ease-out;
    background: linear-gradient(135deg, #8B5CF6 0%, #6B21A8 50%, #4C1D95 100%) !important;
    color: #FFFFFF !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
        .content-area {
        padding: 0 0px !important;
    }
    .recent-posts-shortcode  {
        padding: 0 20px;
    }
    .recent-post-item {
        border: 0 !important;
    }
    .recent-post-content {
        padding: 0 !important;
        padding-top: 8px !important;
    }
}
.single-post-page {
    color: white;
}

/* Two-column layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20%;
    align-items: start;
    margin-top: 40px;
    margin: 0 auto;
}

.main-content {
    min-width: 0; /* Prevents overflow in grid */
}

.post-sidebar {
    /* Remove sticky positioning to avoid conflicts with fixed-sidebar */
    position: relative;
    height: auto;
    max-height: none;
    overflow: visible;
    margin-top: -35px;
}

/* Adapt fixed sidebar styles for embedding */
.post-sidebar .fixed-sidebar {
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    z-index: auto !important;
    height: auto !important;
    max-height: none !important;
}

.post-sidebar .fixed-sidebar-content {
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Remove height restrictions for sidebar sections */
.post-sidebar .fixed-sidebar-section {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Styles for sections in embedded sidebar */
.post-sidebar .sidebar-tabs-section,
.post-sidebar .promo-banners-section,
.post-sidebar .newsletter-banner-section {
    margin-bottom: 20px;
}

.post-sidebar .sidebar-tabs-section:last-child,
.post-sidebar .promo-banners-section:last-child,
.post-sidebar .newsletter-banner-section:last-child {
    margin-bottom: 0;
}

/* Single post content styles */
.single-post-content {
    margin-bottom: 3rem;
    margin-top: 72px;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(44, 216, 185, 0.2);
}

.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumbs a {
    color: #2CD8B9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #24b59f;
}

.breadcrumbs span {
    color: rgba(233, 236, 252, 0.6);
}

.entry-title {
    color: #2CD8B9;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1rem;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.posted-on,
.byline,
.cat-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(233, 236, 252, 0.7);
    font-size: 14px;
}

.posted-on svg,
.byline svg,
.cat-links svg {
    opacity: 0.7;
}

.cat-links a {
    color: #2CD8B9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cat-links a:hover {
    color: #24b59f;
}

.post-content-wrapper {
    line-height: 1.8;
    font-size: 16px;
}

.post-content-wrapper h1,
.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4,
.post-content-wrapper h5,
.post-content-wrapper h6 {
    color: #2CD8B9;
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-content-wrapper h1 {
    font-size: 2.5rem; /* 40px */
}

.post-content-wrapper h2 {
    font-size: 2rem; /* 32px */
}

.post-content-wrapper h3 {
    font-size: 1.5rem; /* 24px */
}

.post-content-wrapper h4 {
    font-size: 1.25rem; /* 20px */
}

.post-content-wrapper h5 {
    font-size: 1.125rem; /* 18px */
}

.post-content-wrapper h6 {
    font-size: 1rem; /* 16px */
}

.post-content-wrapper p {
    margin-bottom: 1.5rem;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(44, 216, 185, 0.2);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    color: #2CD8B9;
    text-decoration: none;
    padding: 1rem;
    background: rgba(44, 216, 185, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: calc(50% - 10px);
}

.post-navigation a:hover {
    background: rgba(44, 216, 185, 0.2);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
}

@media (max-width: 1400px) {
    .single-post-layout {
        margin-right: 20px !important;
    }
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-sidebar {
        position: relative;
        height: auto;
        max-height: none;
        overflow: visible;
        order: 2; /* Sidebar after main content on mobile */
    }
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .single-post-content {
        padding: 0;
    }
    
    .single-post-layout {
        gap: 0;
        margin-right: 0 !important;
    }
    
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation a {
        max-width: none;
    }
}

/* Hero Slider Wrapper - Full Width Outside Content Container */
.hero-slider-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-slider-wrapper .wp-block-wp-new-hero-slider {
    width: 100%;
    margin: 0;
}

/* Hero Slider Extracted Wrapper - rendered by PHP before #content */
.hero-slider-extracted-wrapper {
    width: 100%;
    margin: 0 0 40px 0;
    position: relative;
    z-index: 1;
    min-height: 530px;
}

.hero-slider-extracted-wrapper .wp-block-wp-new-hero-slider {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Убираем стандартные отступы для hero-slider */
.site-main .wp-block-wp-new-hero-slider,
.entry-content .wp-block-wp-new-hero-slider {
    margin-top: 0;
    margin-bottom: 2rem;
}

.recent-post-title {
    font-family: 'Vela Sans', sans-serif;
}

@media (max-width: 768px) {
    /* Single Post Page Specific Styles */
.content-area.single-post-page {
    padding-left: 0;
    padding-right: 0 !important;
}

/* Убираем правый отступ только для single post страниц */
.content-area.single-post-page  {
    margin: 0 20px !important;
    }
}    
/* .single-post-page .hero-slider-extracted-wrapper,
.single-post-page .wp-block-wp-new-hero-slider {
    margin-right: 0;
} */