@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #cfd4d8;
    background: #0c0d0e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #23262a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.search-form {
    flex: 1;
    max-width: 400px;
    margin: 0 32px;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    color: #cfd4d8;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #5cab6a;
}

.search-input::placeholder {
    color: rgba(207, 212, 216, 0.5);
}

.cta-button {
    height: 36px;
    padding: 0 20px;
    background: #5cab6a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    background: #4e9a5a;
    color: white;
}

/* Banner */
.banner-wrapper {
    margin-top: 60px;
    padding: 20px 0;
}

.banner {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-card {
    background: linear-gradient(135deg, #5cab6a 0%, #4e9a5a 100%);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.banner h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
    position: relative;
}

.banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    position: relative;
}

.banner-btn {
    display: inline-block;
    padding: 12px 28px;
    background: white;
    color: #5cab6a;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Main */
.main {
    flex: 1;
    padding: 32px 0 48px;
}

.content {
    background: #18191c;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 32px;
}

/* Typography */
.content h1 {
    font-size: 26px;
    font-weight: 600;
    color: #cfd4d8;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.content h2 {
    font-size: 19px;
    font-weight: 600;
    color: #cfd4d8;
    margin: 26px 0 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.content h3 {
    font-size: 16px;
    font-weight: 500;
    color: #cfd4d8;
    margin: 20px 0 8px;
    line-height: 1.4;
}

.content p {
    margin-bottom: 14px;
    color: #abb2ba;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.003em;
}

.content a {
    color: #5cab6a;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul, .content ol {
    margin: 12px 0;
    padding-left: 24px;
    color: #abb2ba;
}

.content li {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #23262a;
    border-left: 3px solid #5cab6a;
    color: #abb2ba;
    font-size: 15px;
    line-height: 1.6;
}

.content code {
    background: #23262a;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    color: #5cab6a;
}

.content pre {
    background: #0c0d0e;
    color: #cfd4d8;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #23262a;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 12px;
    line-height: 1.4;
}

.content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Image container for centered layout on desktop */
.content-image {
    margin: 24px 0;
    text-align: center;
}

.content-image picture {
    display: inline-block;
    max-width: 100%;
}

.content-image img {
    margin: 0;
}

.content-image figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #9ca3af;
    font-style: italic;
}

/* Desktop: Center images with max width */
@media (min-width: 768px) {
    .content-image {
        margin: 32px auto;
        max-width: 90%;
    }
    
    .content-image img {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Large desktop: Limit image width further */
@media (min-width: 1200px) {
    .content-image {
        max-width: 80%;
    }
}

/* Tables */
.content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.content th {
    background: #23262a;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #cfd4d8;
    border: 1px solid #2c2f33;
}

.content td {
    padding: 8px 12px;
    border: 1px solid #2c2f33;
    color: #abb2ba;
}

.content tbody tr:hover {
    background: #23262a;
}

/* Footer */
.footer {
    background: #18191c;
    border-top: 1px solid #23262a;
    padding: 16px 0;
}

.footer-text {
    text-align: center;
    color: #abb2ba;
    font-size: 12px;
}

/* Promo Code Styles */
.promo-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1b1e;
    border: 1px solid #3a3d42;
    border-radius: 3px;
    padding: 0 12px;
    height: 36px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #5cab6a;
    user-select: all;
    cursor: text;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.promo-code:hover {
    border-color: #4a4d52;
    background: #1c1d20;
}

.promo-code:focus,
.promo-code:active {
    border-color: #5cab6a;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(92, 171, 106, 0.1);
}

.promo-code-text {
    color: #5cab6a;
    user-select: all;
    text-align: center;
    font-weight: 600;
}

.promo-code-copy {
    position: absolute;
    right: 4px;
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.promo-code-copy:hover {
    color: #5cab6a;
    background: rgba(92, 171, 106, 0.08);
}

.promo-code-copy svg {
    width: 16px;
    height: 16px;
}

/* Banner Promo Code */
.banner-promo {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-top: 24px;
    background: #f8f8f8;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 0 40px 0 20px;
    height: 44px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.banner-promo .promo-code-text {
    color: #2d5f3f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'SF Mono', Monaco, monospace;
}

.banner-promo .promo-code-copy {
    position: absolute;
    right: 6px;
    background: transparent;
    color: #6b7280;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 3px;
}

.banner-promo .promo-code-copy:hover {
    background: rgba(92, 171, 106, 0.1);
    color: #5cab6a;
}

/* Widget Promo Code */
.widget-promo-container {
    margin: 20px 0;
    text-align: center;
}

.widget-promo {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: #1a1b1e;
    border: 1px solid #3a3d42;
    border-radius: 3px;
    padding: 0 40px 0 16px;
    height: 40px;
    min-width: 180px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.widget-promo .promo-code-text {
    font-size: 15px;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 0.5px;
    color: #5cab6a;
}

.widget-promo .promo-code-copy {
    position: absolute;
    right: 4px;
    height: 32px;
    width: 32px;
    background: transparent;
    color: rgba(92, 171, 106, 0.6);
    border-radius: 3px;
}

.widget-promo .promo-code-copy:hover {
    background: rgba(92, 171, 106, 0.1);
    color: #5cab6a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-wrapper {
        padding: 0 16px;
        gap: 12px;
    }
    
    .search-form {
        margin: 0 12px;
        flex: 1;
    }
    
    .banner-wrapper {
        margin-top: 56px;
        padding: 16px 0;
    }
    
    .banner {
        padding: 0 16px;
    }
    
    .banner-card {
        padding: 36px;
        border-radius: 8px;
    }
    
    .banner h1 {
        font-size: 26px;
    }
    
    .banner p {
        font-size: 14px;
    }
    
    .content {
        padding: 24px;
        border-radius: 8px;
    }
    
    .content h1 {
        font-size: 20px;
    }
    
    .content h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        height: 52px;
        gap: 8px;
    }
    
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .search-form {
        margin: 0;
        flex: 1;
        min-width: 0;
    }
    
    .search-input {
        width: 100%;
        font-size: 13px;
        height: 32px;
    }
    
    .cta-button {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .promo-code {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
        flex-shrink: 0;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
    }
    
    .banner-promo {
        padding: 0 36px 0 16px;
        height: 40px;
    }
    
    .banner-promo .promo-code-text {
        font-size: 16px;
    }
    
    .banner-promo .promo-code-copy {
        width: 28px;
        height: 28px;
    }
    
    .widget-promo {
        min-width: 160px;
        padding: 0 36px 0 12px;
        height: 36px;
    }
    
    .widget-promo .promo-code-text {
        font-size: 14px;
    }
    
    .widget-promo .promo-code-copy {
        width: 28px;
        height: 28px;
    }
    
    .banner-wrapper {
        margin-top: 52px;
        padding: 16px 0;
    }
    
    .banner {
        padding: 0 16px;
    }
    
    .banner-card {
        padding: 28px 20px;
    }
    
    .banner h1 {
        font-size: 22px;
    }
    
    .banner p {
        font-size: 13px;
    }
    
    .banner-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .main {
        padding: 24px 0 36px;
    }
    
    .content {
        padding: 20px;
        border-radius: 8px;
    }
}

/* =================================================================
   WIDGET: CTA BUTTON
   ================================================================= */

.widget-cta-button {
    margin: 30px 0;
    text-align: center;
}

.widget-cta-button-link {
    display: inline-block;
    padding: 12px 32px;
    background: #5cab6a !important;
    color: white !important;
    text-decoration: none !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(92, 171, 106, 0.3);
}

.widget-cta-button-link:hover {
    background: #4e9a5a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(92, 171, 106, 0.4);
    color: white !important;
    text-decoration: none !important;
}

/* =================================================================
   WIDGETS SECTION
   ================================================================= */

.widgets-section {
    padding: 20px 0;
}

/* =================================================================
   WIDGET: TABLE OF CONTENTS
   ================================================================= */

.widget-toc {
    margin: 0;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
}

.widget-toc-header {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-toc-icon {
    font-size: 1rem;
}

.widget-toc-title {
    flex: 1;
}

.widget-toc-toggle {
    display: none;
    color: #888;
    font-size: 16px;
    transition: transform 0.3s;
    pointer-events: none;
}

.widget-toc[data-collapsed="false"] .widget-toc-toggle {
    transform: rotate(180deg);
}

.widget-toc-nav {
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.widget-toc[data-collapsed="true"] .widget-toc-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.widget-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-toc-list li {
    margin-bottom: 4px;
}

.widget-toc-list a {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    padding: 4px 6px;
    border-radius: 3px;
}

.widget-toc-list a:hover {
    background: #2a2a2a;
    color: #fff;
}

.widget-toc-emoji {
    margin-right: 6px;
    font-size: 12px;
}

/* Desktop multi-column layout */
@media (min-width: 769px) {
    .widget-toc-list {
        display: grid;
        gap: 4px 16px;
        max-height: none;
    }
    
    /* Dynamic grid classes set by JavaScript */
    .widget-toc-list.toc-cols-1 { grid-template-columns: 1fr; }
    .widget-toc-list.toc-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .widget-toc-list.toc-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .widget-toc-list.toc-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .widget-toc-list.toc-cols-auto { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    
    .widget-toc-nav {
        max-height: none;
        overflow: visible;
    }
}

/* Mobile styles for TOC */
@media (max-width: 768px) {
    .widgets-section {
        padding: 15px 0;
    }
    
    .widget-toc {
        margin: 0;
        padding: 10px;
    }
    
    .widget-toc-header {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .widget-toc[data-collapsed="false"] .widget-toc-header {
        margin-bottom: 8px;
    }
    
    .widget-toc-toggle {
        display: block;
    }
    
    .widget-toc-list a {
        padding: 6px 4px;
        font-size: 11px;
    }
}

/* =================================================================
   WIDGET: CASINO SLOTS
   ================================================================= */

.widget-casino-slots {
    margin: 15px 0;
}

.widget-casino-slots-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-casino-slots-icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

.widget-casino-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    width: 100%;
}

/* Mobile - 3 columns */
@media (max-width: 480px) {
    .widget-casino-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .widget-casino-slot-name {
        font-size: 0.65rem;
        padding: 3px 2px;
    }
}

/* Tablet - 4 columns */
@media (min-width: 481px) and (max-width: 767px) {
    .widget-casino-slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Desktop - flexible layout with centered items */
@media (min-width: 768px) {
    .widget-casino-slots-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    /* When less than 6 items, use flexbox for centering */
    .widget-casino-slots-grid:has(.widget-casino-slot-item:nth-child(-n+5):last-child) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .widget-casino-slots-grid:has(.widget-casino-slot-item:nth-child(-n+5):last-child) .widget-casino-slot-item {
        width: 130px;
        flex: 0 0 130px;
    }
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    @media (min-width: 768px) {
        .widget-casino-slots-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .widget-casino-slot-item {
            width: 130px;
            flex: 0 0 130px;
        }
    }
}

.widget-casino-slot-item {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.widget-casino-slot-item:hover {
    transform: scale(1.05);
}

.widget-casino-slot-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.widget-casino-slot-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-casino-slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.widget-casino-slot-item:hover .widget-casino-slot-overlay {
    opacity: 1;
}

.widget-casino-slot-play {
    color: #5cab6a;
    font-size: 0.8rem;
    font-weight: 600;
}

.widget-casino-slot-name {
    padding: 4px 2px;
    color: #999;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
}


/* =================================================================
   WIDGET: RANDOM TABLE
   ================================================================= */

.widget-random-table {
    margin: 15px 0;
}

.widget-random-table-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-random-table-icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

.widget-random-table-content {
    width: 100%;
    border-collapse: collapse;
}

.widget-random-table-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.widget-random-table-row:last-child {
    border-bottom: none;
}

.widget-random-table-emoji {
    width: 30px;
    padding: 8px 4px;
    font-size: 1rem;
    text-align: center;
}

.widget-random-table-label {
    padding: 8px 6px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.widget-random-table-value {
    padding: 8px 6px;
    color: #bbb;
    font-size: 0.85rem;
    word-break: break-word;
}

@media (max-width: 768px) {
    .widget-random-table-title {
        font-size: 0.95rem;
    }
    
    .widget-random-table-emoji {
        width: 28px;
        padding: 6px 3px;
        font-size: 0.9rem;
    }
    
    .widget-random-table-label,
    .widget-random-table-value {
        padding: 10px 6px;
        font-size: 12px;
    }
}

/* AMP version styles */
.widget-toc-header-static {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-toc-icon {
    margin-right: 6px;
}

.widget-toc-nav-static {
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.widget-toc-empty {
    color: #666;
    font-style: italic;
    margin: 0;
    font-size: 12px;
}
