/**
 * Casino Rating IMPROVED - ПОЛНЫЙ CSS
 * Все классы и стили для нового дизайна
 */

/* ===== БАЗОВЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #1A659E;
    --success-color: #2EC4B6;
    --text-color: #E8E9EB;
    --text-light: #FFFFFF;
    --text-muted: #9DA3AE;
    --bg-color: #1A1F2E;
    --bg-light: #252B3B;
    --card-bg: #2D3447;
    --border-color: #3D4457;
    
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'system-ui', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[data-theme="light"] {
    --primary-color: #FF5722;
    --secondary-color: #0277BD;
    --accent-color: #0288D1;
    --success-color: #26A69A;
    --text-color: #212121;
    --text-light: #000000;
    --text-muted: #757575;
    --bg-color: #F5F5F5;
    --bg-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== HEADER ===== */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.main-nav ul {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-color);
}

.theme-toggle i {
    position: absolute;
    font-size: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s;
    color: white;
}

.theme-toggle .fa-moon {
    left: 8px;
    opacity: 1;
}

.theme-toggle .fa-sun {
    right: 8px;
    opacity: 0;
}

[data-theme="light"] .theme-toggle .fa-moon { opacity: 0; }
[data-theme="light"] .theme-toggle .fa-sun { opacity: 1; }

/* ===== MOBILE MENU ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.mobile-nav {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out,
                transform 0.4s ease-in-out;
}

.mobile-nav.active {
    opacity: 1;
    max-height: 600px;
    padding: var(--space-md) 0;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0 var(--space-lg);
}

.mobile-nav ul li {
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active ul li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active ul li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active ul li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active ul li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active ul li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: center;
}

.banner-content {}

.badge-new {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.banner-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    display: block;
}

.banner-visual {
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.card-2 { top: 50%; right: 10%; animation-delay: 1s; }
.card-3 { bottom: 10%; left: 30%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== CASINOS SHOWCASE ===== */
.casinos-showcase {
    padding: var(--space-xl) 0;
    background: var(--bg-color);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.section-heading.centered {
    text-align: center;
    margin: 0 auto var(--space-lg);
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.link-arrow:hover {
    gap: 12px;
}

.link-arrow i {
    font-size: 0.9rem;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
}

/* ===== SIDEBAR ===== */
.filters-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: var(--space-sm);
}

.filter-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.filter-list i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ===== ГОРИЗОНТАЛЬНЫЕ КАРТОЧКИ ===== */
.casinos-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.casino-item-horizontal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 50px 100px 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.casino-item-horizontal:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,53,0.2);
}

.casino-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.casino-logo-container {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 10px;
}

.casino-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-details {
    flex: 1;
}

.casino-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.casino-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    font-size: 1rem;
}

.star-full {
    color: #FFD700;
}

.star-half {
    color: #FFD700;
}

.star-empty {
    color: var(--border-color);
}

.rating-value {
    font-weight: 600;
    color: var(--text-light);
    margin-left: 4px;
}

.separator {
    color: var(--text-muted);
}

.casino-bonus-text {
    color: var(--success-color);
    font-weight: 500;
}

.casino-actions-horizontal {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-play-now {
    background: var(--primary-color);
    color: white;
}

.btn-play-now:hover {
    background: #FF5722;
    transform: scale(1.05);
}

.btn-details {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-details:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== TIMELINE ===== */
.why-us-timeline {
    padding: var(--space-xl) 0;
    background: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-marker i {
    font-size: 1.5rem;
    color: white;
}

.timeline-content {
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    flex: 1;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== NEWSLETTER CTA ===== */
.newsletter-cta {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF5722 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    color: #333;
}

.email-input::placeholder {
    color: #999;
}

.btn-subscribe {
    padding: 14px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

#newsletter-form-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.newsletter-success {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--card-bg);
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-about h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-group h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: var(--space-sm);
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--primary-color);
}

.footer-info {}

.footer-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.age-restriction {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== PAGES STYLES ===== */
.page-container {
    background: var(--bg-color);
    min-height: 100vh;
    padding: var(--space-xl) 0;
}

.page-header-simple {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.reviews-list {}

.review-card {
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.review-logo-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-info {}

.review-actions {
    display: flex;
    gap: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }
    .banner-visual {
        display: none;
    }
    .showcase-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .mobile-nav {
        display: block !important;
    }
    
    .casino-item-horizontal {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .casino-rank {
        margin-bottom: var(--space-sm);
    }
    .casino-logo-container {
        margin: 0 auto var(--space-sm);
    }
    .casino-details {
        margin-bottom: var(--space-sm);
    }
    .casino-actions-horizontal {
        flex-direction: column;
        width: 100%;
    }
    .btn-action {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 2rem;
    }
    .stats-row {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-marker {
        width: 40px;
        height: 40px;
    }
    .timeline-marker i {
        font-size: 1rem;
    }
    .review-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .review-logo-box {
        margin: 0 auto var(--space-md);
    }
    .review-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===== TOP CASINOS PODIUM ===== */
