/**
 * Bengo Plus - Main Stylesheet
 * Website: bengoplus.click
 * All classes use wddce- prefix for namespace isolation
 * Color Palette: Teal #20B2AA | Dark Navy #0E1621 | Gray #808080 | Purple #800080 | Orchid #DA70D6
 */

/* CSS Variables */
:root {
    --wddce-primary: #20B2AA;
    --wddce-primary-dark: #1a9690;
    --wddce-secondary: #DA70D6;
    --wddce-secondary-dark: #c060bc;
    --wddce-bg: #0E1621;
    --wddce-bg-light: #162230;
    --wddce-bg-card: #1a2a3a;
    --wddce-text: #ffffff;
    --wddce-text-muted: #808080;
    --wddce-accent: #800080;
    --wddce-accent-light: #9a329a;
    --wddce-border: #2a3a4a;
    --wddce-success: #28a745;
    --wddce-warning: #ffc107;
    --wddce-danger: #dc3545;
    --wddce-radius-sm: 6px;
    --wddce-radius-md: 10px;
    --wddce-radius-lg: 16px;
    --wddce-radius-full: 50px;
    --wddce-shadow: 0 4px 12px rgba(0,0,0,0.3);
    --wddce-shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --wddce-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--wddce-text);
    background: var(--wddce-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--wddce-primary);
    text-decoration: none;
    transition: var(--wddce-transition);
}

a:hover {
    color: var(--wddce-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.wddce-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.wddce-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--wddce-bg) 0%, rgba(14,22,33,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wddce-border);
}

.wddce-header-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wddce-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wddce-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--wddce-radius-sm);
}

.wddce-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wddce-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wddce-header-btns {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.wddce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--wddce-radius-full);
    cursor: pointer;
    transition: var(--wddce-transition);
    min-height: 44px;
    white-space: nowrap;
}

.wddce-btn-primary {
    background: linear-gradient(135deg, var(--wddce-primary) 0%, var(--wddce-primary-dark) 100%);
    color: var(--wddce-bg);
}

.wddce-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32,178,170,0.4);
}

.wddce-btn-secondary {
    background: linear-gradient(135deg, var(--wddce-secondary) 0%, var(--wddce-secondary-dark) 100%);
    color: var(--wddce-text);
}

.wddce-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218,112,214,0.4);
}

.wddce-btn-outline {
    background: transparent;
    color: var(--wddce-primary);
    border: 2px solid var(--wddce-primary);
}

.wddce-btn-outline:hover {
    background: var(--wddce-primary);
    color: var(--wddce-bg);
}

.wddce-btn-dark {
    background: var(--wddce-accent);
    color: var(--wddce-text);
}

.wddce-btn-dark:hover {
    background: var(--wddce-accent-light);
}

.wddce-btn-lg {
    padding: 1.2rem 2.4rem;
    font-size: 1.5rem;
}

.wddce-btn-block {
    width: 100%;
}

/* Menu Button */
.wddce-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--wddce-bg-card);
    border: 1px solid var(--wddce-border);
    border-radius: var(--wddce-radius-sm);
    color: var(--wddce-text);
    cursor: pointer;
    transition: var(--wddce-transition);
}

.wddce-menu-btn:hover {
    background: var(--wddce-primary);
    color: var(--wddce-bg);
}

/* Mobile Menu */
.wddce-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: var(--wddce-transition);
}

.wddce-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wddce-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wddce-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.wddce-menu-active {
    right: 0;
}

.wddce-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--wddce-border);
}

.wddce-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wddce-bg-card);
    border: none;
    border-radius: var(--wddce-radius-sm);
    color: var(--wddce-text);
    cursor: pointer;
}

.wddce-menu-nav {
    list-style: none;
    padding: 1rem 0;
}

.wddce-menu-nav li a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 1.5rem;
    color: var(--wddce-text);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--wddce-border);
    transition: var(--wddce-transition);
}

.wddce-menu-nav li a:hover {
    background: var(--wddce-bg-card);
    color: var(--wddce-primary);
}

.wddce-menu-nav li a i {
    width: 24px;
    text-align: center;
    color: var(--wddce-primary);
}

/* Main Content */
.wddce-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.wddce-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--wddce-radius-lg);
    overflow: hidden;
}

.wddce-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.wddce-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wddce-carousel-active {
    opacity: 1;
}

.wddce-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.wddce-carousel-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.wddce-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--wddce-transition);
}

.wddce-dot-active {
    background: var(--wddce-primary);
    transform: scale(1.2);
}

/* Section Styles */
.wddce-section {
    margin-bottom: 2.5rem;
}

.wddce-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.wddce-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wddce-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wddce-section-title i {
    color: var(--wddce-secondary);
}

/* Game Grid */
.wddce-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.wddce-game-card {
    position: relative;
    background: var(--wddce-bg-card);
    border-radius: var(--wddce-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--wddce-transition);
}

.wddce-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wddce-shadow-lg);
}

.wddce-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.wddce-game-name {
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: var(--wddce-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wddce-game-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: var(--wddce-danger);
    color: var(--wddce-text);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--wddce-radius-sm);
}

/* Cards */
.wddce-card {
    background: var(--wddce-bg-card);
    border-radius: var(--wddce-radius-lg);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--wddce-border);
}

.wddce-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wddce-text);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wddce-card-title i {
    color: var(--wddce-secondary);
}

/* Stats Grid */
.wddce-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.wddce-stat-card {
    background: var(--wddce-bg-card);
    border-radius: var(--wddce-radius-md);
    padding: 1.2rem 0.8rem;
    text-align: center;
    border: 1px solid var(--wddce-border);
}

.wddce-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wddce-primary);
    margin-bottom: 0.3rem;
}

.wddce-stat-label {
    font-size: 1rem;
    color: var(--wddce-text-muted);
}

/* Feature List */
.wddce-feature-list {
    list-style: none;
}

.wddce-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wddce-border);
}

.wddce-feature-list li:last-child {
    border-bottom: none;
}

.wddce-feature-list li i {
    color: var(--wddce-primary);
    font-size: 1.6rem;
    min-width: 24px;
    padding-top: 0.2rem;
}

.wddce-feature-list li div {
    flex: 1;
}

/* CTA Banner */
.wddce-cta-banner {
    background: linear-gradient(135deg, var(--wddce-accent) 0%, var(--wddce-secondary-dark) 100%);
    border-radius: var(--wddce-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.wddce-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wddce-text);
    margin-bottom: 1rem;
}

.wddce-cta-text {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

/* Content Text */
.wddce-content-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--wddce-text);
    margin-bottom: 1.2rem;
}

.wddce-content-text strong {
    color: var(--wddce-primary);
}

/* Headings */
.wddce-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wddce-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wddce-h1 i {
    color: var(--wddce-secondary);
}

/* Accordion */
.wddce-accordion {
    background: var(--wddce-bg-card);
    border-radius: var(--wddce-radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--wddce-border);
}

.wddce-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem;
    cursor: pointer;
    transition: var(--wddce-transition);
}

.wddce-accordion-header:hover {
    background: var(--wddce-bg-light);
}

.wddce-accordion-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wddce-text);
}

.wddce-accordion-icon {
    color: var(--wddce-primary);
    transition: transform 0.3s ease;
}

.wddce-icon-rotate {
    transform: rotate(180deg);
}

.wddce-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wddce-accordion-open {
    max-height: 500px;
}

.wddce-accordion-body {
    padding: 0 1.4rem 1.4rem;
    font-size: 1.3rem;
    color: var(--wddce-text-muted);
    line-height: 1.6;
}

/* Footer */
.wddce-footer {
    background: var(--wddce-bg-light);
    border-top: 1px solid var(--wddce-border);
    padding: 2.5rem 0 1.5rem;
}

.wddce-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.wddce-footer-links a {
    color: var(--wddce-text-muted);
    font-size: 1.3rem;
    transition: var(--wddce-transition);
}

.wddce-footer-links a:hover {
    color: var(--wddce-primary);
}

.wddce-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--wddce-bg-card);
    border-radius: var(--wddce-radius-md);
}

.wddce-partners img {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: var(--wddce-transition);
}

.wddce-partners img:hover {
    opacity: 1;
}

.wddce-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: var(--wddce-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--wddce-border);
}

/* Bottom Navigation */
.wddce-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(14,22,33,0.95) 0%, var(--wddce-bg) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--wddce-border);
}

.wddce-bottom-nav-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.wddce-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 56px;
    padding: 0.6rem;
    background: none;
    border: none;
    color: var(--wddce-text-muted);
    cursor: pointer;
    transition: var(--wddce-transition);
}

.wddce-bottom-btn i,
.wddce-bottom-btn .material-icons {
    font-size: 22px;
}

.wddce-bottom-btn span:last-child {
    font-size: 1rem;
    font-weight: 500;
}

.wddce-bottom-btn:hover,
.wddce-bottom-btn.wddce-nav-active {
    color: var(--wddce-primary);
}

.wddce-bottom-btn.wddce-nav-active i,
.wddce-bottom-btn.wddce-nav-active .material-icons {
    color: var(--wddce-primary);
}

/* Touch Feedback */
.wddce-touch-active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* RTP Grid */
.wddce-rtp-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.wddce-rtp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--wddce-bg-light);
    border-radius: var(--wddce-radius-sm);
}

.wddce-rtp-game {
    font-size: 1.3rem;
    color: var(--wddce-text);
}

.wddce-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wddce-primary);
}

/* Desktop Visibility */
@media (min-width: 769px) {
    .wddce-bottom-nav {
        display: none;
    }

    .wddce-main {
        padding-bottom: 2rem;
    }
}

/* Mobile Visibility */
@media (max-width: 768px) {
    .wddce-main {
        padding-bottom: 80px;
    }

    .wddce-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screen Adjustments */
@media (max-width: 380px) {
    .wddce-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wddce-header-btns .wddce-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .wddce-h1 {
        font-size: 1.8rem;
    }
}
