/**
 * Spintime Casino - Core Stylesheet
 * All classes use wc9b7- prefix for namespace isolation
 * Color palette: #1A1A2E (bg), #8FBC8F (primary text/accent)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
    --wc9b7-bg: #1A1A2E;
    --wc9b7-bg-light: #232342;
    --wc9b7-bg-card: #2a2a4a;
    --wc9b7-primary: #8FBC8F;
    --wc9b7-primary-dark: #6a9e6a;
    --wc9b7-primary-light: #a8d4a8;
    --wc9b7-text: #e0e0e0;
    --wc9b7-text-muted: #9a9ab0;
    --wc9b7-accent: #FFD700;
    --wc9b7-accent2: #FF6B6B;
    --wc9b7-border: #3a3a5c;
    --wc9b7-white: #ffffff;
    --wc9b7-font-size: 62.5%;
}

/* Base Reset */
html {
    font-size: var(--wc9b7-font-size);
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--wc9b7-bg);
    color: var(--wc9b7-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--wc9b7-primary-light);
}

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

/* Header */
.wc9b7-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #1e1e38, #2a2a50);
    z-index: 1000;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--wc9b7-primary-dark);
    backdrop-filter: blur(10px);
}

.wc9b7-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wc9b7-header-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.wc9b7-header-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc9b7-primary);
    letter-spacing: 0.05rem;
}

.wc9b7-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wc9b7-btn-register {
    background: linear-gradient(135deg, var(--wc9b7-accent), #ffb300);
    color: #1a1a2e;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wc9b7-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.wc9b7-btn-login {
    background: transparent;
    color: var(--wc9b7-primary);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--wc9b7-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wc9b7-btn-login:hover {
    background: rgba(143, 188, 143, 0.15);
}

.wc9b7-menu-btn {
    background: none;
    border: none;
    color: var(--wc9b7-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

/* Mobile Menu */
.wc9b7-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.wc9b7-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(180deg, #1e1e38, #16162b);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.wc9b7-mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wc9b7-border);
}

.wc9b7-mobile-menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wc9b7-primary);
}

.wc9b7-mobile-menu-nav {
    list-style: none;
}

.wc9b7-mobile-menu-nav li {
    margin-bottom: 0.3rem;
}

.wc9b7-mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.8rem;
    color: var(--wc9b7-text);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.wc9b7-mobile-menu-nav a:hover {
    background: rgba(143, 188, 143, 0.12);
    color: var(--wc9b7-primary);
}

.wc9b7-mobile-menu-nav .material-icons,
.wc9b7-mobile-menu-nav .fas,
.wc9b7-mobile-menu-nav .bi {
    font-size: 2rem;
    color: var(--wc9b7-primary);
}

/* Main Content */
main {
    padding-top: 56px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.wc9b7-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.appc9b-slide {
    display: none;
    cursor: pointer;
}

.appc9b-slide:first-child {
    display: block;
}

.appc9b-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wc9b7-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.wc9b7-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.wc9b7-dot.wc9b7-active {
    background: var(--wc9b7-accent);
    width: 20px;
    border-radius: 4px;
}

/* Sections */
.wc9b7-section {
    padding: 2rem 1.4rem;
}

.wc9b7-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wc9b7-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--wc9b7-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wc9b7-section-title .fas,
.wc9b7-section-title .material-icons,
.wc9b7-section-title .bi {
    font-size: 2rem;
}

/* Game Grid */
.wc9b7-category-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wc9b7-accent);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wc9b7-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.wc9b7-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.wc9b7-game-item:hover {
    transform: translateY(-3px);
}

.wc9b7-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.wc9b7-game-item:hover img {
    border-color: var(--wc9b7-primary);
}

.wc9b7-game-name {
    font-size: 1rem;
    color: var(--wc9b7-text-muted);
    margin-top: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.wc9b7-card {
    background: var(--wc9b7-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--wc9b7-border);
    transition: border-color 0.2s;
}

.wc9b7-card:hover {
    border-color: var(--wc9b7-primary-dark);
}

.wc9b7-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wc9b7-primary);
    margin-bottom: 0.8rem;
}

.wc9b7-card p {
    font-size: 1.3rem;
    color: var(--wc9b7-text-muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

/* Promo Button */
.wc9b7-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--wc9b7-accent), #ffb300);
    color: #1a1a2e;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    margin: 0.8rem 0;
}

.wc9b7-promo-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}

/* Promo text link */
.wc9b7-promo-link {
    color: var(--wc9b7-accent);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.wc9b7-promo-link:hover {
    color: #ffe44d;
}

/* Footer */
.wc9b7-footer {
    background: linear-gradient(180deg, #16162b, #101020);
    padding: 2rem 1.4rem 3rem;
    border-top: 2px solid var(--wc9b7-primary-dark);
}

.wc9b7-footer-brand {
    font-size: 1.4rem;
    color: var(--wc9b7-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wc9b7-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.wc9b7-footer-links a {
    font-size: 1.2rem;
    color: var(--wc9b7-primary);
    padding: 0.4rem 0.8rem;
    background: var(--wc9b7-bg-card);
    border-radius: 16px;
    transition: background 0.2s;
}

.wc9b7-footer-links a:hover {
    background: var(--wc9b7-primary-dark);
    color: var(--wc9b7-white);
}

.wc9b7-footer-copy {
    font-size: 1.1rem;
    color: var(--wc9b7-text-muted);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--wc9b7-border);
}

/* Bottom Navigation */
.wc9b7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1e1e38, #16162b);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1.5px solid var(--wc9b7-primary-dark);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.wc9b7-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--wc9b7-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    padding: 0;
}

.wc9b7-bottom-nav-btn:hover,
.wc9b7-bottom-nav-btn:focus {
    color: var(--wc9b7-primary);
    transform: scale(1.08);
}

.wc9b7-bottom-nav-btn.active {
    color: var(--wc9b7-accent);
}

.wc9b7-bottom-nav-btn .fas,
.wc9b7-bottom-nav-btn .material-icons,
.wc9b7-bottom-nav-btn ion-icon,
.wc9b7-bottom-nav-btn .bi {
    font-size: 22px;
    margin-bottom: 2px;
}

.wc9b7-bottom-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

@media (min-width: 769px) {
    .wc9b7-bottom-nav {
        display: none;
    }
}

/* Testimonial */
.wc9b7-testimonial {
    background: var(--wc9b7-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--wc9b7-primary);
}

.wc9b7-testimonial-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wc9b7-accent);
}

.wc9b7-testimonial-text {
    font-size: 1.2rem;
    color: var(--wc9b7-text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* Winner badge */
.wc9b7-winner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--wc9b7-bg-card);
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.wc9b7-winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wc9b7-primary);
}

.wc9b7-winner-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wc9b7-accent);
    margin-left: auto;
}

.wc9b7-winner-game {
    font-size: 1rem;
    color: var(--wc9b7-text-muted);
}

/* Payment icons */
.wc9b7-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1rem 0;
}

.wc9b7-payment-item {
    background: var(--wc9b7-bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--wc9b7-text);
    border: 1px solid var(--wc9b7-border);
}

/* FAQ */
.wc9b7-faq-item {
    background: var(--wc9b7-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.wc9b7-faq-q {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wc9b7-primary);
    padding: 1rem 1.2rem;
}

.wc9b7-faq-a {
    font-size: 1.2rem;
    color: var(--wc9b7-text-muted);
    padding: 0 1.2rem 1rem;
    line-height: 1.6;
}

/* Badge / Tag */
.wc9b7-badge {
    display: inline-block;
    background: var(--wc9b7-accent);
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
}

.wc9b7-tag {
    display: inline-block;
    background: rgba(143, 188, 143, 0.15);
    color: var(--wc9b7-primary);
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin: 0.2rem;
}

/* Feature list */
.wc9b7-feature-list {
    list-style: none;
}

.wc9b7-feature-list li {
    padding: 0.6rem 0;
    font-size: 1.3rem;
    color: var(--wc9b7-text);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.wc9b7-feature-list li i {
    color: var(--wc9b7-primary);
    margin-top: 0.2rem;
    font-size: 1.4rem;
}

/* Utility */
.wc9b7-text-center { text-align: center; }
.wc9b7-mt-1 { margin-top: 1rem; }
.wc9b7-mt-2 { margin-top: 2rem; }
.wc9b7-mb-1 { margin-bottom: 1rem; }
.wc9b7-mb-2 { margin-bottom: 2rem; }

/* H1 Page Title */
.wc9b7-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wc9b7-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* RTP table */
.wc9b7-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.wc9b7-rtp-item {
    background: var(--wc9b7-bg-card);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--wc9b7-border);
}

.wc9b7-rtp-game {
    font-size: 1.1rem;
    color: var(--wc9b7-text);
    font-weight: 600;
}

.wc9b7-rtp-value {
    font-size: 1.5rem;
    color: var(--wc9b7-accent);
    font-weight: 700;
}
