/* Fixed Sidebar Styles */
.fixed-sidebar {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    width: 350px;
    overflow-y: auto; /* Allow internal scrolling if content is tall */
    z-index: 100;
    background: transparent;
    pointer-events: auto;
    transition: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    scroll-behavior: auto;
    flex-shrink: 0;
    margin-top: 44px;
}

/* Основной макет для всех страниц */
.content-area {
    display: flex;
    gap: 90px;
    max-width: 1470px;
    padding-left: 0px;
    margin-left: 10%;
    align-items: flex-start;
}

/* Контент занимает оставшееся место */
.site-main {
    flex: 1;
    min-width: 0;
}

/* Layout Grid блоки остаются в пределах контентной области */
.site-main .wp-block-jetpack-layout-grid {
    width: 100%;
    max-width: 100%;
}

/* Visible state for sidebar */
.fixed-sidebar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    overflow-y: hidden; /* Keep scroll hidden, controlled by JS */
}

.fixed-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
    min-height: 100%; /* Ensure content fills available space */
    padding-bottom: 20px; /* Extra padding for sync scroll */
    transform: translateY(0px);
    transition: transform 0.1s ease-out; /* Smooth transform animation */
    will-change: transform; /* Optimize for transform changes */
}

/* Ensure sections are fully visible during sync scroll */
.fixed-sidebar-section {
    background: #1a1d29;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a2d39;
    overflow: hidden;
    flex-shrink: 0; /* Prevent sections from shrinking */
    margin-bottom: -15px; /* Extra margin for better separation during scroll */
}

/* Sidebar Tabs Styles */
.sidebar-tabs {
    background: #1E202A;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sidebar-tab-nav {
    display: flex;
    background: #242736;
    border-bottom: 1px solid #2a2d39;
    position: relative;
}

/* Add gaming theme gradient border under tab navigation */
.sidebar-tab-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #681AE6 0%, #2CD8B9 100%);
    z-index: 1;
}

.sidebar-tab-button {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: #8F93A8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #2a2d39;
    letter-spacing: 0.5px;
}

.sidebar-tab-button:last-child {
    border-right: none;
}

.sidebar-tab-button.active,
.sidebar-tab-button:hover {
    background: #1E202A;
    color: #E9ECFC;
}

.sidebar-tab-content {
    min-height: 300px;
    max-height: 686px;
    overflow-y: auto;
}

.sidebar-tab-panel {
    display: none;
    padding: 15px;
}

.sidebar-tab-panel.active {
    display: block;
}

.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2d39;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-thumbnail:hover .sidebar-thumbnail {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.sidebar-post-title a {
    color: #E9ECFC;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: #2CD8B9;
}

.sidebar-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-post-date {
    font-size: 11px;
    color: #8F93A8;
    font-weight: 500;
}

.sidebar-no-posts {
    text-align: center;
    color: #8F93A8;
    font-style: italic;
    margin: 40px 0;
    font-size: 14px;
}

/* Promo Banners Styles - Purple Gaming Banner */
.promo-banners-section {
    padding: 0;
}

.promo-banners-section .wp-block-wp-new-sidebar-tabs {
    background: #681AE6;
    border-radius: 12px;
    padding: 20px;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: none;
    max-width: 392px;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.promo-banners-section .wp-block-wp-new-sidebar-tabs:last-child {
    margin-bottom: 0;
}

/* Remove the gradient top border for purple banner */
.promo-banners-section .wp-block-wp-new-sidebar-tabs::before {
    display: none;
}

/* Add decorative circle */
.promo-banners-section .wp-block-wp-new-sidebar-tabs::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%);
}

.promo-banner-header {
    margin-bottom: 20px;
}

.promo-banner-title {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Noto Sans', sans-serif;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.promo-banner-amount {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #FFFFFF;
    gap: 15px;
}

.amount-section {
    background: #000000;
    color: #FFA500;
    padding: 6px 5px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 137px;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin-left: 29px;
    transform: skewX(-10deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.amount-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    z-index: -1;
    transform: skewX(0deg);
    transition: all 0.3s ease;
}

.amount-section * {
    transform: skewX(10deg);
    display: block;
}

.amount-text {
    font-size: 32px;
    font-weight: 600;
    color: #FFA500;
    margin: 0;
    font-family: 'Clash Display', sans-serif;
}

.bonus-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'Clash Display', sans-serif;
}

.promo-banner-button {
    background-color: #1DB954;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transform: skewX(-10deg);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
    margin-right: 13px;
    font-family: 'Clash Display', sans-serif;
}

.promo-banner-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    z-index: -1;
    transform: skewX(0deg);
    transition: all 0.3s ease;
}

.promo-banner-button * {
    transform: skewX(10deg);
    display: block;
}

.promo-banner-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
    transform: skewX(0deg);
}

.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);
}

.promo-banner-code {
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.promo-code-value {
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF;
    font-family: 'Clash Display', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.promo-code-value:hover {
    color: #FFA500;
}

.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;
    margin-left: 8px;
}

.promo-code-value:hover .promo-code-copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Copy icon using CSS */
.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%);
}

.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;
}

/* Alternative copy icon using unicode */
.promo-code-copy-icon.unicode::before {
    content: '⧉';
    font-size: 14px;
    font-weight: bold;
}

.promo-code-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Velo Sans', serif;
    font-weight: 500;
}

.promo-banner-action {
    display: inline;
}

/* Custom Scrollbar for fixed sidebar */
.fixed-sidebar::-webkit-scrollbar,
.sidebar-tab-content::-webkit-scrollbar {
    width: 6px;
}

.fixed-sidebar::-webkit-scrollbar-track,
.sidebar-tab-content::-webkit-scrollbar-track {
    background: #242736;
    border-radius: 3px;
}

.fixed-sidebar::-webkit-scrollbar-thumb,
.sidebar-tab-content::-webkit-scrollbar-thumb {
    background: #2CD8B9;
    border-radius: 3px;
}

.fixed-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-tab-content::-webkit-scrollbar-thumb:hover {
    background: #25B8A3;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-area {
        margin-left: 20px;
        margin-right: -20px;
        gap: 77px;
    }
    .fixed-sidebar {
        top: 170px;
        margin-right: 20px;
    }
    .promo-banner-button {
        min-width: 100px;
    }
}


@media (max-width: 1024px) {
    .fixed-sidebar {
        display: none;
    }
}

/* Hide sidebar on mobile and tablets */
@media (max-width: 1024px) {
    .fixed-sidebar {
        display: none !important;
    }
    .content-area {
        margin-left: 0;
        padding-left: 0;
        padding-right: 20px !important;
    }
    .site-main {
        margin-right: 0;
    }
    .site {
        margin-right: 0 !important;
    }
}

/* Adjust main content to accommodate sidebar */
@media (min-width: 1025px) {
    .site {
        margin-right: 320px;
    }
    
}

@media (min-width: 1400px) {
    .site {
        margin-right: 340px;
    }
}

/* Newsletter Banner Section */

.newsletter-banner-item {
    background: linear-gradient(135deg, #681AE6 0%, #8B3FFE 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(104, 26, 230, 0.3);
    border: 1px solid rgba(44, 216, 185, 0.2);
    transition: all 0.3s ease;
}

.newsletter-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(104, 26, 230, 0.4);
}

.newsletter-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(44, 216, 185, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.newsletter-banner-content {
    position: relative;
    z-index: 2;
}

.newsletter-banner-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Clash Display', sans-serif;
    margin: 0 0 8px 0;
    color: #E9ECFC;
    line-height: 1.3;
    text-align: center;
}

.newsletter-banner-subtitle {
    font-size: 13px;
    margin: 0 0 16px 0;
    color: rgba(233, 236, 252, 0.8);
    line-height: 1.4;
    text-align: center;
}

.newsletter-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-email-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(44, 216, 185, 0.3);
    border-radius: 8px;
    color: #E9ECFC;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-email-input::placeholder {
    color: rgba(233, 236, 252, 0.6);
}

.newsletter-email-input:focus {
    outline: none;
    border-color: #2CD8B9;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(44, 216, 185, 0.2);
}

.newsletter-submit-button {
    width: 100%;
    padding: 12px 20px;
    background: #1DB954;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Clash Display', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: skewX(-10deg);
}

.newsletter-submit-button:hover {
    background: linear-gradient(135deg, #20B2AA 0%, #2CD8B9 100%);
    transform: skewX(-10deg);
    box-shadow: 0 6px 20px rgba(44, 216, 185, 0.4);
}

.newsletter-submit-button:active {
    transform: translateY(0);
}

.newsletter-submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #1E202A;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: newsletterSpin 0.8s linear infinite;
}

@keyframes newsletterSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-privacy-text {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    color: rgba(233, 236, 252, 0.6);
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.newsletter-message {
    margin-top: 12px;
}

.newsletter-success,
.newsletter-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    animation: newsletterSlideIn 0.3s ease;
}

.newsletter-success {
    background: rgba(44, 216, 185, 0.15);
    border: 1px solid rgba(44, 216, 185, 0.3);
    color: #2CD8B9;
}

.newsletter-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.newsletter-icon {
    font-weight: bold;
    font-size: 14px;
}

@keyframes newsletterSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for newsletter banner */
@media (max-width: 1200px) {
    .newsletter-banner-item {
        padding: 16px;
    }
    
    .newsletter-banner-title {
        font-size: 16px;
    }
    
    .newsletter-banner-subtitle {
        font-size: 12px;
    }
    
    .newsletter-email-input,
    .newsletter-submit-button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Sticky sidebar tabs - compact version */
.sticky-sidebar-tabs {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.sticky-sidebar-tabs .sidebar-tabs {
    padding: 12px;
}

.sticky-sidebar-tabs .sidebar-tab-nav {
    gap: 8px;
    margin-bottom: 12px;
}

.sticky-sidebar-tabs .sidebar-tab-button {
    padding: 8px 16px;
    font-size: 12px;
}

.sticky-sidebar-tabs .sidebar-posts-list {
    gap: 8px;
}

.sticky-sidebar-tabs .sidebar-post-item {
    gap: 8px;
    padding-bottom: 8px;
}

.sticky-sidebar-tabs .sidebar-post-thumbnail {
    width: 45px;
    height: 45px;
}

.sticky-sidebar-tabs .sidebar-post-title {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sticky-sidebar-tabs .sidebar-post-title a {
    -webkit-line-clamp: 2;
}

.sticky-sidebar-tabs .sidebar-post-date {
    font-size: 10px;
}

/* Scrollbar styles for sticky tabs */
.sticky-sidebar-tabs::-webkit-scrollbar {
    width: 4px;
}

.sticky-sidebar-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.sticky-sidebar-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sticky-sidebar-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}