/**
 * phplus.sbs - Main Stylesheet
 * All classes use s287- prefix for namespace isolation
 * Color palette: #F0E68C | #36454F | #0F0F23 | #C0C0C0 | #DEB887 | #A9A9A9
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
    --s287-primary: #F0E68C;
    --s287-secondary: #DEB887;
    --s287-bg-dark: #0F0F23;
    --s287-bg-mid: #36454F;
    --s287-text-light: #C0C0C0;
    --s287-text-muted: #A9A9A9;
    --s287-accent: #DEB887;
    --s287-gold: #F0E68C;
    --s287-radius: 8px;
    --s287-radius-lg: 12px;
    --s287-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --s287-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::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, sans-serif;
    background: var(--s287-bg-dark);
    color: var(--s287-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--s287-gold); text-decoration: none; transition: var(--s287-transition); }
a:hover { color: var(--s287-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.s287-container { width: 100%; padding: 0 1.2rem; }

/* Header */
.s287-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 56px;
    background: var(--s287-bg-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    border-bottom: 2px solid var(--s287-gold);
}
.s287-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.s287-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.s287-logo-area span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s287-gold);
    letter-spacing: 0.5px;
}
.s287-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s287-btn-register, .s287-btn-login {
    padding: 0.5rem 1.2rem;
    border-radius: var(--s287-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--s287-transition);
    white-space: nowrap;
}
.s287-btn-register {
    background: linear-gradient(135deg, var(--s287-gold), var(--s287-secondary));
    color: var(--s287-bg-dark);
}
.s287-btn-register:hover { transform: scale(1.05); filter: brightness(1.1); }
.s287-btn-login {
    background: transparent;
    color: var(--s287-gold);
    border: 1.5px solid var(--s287-gold);
}
.s287-btn-login:hover { background: var(--s287-gold); color: var(--s287-bg-dark); }
.s287-menu-toggle {
    background: none;
    border: none;
    color: var(--s287-gold);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu Overlay */
.s287-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.s287-mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: var(--s287-bg-mid);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.s287-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(240,230,140,0.2);
}
.s287-mobile-menu-header span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s287-gold);
}
.s287-menu-close {
    background: none;
    border: none;
    color: var(--s287-text-muted);
    font-size: 2.2rem;
    cursor: pointer;
}
.s287-mobile-menu nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.4rem;
    color: var(--s287-text-light);
    border-bottom: 1px solid rgba(240,230,140,0.1);
    transition: var(--s287-transition);
}
.s287-mobile-menu nav a:hover {
    color: var(--s287-gold);
    padding-left: 0.8rem;
}

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

/* Carousel */
.s287-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 240px;
}
.s287-carousel-inner { position: relative; width: 100%; height: 100%; }
.s287-carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.s287-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s287-slide-active { opacity: 1; }
.s287-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--s287-gold);
    border: none;
    padding: 0.6rem 0.8rem;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
}
.s287-carousel-btn:hover { background: rgba(0,0,0,0.8); }
.s287-carousel-prev { left: 8px; }
.s287-carousel-next { right: 8px; }

/* Sections */
.s287-section {
    padding: 2rem 1.2rem;
    border-bottom: 1px solid rgba(240,230,140,0.08);
}
.s287-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s287-gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--s287-secondary);
    display: inline-block;
}

/* Game Grid */
.s287-game-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s287-secondary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--s287-gold);
}
.s287-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.s287-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--s287-transition);
    border-radius: var(--s287-radius);
    padding: 0.4rem;
    background: rgba(54,69,79,0.3);
}
.s287-game-item:hover {
    transform: translateY(-2px);
    background: rgba(54,69,79,0.6);
}
.s287-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s287-radius);
    object-fit: cover;
    margin-bottom: 0.3rem;
}
.s287-game-item span {
    font-size: 1.1rem;
    color: var(--s287-text-light);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Promo Buttons & Links */
.s287-promo-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--s287-gold), var(--s287-secondary));
    color: var(--s287-bg-dark);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: var(--s287-radius-lg);
    cursor: pointer;
    border: none;
    transition: var(--s287-transition);
    text-align: center;
}
.s287-promo-btn:hover { transform: scale(1.05); filter: brightness(1.1); }
.s287-promo-link {
    color: var(--s287-gold);
    font-weight: 600;
    border-bottom: 1px dotted var(--s287-gold);
}
.s287-promo-link:hover { color: var(--s287-primary); border-bottom-style: solid; }

/* Cards */
.s287-card {
    background: var(--s287-bg-mid);
    border-radius: var(--s287-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(240,230,140,0.1);
}
.s287-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s287-gold);
    margin-bottom: 0.8rem;
}

/* Footer */
.s287-footer {
    background: var(--s287-bg-mid);
    padding: 2rem 1.2rem;
    border-top: 2px solid var(--s287-gold);
}
.s287-footer-brand {
    font-size: 1.2rem;
    color: var(--s287-text-muted);
    line-height: 1.6rem;
    margin-bottom: 1.2rem;
}
.s287-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.s287-footer-links a {
    padding: 0.4rem 1rem;
    background: rgba(240,230,140,0.1);
    border-radius: var(--s287-radius);
    font-size: 1.1rem;
    color: var(--s287-text-light);
    transition: var(--s287-transition);
}
.s287-footer-links a:hover { background: rgba(240,230,140,0.2); color: var(--s287-gold); }
.s287-footer-copy {
    font-size: 1.1rem;
    color: var(--s287-text-muted);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(240,230,140,0.1);
}

/* Bottom Navigation */
.s287-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: var(--s287-bg-mid);
    border-top: 2px solid var(--s287-gold);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
.s287-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--s287-text-muted);
    cursor: pointer;
    transition: var(--s287-transition);
    gap: 0.2rem;
}
.s287-bottom-nav-btn .s287-nav-icon { font-size: 2.2rem; line-height: 1; }
.s287-bottom-nav-btn .s287-nav-label { font-size: 1rem; line-height: 1; }
.s287-bottom-nav-btn:hover, .s287-bottom-nav-active {
    color: var(--s287-gold);
}
.s287-bottom-nav-active .s287-nav-icon { transform: scale(1.15); }
.s287-touch-active { transform: scale(0.92); }

/* Content Text Styles */
.s287-text-block { margin-bottom: 1.2rem; line-height: 1.6rem; }
.s287-text-block p { margin-bottom: 0.8rem; }
.s287-text-block h3 {
    font-size: 1.5rem;
    color: var(--s287-secondary);
    margin: 1.2rem 0 0.6rem;
}
.s287-list-styled { padding-left: 1.2rem; margin-bottom: 1rem; }
.s287-list-styled li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.4rem;
    color: var(--s287-text-light);
    font-size: 1.3rem;
}
.s287-list-styled li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--s287-gold);
    font-size: 0.8rem;
}

/* Testimonial */
.s287-testimonial {
    background: rgba(54,69,79,0.4);
    border-radius: var(--s287-radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--s287-gold);
}
.s287-testimonial-name {
    font-weight: 600;
    color: var(--s287-gold);
    font-size: 1.2rem;
}
.s287-testimonial-text {
    font-size: 1.2rem;
    color: var(--s287-text-light);
    margin-top: 0.4rem;
    font-style: italic;
}

/* Winner Badge */
.s287-winner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(54,69,79,0.3);
    border-radius: var(--s287-radius);
    margin-bottom: 0.6rem;
}
.s287-winner-amount { color: var(--s287-gold); font-weight: 700; font-size: 1.3rem; }
.s287-winner-game { color: var(--s287-text-muted); font-size: 1.1rem; }

/* Payment Methods */
.s287-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
.s287-payment-item {
    padding: 0.6rem 1.2rem;
    background: rgba(54,69,79,0.4);
    border-radius: var(--s287-radius);
    font-size: 1.2rem;
    color: var(--s287-text-light);
    border: 1px solid rgba(240,230,140,0.15);
}

/* CTA Section */
.s287-cta-section {
    text-align: center;
    padding: 2rem 1.2rem;
    background: linear-gradient(135deg, rgba(15,15,35,0.9), rgba(54,69,79,0.9));
    border-radius: var(--s287-radius-lg);
    margin: 1.5rem 0;
    border: 1px solid rgba(240,230,140,0.2);
}
.s287-cta-section p {
    font-size: 1.3rem;
    color: var(--s287-text-light);
    margin-bottom: 1.2rem;
}

/* FAQ Accordion */
.s287-faq-item { margin-bottom: 0.8rem; }
.s287-faq-q {
    font-weight: 600;
    color: var(--s287-gold);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.s287-faq-a {
    font-size: 1.2rem;
    color: var(--s287-text-light);
    padding-left: 1rem;
    border-left: 2px solid var(--s287-secondary);
}

/* Responsive */
@media (min-width: 769px) {
    .s287-bottom-nav { display: none; }
    .s287-menu-toggle { display: none; }
    body { max-width: 100%; }
    .s287-header { max-width: 100%; }
    .s287-game-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
    .s287-main { padding-bottom: 80px; }
    .s287-footer { padding-bottom: 80px; }
}
