/**
 * PHPLAY Theme Stylesheet
 * All classes use wbd17- prefix for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --wbd17-primary: #FFB347;
    --wbd17-secondary: #FFCC33;
    --wbd17-bg: #0A0A0A;
    --wbd17-bg-light: #1A1A1A;
    --wbd17-text: #FFFFFF;
    --wbd17-text-muted: #B0B0B0;
    --wbd17-accent: #FF6B6B;
    --wbd17-success: #4ECDC4;
    --wbd17-gradient: linear-gradient(135deg, #FFB347 0%, #FFCC33 100%);
    --wbd17-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --wbd17-radius: 8px;
    --wbd17-radius-lg: 16px;
    --wbd17-transition: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--wbd17-bg);
    color: var(--wbd17-text);
    line-height: 1.5;
    font-size: 1.6rem;
    overflow-x: hidden;
}

/* Container */
.wbd17-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.wbd17-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Header */
.wbd17-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--wbd17-bg);
    border-bottom: 1px solid var(--wbd17-bg-light);
    z-index: 1000;
    padding: 1rem 0;
}

.wbd17-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.wbd17-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wbd17-logo img {
    width: 32px;
    height: 32px;
}

.wbd17-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wbd17-primary);
}

.wbd17-header-actions {
    display: flex;
    gap: 0.8rem;
}

.wbd17-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--wbd17-radius);
    cursor: pointer;
    transition: var(--wbd17-transition);
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.wbd17-btn-primary {
    background: var(--wbd17-gradient);
    color: var(--wbd17-bg);
}

.wbd17-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--wbd17-shadow);
}

.wbd17-btn-outline {
    background: transparent;
    border: 2px solid var(--wbd17-primary);
    color: var(--wbd17-primary);
}

.wbd17-btn-outline:hover {
    background: var(--wbd17-primary);
    color: var(--wbd17-bg);
}

.wbd17-menu-toggle {
    background: none;
    border: none;
    color: var(--wbd17-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.wbd17-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wbd17-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.wbd17-menu-active {
    right: 0;
}

.wbd17-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wbd17-transition);
}

.wbd17-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wbd17-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wbd17-bg);
}

.wbd17-menu-close {
    background: none;
    border: none;
    color: var(--wbd17-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.wbd17-menu-nav {
    list-style: none;
}

.wbd17-menu-item {
    margin-bottom: 1rem;
}

.wbd17-menu-link {
    display: block;
    padding: 1rem;
    color: var(--wbd17-text);
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: var(--wbd17-radius);
    transition: var(--wbd17-transition);
}

.wbd17-menu-link:hover {
    background: var(--wbd17-bg);
    color: var(--wbd17-primary);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.wbd17-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.wbd17-slides {
    position: relative;
    width: 100%;
}

.wbd17-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.wbd17-slide-active {
    display: block;
}

.wbd17-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--wbd17-radius);
}

.wbd17-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.wbd17-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wbd17-bg-light);
    border: none;
    cursor: pointer;
    transition: var(--wbd17-transition);
}

.wbd17-dot-active {
    background: var(--wbd17-primary);
    transform: scale(1.2);
}

/* Section Titles */
.wbd17-section {
    padding: 2rem 0;
}

.wbd17-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wbd17-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.wbd17-subtitle {
    font-size: 1.6rem;
    color: var(--wbd17-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.wbd17-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    .wbd17-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.wbd17-game-card {
    background: var(--wbd17-bg-light);
    border-radius: var(--wbd17-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--wbd17-transition);
}

.wbd17-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wbd17-shadow);
}

.wbd17-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.wbd17-game-name {
    font-size: 1.2rem;
    color: var(--wbd17-text);
    text-align: center;
    padding: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.wbd17-category {
    margin-bottom: 2.5rem;
}

.wbd17-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--wbd17-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--wbd17-primary);
}

/* Features Grid */
.wbd17-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wbd17-feature-card {
    background: var(--wbd17-bg-light);
    padding: 1.5rem;
    border-radius: var(--wbd17-radius);
    text-align: center;
    transition: var(--wbd17-transition);
}

.wbd17-feature-card:hover {
    border: 1px solid var(--wbd17-primary);
}

.wbd17-feature-icon {
    font-size: 3rem;
    color: var(--wbd17-primary);
    margin-bottom: 1rem;
}

.wbd17-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wbd17-text);
    margin-bottom: 0.5rem;
}

.wbd17-feature-desc {
    font-size: 1.2rem;
    color: var(--wbd17-text-muted);
}

/* Content Section */
.wbd17-content {
    padding: 2rem 1.6rem;
    line-height: 1.8;
}

.wbd17-content h2 {
    font-size: 2rem;
    color: var(--wbd17-primary);
    margin: 2rem 0 1rem;
}

.wbd17-content h3 {
    font-size: 1.8rem;
    color: var(--wbd17-secondary);
    margin: 1.5rem 0 1rem;
}

.wbd17-content p {
    margin-bottom: 1.5rem;
    color: var(--wbd17-text-muted);
}

.wbd17-content ul, .wbd17-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.wbd17-content li {
    margin-bottom: 0.8rem;
    color: var(--wbd17-text-muted);
}

.wbd17-content a {
    color: var(--wbd17-primary);
    text-decoration: none;
    font-weight: 600;
}

.wbd17-content a:hover {
    text-decoration: underline;
}

/* Footer */
.wbd17-footer {
    background: var(--wbd17-bg-light);
    padding: 3rem 1.6rem 2rem;
    margin-top: 2rem;
}

.wbd17-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wbd17-footer-link {
    color: var(--wbd17-text-muted);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--wbd17-transition);
}

.wbd17-footer-link:hover {
    color: var(--wbd17-primary);
}

.wbd17-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wbd17-partner-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: var(--wbd17-transition);
}

.wbd17-partner-logo:hover {
    opacity: 1;
}

.wbd17-copyright {
    text-align: center;
    color: var(--wbd17-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.wbd17-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wbd17-bg);
    border-top: 1px solid var(--wbd17-bg-light);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    height: 64px;
}

@media (min-width: 769px) {
    .wbd17-bottom-nav {
        display: none;
    }
}

.wbd17-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    background: none;
    border: none;
    color: var(--wbd17-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: var(--wbd17-transition);
}

.wbd17-nav-item:hover,
.wbd17-nav-item-active {
    color: var(--wbd17-primary);
    transform: scale(1.1);
}

.wbd17-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.wbd17-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Promotional Banner */
.wbd17-promo-banner {
    background: var(--wbd17-gradient);
    color: var(--wbd17-bg);
    padding: 2rem 1.6rem;
    text-align: center;
    border-radius: var(--wbd17-radius-lg);
    margin: 2rem 0;
}

.wbd17-promo-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wbd17-promo-desc {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* RTP Table */
.wbd17-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1.4rem;
}

.wbd17-rtp-table th,
.wbd17-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--wbd17-bg-light);
}

.wbd17-rtp-table th {
    background: var(--wbd17-bg-light);
    color: var(--wbd17-primary);
    font-weight: 600;
}

.wbd17-rtp-table td {
    color: var(--wbd17-text-muted);
}

/* Utility Classes */
.wbd17-text-center {
    text-align: center;
}

.wbd17-mb-1 {
    margin-bottom: 1rem;
}

.wbd17-mb-2 {
    margin-bottom: 2rem;
}

.wbd17-mb-3 {
    margin-bottom: 3rem;
}

.wbd17-hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wbd17-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
