/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup.hide {
    transform: translateY(100px);
    opacity: 0;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept, .btn-decline {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-decline {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-decline:hover {
    background: #e5e7eb;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 30px;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-link {
    text-decoration: none;
    color: var(--gray);
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
}

.lang-link:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.lang-link.active {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: var(--radius);
    margin: 30px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Text Section */
.main-text {
    padding: 40px 0;
}

.main-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark);
}

.main-text p {
    margin-bottom: 15px;
    color: var(--gray);
}

/* Article Meta */
.article-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.last-updated svg {
    opacity: 0.6;
}

/* Info Blocks */
.info-blocks {
    padding: 40px 0;
}

.info-blocks h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.info-card:nth-child(2) .info-icon {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) .info-icon {
    animation-delay: 0.4s;
}

.info-card:nth-child(4) .info-icon {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
}

/* Table Section */
.table-section {
    padding: 40px 0;
}

.table-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.casino-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
}

.casino-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.casino-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.casino-table tr:hover {
    background: var(--light-gray);
}

.rating {
    color: var(--warning-color);
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* How We Rate Section */
.rating-methodology {
    padding: 60px 0;
    background: #fafafa;
    margin: 40px 0;
}

.rating-methodology h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.methodology-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.methodology-intro {
    text-align: center;
    margin-bottom: 50px;
}

.methodology-intro p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Formula Section */
.rating-formula {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 50px;
}

.rating-formula h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.formula-display {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.formula-display code {
    font-size: 24px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.formula-description {
    font-size: 14px;
    color: var(--gray);
    margin-top: 15px;
}

/* Criteria Breakdown */
.criteria-breakdown {
    margin-bottom: 50px;
}

.criteria-breakdown h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.criteria-list {
    display: grid;
    gap: 25px;
}

.criterion-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.criterion-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.criterion-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.criterion-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.criterion-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.criterion-details h4 {
    font-size: 20px;
    margin: 0;
}

.weight-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.criterion-item p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.weight-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
}

.weight-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* Methodology Example */
.methodology-example {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.methodology-example h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.methodology-example p {
    color: var(--gray);
    margin-bottom: 20px;
}

.example-scores {
    list-style: none;
    margin-bottom: 30px;
}

.example-scores li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 16px;
    color: var(--gray);
}

.example-scores strong {
    color: var(--primary-color);
}

.example-result {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 20px;
}

/* Two Column Section */
.two-column-section {
    padding: 40px 0;
}

.two-column-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.column-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.column-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.column-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.column-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.column-content p {
    color: var(--gray);
}

/* Pros and Cons */
.pros-cons-section {
    padding: 40px 0;
}

.pros-cons-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pros, .cons {
    padding: 30px;
    border-radius: var(--radius);
}

.pros {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.pros h3 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.cons h3 {
    color: var(--danger-color);
    margin-bottom: 20px;
}

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

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

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
}

/* Navigation Buttons */
.nav-buttons-section {
    padding: 40px 0;
}

.nav-buttons-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.nav-button {
    display: block;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.nav-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.nav-button-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
}

.nav-button:hover .nav-button-icon {
    transform: scale(1.2);
}

.nav-button h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 5px;
}

.nav-button p {
    color: var(--gray);
    font-size: 14px;
}

/* Carousel */
.carousel-section {
    padding: 40px 0;
}

.carousel-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

.carousel-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Casino Logo in Carousel */
.casino-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.casino-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.carousel-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.carousel-rating {
    font-size: 18px;
    margin-bottom: 15px;
}

.carousel-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Author Card */
.author-section {
    padding: 60px 0;
}

.author-card {
    display: flex;
    gap: 30px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.author-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--light-gray);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.author-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.author-bio {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.author-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat span {
    font-size: 14px;
    color: var(--gray);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #9ca3af;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

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

.partner-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.partner-link {
    display: inline-block;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.partner-link img {
    height: 40px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .nav-buttons-grid {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .casino-table {
        font-size: 14px;
    }

    .casino-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .casino-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
    }

    .casino-table thead {
        display: none;
    }

    .casino-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--light-gray);
        border-radius: var(--radius);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partner-links {
        justify-content: center;
    }
    
    /* Rating Methodology Mobile */
    .criterion-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .weight-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .criterion-icon {
        font-size: 28px;
    }
    
    .formula-display code {
        font-size: 18px;
    }
    
    .example-scores {
        font-size: 14px;
    }
    
    /* Author Card Mobile */
    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .stat strong {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
    }

    .carousel-container {
        padding: 0 30px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    header, footer, .cookie-popup, .carousel-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
}