/* Article Specific Styles */
.article-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 0; /* Prevent overflow */
}

/* Table of Contents */
.table-of-contents {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: var(--light-grey);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.table-of-contents h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.toc-nav ul {
    list-style: none;
}

.toc-nav li {
    margin-bottom: 12px;
}

.toc-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

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

.toc-nav a.active {
    color: var(--secondary-color);
    font-weight: 600;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

/* Main Article */
.main-article {
    flex: 1;
    min-width: 0; /* Prevent overflow */
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.main-article h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-article h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 40px 0 20px;
    padding-top: 20px;
}

.main-article h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.main-article p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.main-article ol,
.main-article ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.main-article li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.main-article hr {
    margin: 40px 0;
    border: none;
    border-top: 2px solid var(--border-color);
}

/* Tables in Article */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.casino-comparison-table,
.bonus-table,
.payment-comparison {
    width: 100%;
    background-color: var(--white);
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

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

.casino-comparison-table td,
.bonus-table td,
.payment-comparison td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.casino-comparison-table tr:last-child td,
.bonus-table tr:last-child td,
.payment-comparison tr:last-child td {
    border-bottom: none;
}

.casino-comparison-table tr:hover,
.bonus-table tr:hover,
.payment-comparison tr:hover {
    background-color: var(--light-grey);
}

.casino-comparison-table img,
.bonus-table img,
.payment-comparison img {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros,
.cons {
    padding: 25px;
    border-radius: 10px;
    background-color: var(--light-grey);
}

.pros {
    border-left: 4px solid #4CAF50;
}

.cons {
    border-left: 4px solid var(--secondary-color);
}

.pros h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.cons h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

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

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

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

/* FAQ Section */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background-color: var(--light-grey);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    margin: 0;
    color: var(--text-color);
}

/* Responsive Design for Article */
@media (max-width: 1024px) {
    .article-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .table-of-contents {
        position: static;
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Better mobile layout */
@media (max-width: 768px) {
    .article-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .table-of-contents {
        padding: 15px;
    }
    
    .roulette-wheel {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .main-article {
        padding: 20px;
    }
    
    .main-article h1 {
        font-size: 2rem;
    }
    
    .main-article h2 {
        font-size: 1.5rem;
    }
    
    .table-wrapper {
        margin: 20px -20px;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 10px !important;
    }
}