/**
 * Casino CMS Frontend Styles
 * Поддержка тем через CSS-переменные
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

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

a:hover {
    color: var(--secondary);
}

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

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-icon {
    font-size: 28px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-card);
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    color: white !important;
}

.nav-cta-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.nav-cta-secondary:hover {
    background: var(--primary);
    color: white !important;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav-link, .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .nav-toggle {
        display: block;
    }
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: 40px 0 60px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BLOCKS COMMON ===== */
.block {
    margin-bottom: 48px;
}

.block-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

/* ===== HERO BLOCK ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: white;
}

.hero-btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 2px solid var(--border);
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
}

/* ===== TEXT BLOCK ===== */
.block-text .text-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

/* ===== FAQ BLOCK ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* ===== BONUS TABLE ===== */
.bonus-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.bonus-table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
}

.bonus-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.bonus-table tr:last-child td {
    border-bottom: none;
}

.bonus-table tr:hover td {
    background: var(--bg-hover);
}

.bonus-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== STEPS BLOCK ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

/* ===== CTA BLOCK ===== */
.cta-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    color: white;
}

/* ===== PROS/CONS BLOCK ===== */
.proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pros, .cons {
    padding: 28px;
    border-radius: 16px;
}

.pros {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cons {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pros h4 {
    color: #10b981;
    margin-bottom: 16px;
    font-size: 18px;
}

.cons h4 {
    color: #ef4444;
    margin-bottom: 16px;
    font-size: 18px;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li, .cons li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

@media (max-width: 768px) {
    .proscons {
        grid-template-columns: 1fr;
    }
}

/* ===== YOUTUBE BLOCK ===== */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== SEO TEXT BLOCK ===== */
.seo-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.seo-text .block-title {
    text-align: left;
    margin-bottom: 20px;
}

.seo-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-muted);
}

.seo-content p {
    margin-bottom: 16px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* Заголовки внутри SEO текста */
.seo-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 14px 0;
    line-height: 1.3;
}

.seo-content h3:first-child {
    margin-top: 0;
}

.seo-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px 0;
    line-height: 1.4;
}

.seo-content h4:first-child {
    margin-top: 0;
}

.seo-content h5,
.seo-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

/* Списки */
.seo-content ul,
.seo-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content li:last-child {
    margin-bottom: 0;
}

/* Цитата */
.seo-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--bg-hover);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text);
}

/* Таблицы внутри SEO текста */
.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.seo-content th,
.seo-content td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.seo-content th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.seo-content a {
    color: var(--primary);
}

.seo-content strong, .seo-content b {
    color: var(--text);
}

.seo-content ul, .seo-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* ===== GALLERY BLOCK ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== BONUS CARDS BLOCK ===== */
.bonus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bonus-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bonus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.bonus-card-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.bonus-card-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.bonus-card-btn {
    display: block;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.bonus-card-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

/* ===== REVIEWS BLOCK ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 968px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.review-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars .star {
    color: var(--border);
    font-size: 14px;
}

.review-stars .star.filled {
    color: #fbbf24;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}

/* ===== AUTHOR BLOCK (E-E-A-T) ===== */
.block-author {
    margin: 40px 0;
}

.author-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: white;
}

.author-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.author-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.author-position {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.author-experience {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
}

.author-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.author-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.author-social a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.author-social a:hover {
    background: var(--primary);
    color: white;
}

.author-social a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
}

/* ===== RATING BLOCK ===== */
.rating-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.rating-casino-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-casino-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 8px;
}

.rating-casino-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.rating-casino-year {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.rating-overall {
    text-align: right;
}

.rating-score {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-max {
    font-size: 20px;
    color: var(--text-muted);
}

/* Rating Pros/Cons */
.rating-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-hover);
    border-radius: 12px;
}

.rating-pros-title,
.rating-cons-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-pros-title {
    color: #22c55e;
}

.rating-pros-title::before {
    content: '✓';
}

.rating-cons-title {
    color: #ef4444;
}

.rating-cons-title::before {
    content: '✗';
}

.rating-pros-list,
.rating-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rating-pros-list li,
.rating-cons-list li {
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.rating-pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 600;
}

.rating-cons-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 600;
}

.rating-categories {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.rating-category-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rating-category-name {
    font-size: 14px;
    color: var(--text);
}

.rating-category-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.rating-bar {
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.rating-stars .star {
    font-size: 24px;
    color: var(--border);
}

.rating-stars .star.filled {
    color: #fbbf24;
}

@media (max-width: 640px) {
    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .rating-casino-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rating-overall {
        text-align: left;
    }
    
    .rating-score {
        font-size: 36px;
    }
    
    .rating-pros-cons {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== INFOBOX BLOCK ===== */
.block-infobox {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    align-items: flex-start;
}

.infobox-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infobox-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.infobox-content {
    flex: 1;
    min-width: 0;
}

.infobox-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.infobox-text {
    font-size: 14px;
    line-height: 1.7;
}

.infobox-text p {
    margin: 0;
}

/* Infobox types */
.infobox-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.infobox-info .infobox-icon { background: rgba(59, 130, 246, 0.2); }
.infobox-info .infobox-title { color: #3b82f6; }

.infobox-tip {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.infobox-tip .infobox-icon { background: rgba(34, 197, 94, 0.2); }
.infobox-tip .infobox-title { color: #22c55e; }

.infobox-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.infobox-warning .infobox-icon { background: rgba(245, 158, 11, 0.2); }
.infobox-warning .infobox-title { color: #f59e0b; }

.infobox-important {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.infobox-important .infobox-icon { background: rgba(239, 68, 68, 0.2); }
.infobox-important .infobox-title { color: #ef4444; }

.infobox-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.infobox-success .infobox-icon { background: rgba(16, 185, 129, 0.2); }
.infobox-success .infobox-title { color: #10b981; }

@media (max-width: 480px) {
    .block-infobox {
        padding: 16px;
        gap: 12px;
    }
    
    .infobox-icon {
        width: 36px;
        height: 36px;
    }
    
    .infobox-icon img {
        width: 20px;
        height: 20px;
    }
}

/* ===== UPDATED DATE BLOCK ===== */
.block-updated-date {
    margin: 20px 0;
}

.date-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.date-item i {
    color: var(--primary);
}

.date-item time {
    color: var(--text);
    font-weight: 500;
}

.date-updated {
    color: var(--success);
}

.date-updated i {
    color: var(--success);
}

/* ===== COMPARISON TABLE BLOCK ===== */
.comparison-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.comparison-table td {
    padding: 20px;
    background: var(--bg-card);
    border: none;
}

.comparison-table tbody tr:not(:last-child) td:first-child {
    position: relative;
}

.comparison-table tbody tr:not(:last-child) td:first-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200vw;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}

.comparison-table tr:hover td {
    background: var(--bg-hover);
}

.comparison-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.comparison-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.comparison-bonus {
    font-weight: 600;
    color: var(--primary);
}

.comparison-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-stars {
    display: flex;
    gap: 2px;
}

.comparison-stars .star {
    font-size: 14px;
    color: var(--border);
}

.comparison-stars .star.filled {
    color: #fbbf24;
}

.comparison-score {
    font-weight: 700;
    color: var(--text);
}

.comparison-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.comparison-btn:hover {
    transform: scale(1.05);
    color: white;
}

/* Мобильные карточки для сравнения */
.comparison-mobile {
    display: none;
}

.comparison-mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.comparison-mobile-card:last-child {
    margin-bottom: 0;
}

.comparison-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comparison-mobile-header .comparison-rank {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.comparison-mobile-header img {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.comparison-mobile-name {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.comparison-mobile-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.comparison-mobile-bonus {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.comparison-mobile-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-mobile-rating .comparison-stars {
    gap: 1px;
}

.comparison-mobile-rating .star {
    font-size: 12px;
}

.comparison-mobile-rating .comparison-score {
    font-size: 14px;
}

.comparison-mobile-card .comparison-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
}

@media (max-width: 768px) {
    .comparison-wrapper {
        display: none;
    }
    
    .comparison-mobile {
        display: block;
    }
}

/* ===== GALLERY BLOCK ENHANCED ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 32px;
    color: white;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox img {
    max-width: calc(100vw - 100px);
    max-height: calc(100vh - 80px);
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close span {
    font-size: 32px;
    color: white;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }
    
    .lightbox img {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
    
    .lightbox-close span {
        font-size: 28px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-about h4,
.footer-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cta-btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
    color: white;
}

@media (max-width: 768px) {
    .footer-cta {
        margin-top: 20px;
    }
    
    .footer-cta-btn {
        width: 100%;
        text-align: center;
    }
}

.footer-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.footer-warning p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.footer-warning strong {
    color: #f59e0b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== CASINOS GRID BLOCK ===== */
.block-casinos-grid {
    margin: 30px 0;
}

.casinos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.casino-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.casino-card-logo {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.casino-card-logo-placeholder {
    width: 60px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.casino-card-rating {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.casino-card-score {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.casino-card-max {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.casino-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.casino-card-bonus {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: 8px;
    display: inline-block;
}

.casino-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.casino-card-year {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.casino-card-year .year-label {
    color: var(--text-muted);
}

.casino-card-year .year-value {
    color: var(--text);
    font-weight: 600;
}

.casino-card-pros-cons {
    margin-bottom: 16px;
}

.casino-card-pros .pro-item {
    font-size: 13px;
    color: #22c55e;
    padding: 4px 0;
}

.casino-card-cons .con-item {
    font-size: 13px;
    color: #ef4444;
    padding: 4px 0;
}

.casino-card-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s;
    margin-top: auto;
}

.casino-card-btn:hover {
    transform: scale(1.02);
    color: white;
}

@media (max-width: 1024px) {
    .casinos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .casinos-grid {
        grid-template-columns: 1fr;
    }
    
    .casino-card {
        padding: 20px;
    }
}

/* ===== THEME: DARK (default) ===== */
:root {
    --bg: #0f0f23;
    --bg-card: rgba(30, 30, 60, 0.8);
    --bg-hover: rgba(99, 102, 241, 0.1);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(99, 102, 241, 0.2);
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #fbbf24;
}

/* ===== THEME: LIGHT ===== */
body.theme-light {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: rgba(99, 102, 241, 0.08);
    --text: #1e293b;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #f59e0b;
}

body.theme-light .header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.theme-light .bonus-table td {
    background: #fff;
}

body.theme-light .step {
    background: #fff;
}

body.theme-light .seo-text {
    background: #fff;
}

body.theme-light .faq-item {
    background: #fff;
}

/* ===== THEME: PURPLE ===== */
body.theme-purple {
    --bg: #1a1a2e;
    --bg-card: rgba(40, 30, 70, 0.8);
    --bg-hover: rgba(168, 85, 247, 0.15);
    --text: #eef2ff;
    --text-muted: #a5b4fc;
    --border: rgba(168, 85, 247, 0.3);
    --primary: #a855f7;
    --secondary: #ec4899;
    --accent: #14b8a6;
}

/* ===== THEME: MINIMAL ===== */
body.theme-minimal {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --text: #18181b;
    --text-muted: #71717a;
    --border: rgba(0, 0, 0, 0.08);
    --primary: #18181b;
    --secondary: #52525b;
    --accent: #dc2626;
}

body.theme-minimal .header {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.theme-minimal .hero-btn-primary,
body.theme-minimal .cta-btn {
    background: #18181b;
}

body.theme-minimal .bonus-table th {
    background: #18181b;
}

body.theme-minimal .step-number {
    background: #18181b;
}

/* ===== IMAGE BLOCK ===== */
.block-image {
    text-align: center;
    margin: 40px 0;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.block-image figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== CUSTOM TABLE BLOCK ===== */
.block-custom-table {
    margin: 40px 0;
}

.custom-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.custom-table th,
.custom-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.custom-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: var(--bg-hover);
}

.custom-table td {
    font-size: 15px;
}

/* Мобильная адаптивность таблицы */
@media (max-width: 768px) {
    .custom-table thead {
        display: none;
    }
    
    .custom-table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: var(--bg-card);
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .custom-table tbody tr:hover {
        background: var(--bg-card);
    }
    
    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        gap: 10px;
    }
    
    .custom-table td:last-child {
        border-bottom: none;
    }
    
    .custom-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        color: var(--text-muted);
        text-transform: uppercase;
        flex-shrink: 0;
        max-width: 40%;
    }
    
    .custom-table td:empty::before {
        display: none;
    }
}

/* Светлая тема */
body.theme-light .custom-table {
    background: #fff;
}

body.theme-light .custom-table tbody tr {
    background: #fff;
}

body.theme-light .block-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Minimal тема */
body.theme-minimal .custom-table th {
    background: #18181b;
}

/* ===== UTILITIES ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .block-title {
        font-size: 24px;
    }
}

