/**
 * PhDream11 Core CSS Styles
 * Class prefix: w9d2b-
 * All classes use w9d2b- prefix to avoid conflicts
 */

/* CSS Variables */
:root {
    --w9d2b-primary: #F4A460;
    --w9d2b-secondary: #D2B48C;
    --w9d2b-bg: #1E1E1E;
    --w9d2b-bg-light: #2A2A2A;
    --w9d2b-text: #FAF0E6;
    --w9d2b-text-muted: #B8A898;
    --w9d2b-accent: #F4A460;
    --w9d2b-border: #3A3A3A;
    --w9d2b-success: #4CAF50;
    --w9d2b-warning: #FF9800;
    --w9d2b-radius: 8px;
    --w9d2b-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--w9d2b-bg);
    color: var(--w9d2b-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

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

a:hover {
    color: var(--w9d2b-accent);
}

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

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

.w9d2b-wrapper {
    width: 100%;
    padding: 1.2rem;
}

/* Header */
.w9d2b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w9d2b-bg) 0%, rgba(30,30,30,0.95) 100%);
    border-bottom: 1px solid var(--w9d2b-border);
    z-index: 1000;
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
}

.w9d2b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w9d2b-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w9d2b-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w9d2b-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w9d2b-primary);
    letter-spacing: 0.5px;
}

.w9d2b-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w9d2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w9d2b-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.w9d2b-btn-primary {
    background: linear-gradient(135deg, var(--w9d2b-primary) 0%, #E09050 100%);
    color: var(--w9d2b-bg);
}

.w9d2b-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244,164,96,0.4);
}

.w9d2b-btn-secondary {
    background: transparent;
    color: var(--w9d2b-text);
    border: 1px solid var(--w9d2b-primary);
}

.w9d2b-btn-secondary:hover {
    background: var(--w9d2b-primary);
    color: var(--w9d2b-bg);
}

.w9d2b-menu-btn {
    background: none;
    border: none;
    color: var(--w9d2b-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.w9d2b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w9d2b-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid var(--w9d2b-border);
}

.w9d2b-mobile-menu.site2b5-menu-open {
    right: 0;
}

.w9d2b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--w9d2b-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w9d2b-menu-nav {
    margin-top: 3rem;
}

.w9d2b-menu-nav a {
    display: block;
    padding: 1.2rem 0;
    color: var(--w9d2b-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--w9d2b-border);
    transition: all 0.3s ease;
}

.w9d2b-menu-nav a:hover {
    color: var(--w9d2b-primary);
    padding-left: 0.8rem;
}

.w9d2b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w9d2b-menu-overlay.site2b5-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.w9d2b-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

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

/* Carousel/Slider */
.w9d2b-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--w9d2b-radius);
    margin: 1rem 0;
}

.w9d2b-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w9d2b-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.w9d2b-slide.site2b5-slide-active {
    opacity: 1;
    position: relative;
}

.w9d2b-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--w9d2b-radius);
    cursor: pointer;
}

.w9d2b-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w9d2b-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w9d2b-dot.site2b5-dot-active {
    background: var(--w9d2b-primary);
    transform: scale(1.2);
}

/* Sections */
.w9d2b-section {
    padding: 1.5rem 0;
}

.w9d2b-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w9d2b-primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.w9d2b-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--w9d2b-primary);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

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

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

.w9d2b-game-item:hover {
    transform: scale(1.08);
}

.w9d2b-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--w9d2b-radius);
    object-fit: cover;
    border: 2px solid var(--w9d2b-border);
    transition: border-color 0.3s ease;
}

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

.w9d2b-game-name {
    font-size: 1.1rem;
    color: var(--w9d2b-text);
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.w9d2b-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w9d2b-accent);
    margin: 1.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--w9d2b-primary);
}

/* Cards */
.w9d2b-card {
    background: var(--w9d2b-bg-light);
    border-radius: var(--w9d2b-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--w9d2b-border);
    transition: all 0.3s ease;
}

.w9d2b-card:hover {
    border-color: var(--w9d2b-primary);
    box-shadow: var(--w9d2b-shadow);
}

.w9d2b-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w9d2b-primary);
    margin-bottom: 0.8rem;
}

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

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

.w9d2b-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.w9d2b-footer-brand p {
    font-size: 1.2rem;
    color: var(--w9d2b-text-muted);
    line-height: 1.6;
    margin-top: 0.8rem;
}

.w9d2b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w9d2b-footer-links a {
    font-size: 1.2rem;
    color: var(--w9d2b-text);
    padding: 0.4rem 0.8rem;
    background: var(--w9d2b-bg);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w9d2b-footer-links a:hover {
    color: var(--w9d2b-primary);
    background: var(--w9d2b-border);
}

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

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

.w9d2b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    color: var(--w9d2b-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.4rem;
}

.w9d2b-nav-item:hover,
.w9d2b-nav-item.active {
    color: var(--w9d2b-primary);
    background: rgba(244,164,96,0.1);
}

.w9d2b-nav-item i,
.w9d2b-nav-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.w9d2b-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.w9d2b-nav-text {
    font-size: 10px;
    text-align: center;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .w9d2b-bottom-nav {
        display: none;
    }
}

/* Promo Links */
.w9d2b-promo-link {
    color: var(--w9d2b-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w9d2b-promo-link:hover {
    color: var(--w9d2b-accent);
    text-decoration: underline;
}

.w9d2b-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w9d2b-primary) 0%, #E09050 100%);
    color: var(--w9d2b-bg);
    padding: 0.8rem 1.6rem;
    border-radius: var(--w9d2b-radius);
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.w9d2b-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244,164,96,0.4);
}

/* List Styles */
.w9d2b-list {
    list-style: none;
    padding: 0;
}

.w9d2b-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--w9d2b-border);
    font-size: 1.3rem;
    color: var(--w9d2b-text);
    position: relative;
    padding-left: 1.5rem;
}

.w9d2b-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--w9d2b-primary);
}

/* Badge */
.w9d2b-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--w9d2b-primary);
    color: var(--w9d2b-bg);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
}

/* Text Utilities */
.w9d2b-text-center { text-align: center; }
.w9d2b-text-primary { color: var(--w9d2b-primary); }
.w9d2b-text-muted { color: var(--w9d2b-text-muted); }
.w9d2b-text-bold { font-weight: 700; }

/* Spacing */
.w9d2b-mt-1 { margin-top: 0.5rem; }
.w9d2b-mt-2 { margin-top: 1rem; }
.w9d2b-mt-3 { margin-top: 1.5rem; }
.w9d2b-mb-1 { margin-bottom: 0.5rem; }
.w9d2b-mb-2 { margin-bottom: 1rem; }
.w9d2b-mb-3 { margin-bottom: 1.5rem; }

/* Grid Layout */
.w9d2b-grid {
    display: grid;
    gap: 1rem;
}

.w9d2b-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.w9d2b-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* RTP Section */
.w9d2b-rtp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--w9d2b-border);
}

.w9d2b-rtp-bar {
    height: 6px;
    background: var(--w9d2b-border);
    border-radius: 3px;
    flex: 1;
    margin: 0 0.8rem;
    overflow: hidden;
}

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

/* Testimonials */
.w9d2b-testimonial {
    background: var(--w9d2b-bg-light);
    border-radius: var(--w9d2b-radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--w9d2b-primary);
}

.w9d2b-testimonial-text {
    font-size: 1.2rem;
    color: var(--w9d2b-text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.w9d2b-testimonial-author {
    font-size: 1.1rem;
    color: var(--w9d2b-text-muted);
}

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

.w9d2b-payment-item {
    background: var(--w9d2b-bg-light);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    color: var(--w9d2b-text);
    border: 1px solid var(--w9d2b-border);
}

/* FAQ Section */
.w9d2b-faq-item {
    margin-bottom: 0.8rem;
}

.w9d2b-faq-question {
    font-weight: 600;
    color: var(--w9d2b-primary);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.w9d2b-faq-answer {
    color: var(--w9d2b-text-muted);
    font-size: 1.2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--w9d2b-border);
}

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

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

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

.w9d2b-winner-amount {
    font-weight: 700;
    color: var(--w9d2b-success);
    font-size: 1.2rem;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 430px) {
    .w9d2b-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .w9d2b-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .w9d2b-container {
        max-width: 500px;
    }

    .w9d2b-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
