/**
 * 8k84 Core Stylesheet
 * Class prefix: wd085-
 * Color palette: #1C2833 #4A4A4A #3CB371 #8FBC8F #95A5A6 #E0E0E0
 * Mobile-first responsive design, max-width 430px base
 */

/* === CSS Variables === */
:root {
    --wd085-bg-dark: #1C2833;
    --wd085-bg-mid: #2C3E50;
    --wd085-bg-card: #34495E;
    --wd085-primary: #3CB371;
    --wd085-primary-hover: #2E8B57;
    --wd085-secondary: #8FBC8F;
    --wd085-text-light: #E0E0E0;
    --wd085-text-muted: #95A5A6;
    --wd085-text-dark: #4A4A4A;
    --wd085-accent-gold: #F0C040;
    --wd085-accent-red: #E74C3C;
    --wd085-border: #4A6274;
    --wd085-shadow: rgba(0, 0, 0, 0.3);
    --wd085-radius: 8px;
    --wd085-radius-lg: 12px;
    font-size: 62.5%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: var(--wd085-text-light);
    background-color: var(--wd085-bg-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--wd085-primary);
}

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

/* === Container === */
.wd085-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.wd085-wrapper {
    width: 100%;
    overflow: hidden;
}

/* === Header === */
.wd085-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--wd085-bg-dark) 0%, var(--wd085-bg-mid) 100%);
    border-bottom: 1px solid var(--wd085-border);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}

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

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

.wd085-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wd085-primary);
    letter-spacing: 0.5px;
}

.wd085-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wd085-header-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--wd085-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-height: 32px;
}

.wd085-btn-register {
    background: var(--wd085-primary);
    color: #fff;
}

.wd085-btn-register:hover {
    background: var(--wd085-primary-hover);
    transform: scale(1.03);
}

.wd085-btn-login {
    background: transparent;
    color: var(--wd085-primary);
    border: 1.5px solid var(--wd085-primary);
}

.wd085-btn-login:hover {
    background: rgba(60, 179, 113, 0.1);
}

.wd085-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.wd085-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wd085-text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.wd085-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.wd085-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.wd085-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* === Mobile Menu === */
.wd085-mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(28, 40, 51, 0.98);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.wd085-menu-active {
    display: block !important;
}

.wd085-menu-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.6rem;
    color: var(--wd085-text-light);
    border-bottom: 1px solid var(--wd085-border);
    transition: color 0.2s;
}

.wd085-menu-link:hover {
    color: var(--wd085-primary);
}

/* === Main Content === */
.wd085-main {
    padding-top: 56px;
    min-height: 100vh;
}

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

/* === Carousel === */
.wd085-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    border-radius: 0 0 var(--wd085-radius-lg) var(--wd085-radius-lg);
}

.wd085-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wd085-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd085-slide-active {
    display: block;
}

.wd085-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

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

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

/* === Section Title === */
.wd085-section {
    padding: 2rem 0;
}

.wd085-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wd085-text-light);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--wd085-primary);
    line-height: 1.4;
}

.wd085-section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wd085-secondary);
    margin-bottom: 0.8rem;
}

/* === Category Label === */
.wd085-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--wd085-primary);
    margin-bottom: 1rem;
    padding: 0.6rem 0;
}

.wd085-category-label i,
.wd085-category-label .material-icons {
    font-size: 2.2rem;
}

/* === Game Grid === */
.wd085-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.wd085-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: var(--wd085-radius);
    padding: 0.5rem;
    background: var(--wd085-bg-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wd085-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--wd085-shadow);
}

.wd085-game-card img {
    width: 64px;
    height: 64px;
    border-radius: var(--wd085-radius);
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.wd085-game-name {
    font-size: 1rem;
    color: var(--wd085-text-muted);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    max-width: 72px;
}

/* === Buttons === */
.wd085-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--wd085-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.wd085-btn-primary {
    background: linear-gradient(135deg, var(--wd085-primary) 0%, #2E8B57 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(60, 179, 113, 0.3);
}

.wd085-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(60, 179, 113, 0.5);
    transform: translateY(-1px);
}

.wd085-btn-outline {
    background: transparent;
    color: var(--wd085-primary);
    border: 2px solid var(--wd085-primary);
}

.wd085-btn-gold {
    background: linear-gradient(135deg, var(--wd085-accent-gold) 0%, #DAA520 100%);
    color: var(--wd085-bg-dark);
    font-weight: 700;
}

.wd085-btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    border-radius: var(--wd085-radius-lg);
}

.wd085-btn-block {
    display: flex;
    width: 100%;
}

/* === Promo Banner === */
.wd085-promo-banner {
    background: linear-gradient(135deg, var(--wd085-bg-card) 0%, var(--wd085-bg-mid) 100%);
    border: 1px solid var(--wd085-border);
    border-radius: var(--wd085-radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.wd085-promo-banner h3 {
    font-size: 1.8rem;
    color: var(--wd085-accent-gold);
    margin-bottom: 0.6rem;
}

.wd085-promo-banner p {
    font-size: 1.3rem;
    color: var(--wd085-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* === Content Card === */
.wd085-card {
    background: var(--wd085-bg-card);
    border-radius: var(--wd085-radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--wd085-border);
}

.wd085-card h3 {
    font-size: 1.7rem;
    color: var(--wd085-primary);
    margin-bottom: 0.8rem;
}

.wd085-card p, .wd085-card li {
    font-size: 1.3rem;
    color: var(--wd085-text-muted);
    line-height: 1.6;
}

.wd085-card ul {
    list-style: none;
    padding: 0;
}

.wd085-card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.wd085-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--wd085-primary);
    border-radius: 50%;
}

/* === Feature Grid === */
.wd085-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wd085-feature-item {
    background: var(--wd085-bg-card);
    border-radius: var(--wd085-radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--wd085-border);
    transition: transform 0.2s;
}

.wd085-feature-item:hover {
    transform: scale(1.02);
}

.wd085-feature-item i,
.wd085-feature-item .material-icons {
    font-size: 2.8rem;
    color: var(--wd085-primary);
    margin-bottom: 0.5rem;
}

.wd085-feature-item h4 {
    font-size: 1.3rem;
    color: var(--wd085-text-light);
    margin-bottom: 0.3rem;
}

.wd085-feature-item p {
    font-size: 1.1rem;
    color: var(--wd085-text-muted);
}

/* === Testimonial === */
.wd085-testimonial {
    background: var(--wd085-bg-card);
    border-radius: var(--wd085-radius-lg);
    padding: 1.2rem;
    margin: 0.8rem 0;
    border-left: 3px solid var(--wd085-primary);
}

.wd085-testimonial-text {
    font-size: 1.3rem;
    color: var(--wd085-text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.wd085-testimonial-author {
    font-size: 1.1rem;
    color: var(--wd085-secondary);
    font-weight: 600;
}

/* === RTP Table === */
.wd085-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.wd085-rtp-table th {
    background: var(--wd085-bg-mid);
    color: var(--wd085-primary);
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--wd085-primary);
}

.wd085-rtp-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--wd085-border);
    color: var(--wd085-text-muted);
}

.wd085-rtp-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--wd085-border);
    overflow: hidden;
}

.wd085-rtp-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wd085-primary), var(--wd085-secondary));
}

/* === Winner Showcase === */
.wd085-winner-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--wd085-border);
}

.wd085-winner-item:last-child {
    border-bottom: none;
}

.wd085-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wd085-bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--wd085-primary);
    flex-shrink: 0;
}

.wd085-winner-info {
    flex: 1;
    min-width: 0;
}

.wd085-winner-name {
    font-size: 1.2rem;
    color: var(--wd085-text-light);
    font-weight: 600;
}

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

.wd085-winner-amount {
    font-size: 1.4rem;
    color: var(--wd085-accent-gold);
    font-weight: 700;
    white-space: nowrap;
}

/* === Payment Methods === */
.wd085-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.wd085-payment-item {
    background: var(--wd085-bg-card);
    border: 1px solid var(--wd085-border);
    border-radius: var(--wd085-radius);
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    color: var(--wd085-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === Footer === */
.wd085-footer {
    background: var(--wd085-bg-dark);
    border-top: 1px solid var(--wd085-border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

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

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

.wd085-footer-link {
    padding: 0.5rem 1rem;
    background: var(--wd085-bg-card);
    border: 1px solid var(--wd085-border);
    border-radius: var(--wd085-radius);
    font-size: 1.1rem;
    color: var(--wd085-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.wd085-footer-link:hover {
    color: var(--wd085-primary);
    border-color: var(--wd085-primary);
}

.wd085-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wd085-footer-nav a {
    font-size: 1.2rem;
    color: var(--wd085-text-muted);
    transition: color 0.2s;
}

.wd085-footer-nav a:hover {
    color: var(--wd085-primary);
}

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

/* === Bottom Navigation === */
.wd085-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--wd085-bg-mid) 0%, var(--wd085-bg-dark) 100%);
    border-top: 1px solid var(--wd085-border);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 -2px 12px var(--wd085-shadow);
}

.wd085-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wd085-text-muted);
    transition: all 0.2s ease;
    border-radius: var(--wd085-radius);
    padding: 0.3rem;
    gap: 2px;
}

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

.wd085-bottom-nav-btn.active {
    color: var(--wd085-primary);
}

.wd085-bottom-nav-btn i,
.wd085-bottom-nav-btn .material-icons,
.wd085-bottom-nav-btn ion-icon {
    font-size: 22px;
}

.wd085-bottom-nav-btn span {
    font-size: 1rem;
    line-height: 1.1;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .wd085-bottom-nav {
        display: none;
    }
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .wd085-hamburger {
        display: flex;
    }
    .wd085-header-btn.wd085-btn-login {
        display: none;
    }
    .wd085-header-btn.wd085-btn-register {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* === Desktop Navigation === */
.wd085-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .wd085-desktop-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }
    .wd085-desktop-nav a {
        font-size: 1.3rem;
        color: var(--wd085-text-muted);
        transition: color 0.2s;
    }
    .wd085-desktop-nav a:hover {
        color: var(--wd085-primary);
    }
    .wd085-container {
        max-width: 768px;
    }
    .wd085-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .wd085-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Promo Text Link === */
.wd085-promo-text {
    color: var(--wd085-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.wd085-promo-text:hover {
    color: var(--wd085-accent-gold);
}

/* === Internal Link === */
.wd085-internal-link {
    color: var(--wd085-secondary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.wd085-internal-link:hover {
    color: var(--wd085-primary);
}

/* === App Download CTA === */
.wd085-app-cta {
    background: linear-gradient(135deg, var(--wd085-bg-mid) 0%, var(--wd085-bg-dark) 100%);
    border: 1px solid var(--wd085-primary);
    border-radius: var(--wd085-radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.wd085-app-cta h3 {
    font-size: 1.8rem;
    color: var(--wd085-text-light);
    margin-bottom: 0.5rem;
}

.wd085-app-cta p {
    font-size: 1.2rem;
    color: var(--wd085-text-muted);
    margin-bottom: 1rem;
}

/* === Help Content Styles === */
.wd085-help-section {
    margin-bottom: 1.5rem;
}

.wd085-help-section h2 {
    font-size: 1.8rem;
    color: var(--wd085-primary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--wd085-border);
}

.wd085-help-section h3 {
    font-size: 1.5rem;
    color: var(--wd085-secondary);
    margin-bottom: 0.6rem;
}

.wd085-help-section p {
    font-size: 1.3rem;
    color: var(--wd085-text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.wd085-help-section ol,
.wd085-help-section ul {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.wd085-help-section li {
    font-size: 1.3rem;
    color: var(--wd085-text-muted);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

/* === Inline promo in text === */
.wd085-text-promo {
    display: inline;
    color: var(--wd085-primary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed var(--wd085-primary);
    transition: all 0.2s;
}

.wd085-text-promo:hover {
    color: var(--wd085-accent-gold);
    border-bottom-color: var(--wd085-accent-gold);
}

/* === Divider === */
.wd085-divider {
    height: 1px;
    background: var(--wd085-border);
    margin: 1.5rem 0;
}

/* === Breadcrumb === */
.wd085-breadcrumb {
    font-size: 1.2rem;
    color: var(--wd085-text-muted);
    margin-bottom: 1rem;
}

.wd085-breadcrumb a {
    color: var(--wd085-text-muted);
}

.wd085-breadcrumb a:hover {
    color: var(--wd085-primary);
}

/* === Responsive Utility === */
.wd085-text-center { text-align: center; }
.wd085-mt-1 { margin-top: 1rem; }
.wd085-mt-2 { margin-top: 2rem; }
.wd085-mb-1 { margin-bottom: 1rem; }
.wd085-mb-2 { margin-bottom: 2rem; }
.wd085-hidden-mobile { display: none; }

@media (min-width: 769px) {
    .wd085-hidden-mobile { display: block; }
    .wd085-hidden-desktop { display: none; }
}
