/**
 * xoplay.sbs - Core Design Stylesheet
 * All classes prefixed with pg34- to avoid conflicts
 * Color palette: #F08080 | #E9967A | #A0522D | #141414
 * Mobile-first design (max-width: 430px base)
 */

/* CSS Variables */
:root {
    --pg34-primary: #F08080;
    --pg34-secondary: #E9967A;
    --pg34-accent: #A0522D;
    --pg34-bg: #141414;
    --pg34-bg-light: #1e1e1e;
    --pg34-bg-card: #252525;
    --pg34-text: #f5f0eb;
    --pg34-text-muted: #b0a89e;
    --pg34-border: #3a302a;
    --pg34-radius: 1rem;
    --pg34-radius-sm: 0.6rem;
    --pg34-shadow: 0 4px 20px rgba(240, 128, 128, 0.15);
    --pg34-transition: all 0.3s ease;
    --pg34-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
html { font-size: 62.5%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--pg34-font);
    background: var(--pg34-bg);
    color: var(--pg34-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--pg34-primary); text-decoration: none; transition: var(--pg34-transition); }
a:hover { color: var(--pg34-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.pg34-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, #1a1210 0%, #141414 50%, #1a1210 100%);
    border-bottom: 1px solid var(--pg34-border);
    padding: 0 1.2rem; height: 5.4rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: var(--pg34-transition);
}
.pg34-header-scrolled {
    box-shadow: 0 2px 16px rgba(160, 82, 45, 0.3);
    border-bottom-color: var(--pg34-accent);
}
.pg34-header-left { display: flex; align-items: center; gap: 0.8rem; }
.pg34-logo { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.pg34-site-name {
    font-size: 1.8rem; font-weight: 700; color: var(--pg34-primary);
    letter-spacing: 0.05em;
}
.pg34-header-right { display: flex; align-items: center; gap: 0.6rem; }
.pg34-btn-reg {
    background: linear-gradient(135deg, var(--pg34-primary), var(--pg34-secondary));
    color: var(--pg34-bg); font-weight: 700; font-size: 1.2rem;
    padding: 0.6rem 1.4rem; border-radius: 2rem; border: none; cursor: pointer;
    transition: var(--pg34-transition); white-space: nowrap;
}
.pg34-btn-reg:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(240, 128, 128, 0.5); }
.pg34-btn-login {
    background: transparent; color: var(--pg34-secondary);
    font-weight: 600; font-size: 1.2rem; padding: 0.6rem 1.2rem;
    border: 1px solid var(--pg34-accent); border-radius: 2rem; cursor: pointer;
    transition: var(--pg34-transition); white-space: nowrap;
}
.pg34-btn-login:hover { background: var(--pg34-accent); color: var(--pg34-text); }
.pg34-menu-toggle {
    background: none; border: none; color: var(--pg34-text); cursor: pointer;
    font-size: 2rem; padding: 0.4rem; display: flex; align-items: center;
}
.pg34-btn-active { color: var(--pg34-primary); }

/* Mobile Menu Overlay */
.pg34-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 9998;
}
.pg34-overlay-active { display: block; }

/* Mobile Slide Menu */
.pg34-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: linear-gradient(180deg, #1a1210, #141414);
    z-index: 9999; transition: right 0.35s ease; padding: 2rem 0;
    border-left: 1px solid var(--pg34-border);
}
.pg34-menu-active { right: 0; }
.pg34-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1.6rem 1.6rem; border-bottom: 1px solid var(--pg34-border);
}
.pg34-menu-title { font-size: 1.6rem; color: var(--pg34-primary); font-weight: 700; }
.pg34-menu-close {
    background: none; border: none; color: var(--pg34-text);
    font-size: 2.2rem; cursor: pointer; padding: 0.2rem;
}
.pg34-menu-links { padding: 1rem 0; }
.pg34-menu-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1.6rem; color: var(--pg34-text);
    font-size: 1.4rem; transition: var(--pg34-transition);
    border-left: 3px solid transparent;
}
.pg34-menu-link:hover {
    background: var(--pg34-bg-light); color: var(--pg34-primary);
    border-left-color: var(--pg34-primary);
}
.pg34-menu-link i, .pg34-menu-link .material-icons-outlined { font-size: 2rem; }

/* Main Content Area */
.pg34-main { padding-top: 5.4rem; min-height: 100vh; }
@media (max-width: 768px) { .pg34-main { padding-bottom: 8rem; } }

/* Carousel */
.pg34-carousel { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/7; }
.pg34-carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.pg34-slide-active { opacity: 1; }
.pg34-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg34-carousel-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.6rem; z-index: 5;
}
.pg34-carousel-dot {
    width: 0.8rem; height: 0.8rem; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: var(--pg34-transition); border: none;
}
.pg34-dot-active { background: var(--pg34-primary); transform: scale(1.3); }

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

/* Section */
.pg34-section { padding: 2.4rem 0; }
.pg34-section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--pg34-primary);
    margin-bottom: 1.4rem; padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--pg34-accent);
}
.pg34-section-title i { margin-right: 0.6rem; }

/* Game Grid */
.pg34-category-title {
    font-size: 1.5rem; font-weight: 600; color: var(--pg34-secondary);
    margin: 1.8rem 0 1rem; padding-left: 0.4rem;
    border-left: 3px solid var(--pg34-accent);
}
.pg34-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.pg34-game-item { text-align: center; cursor: pointer; transition: var(--pg34-transition); }
.pg34-game-item:hover { transform: translateY(-3px); }
.pg34-game-icon {
    width: 100%; aspect-ratio: 1; border-radius: var(--pg34-radius-sm);
    overflow: hidden; border: 2px solid var(--pg34-border);
    transition: var(--pg34-transition);
}
.pg34-game-item:hover .pg34-game-icon { border-color: var(--pg34-primary); }
.pg34-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.pg34-game-name {
    font-size: 1.1rem; color: var(--pg34-text-muted); margin-top: 0.4rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards & Content Blocks */
.pg34-card {
    background: var(--pg34-bg-card); border-radius: var(--pg34-radius);
    padding: 1.6rem; margin-bottom: 1.4rem; border: 1px solid var(--pg34-border);
}
.pg34-card-title {
    font-size: 1.5rem; color: var(--pg34-secondary); font-weight: 600;
    margin-bottom: 1rem;
}
.pg34-card p { color: var(--pg34-text-muted); line-height: 1.8rem; margin-bottom: 0.8rem; }
.pg34-card p:last-child { margin-bottom: 0; }

/* Promo Buttons & Links */
.pg34-promo-btn {
    display: inline-block; background: linear-gradient(135deg, var(--pg34-primary), var(--pg34-secondary));
    color: var(--pg34-bg); font-weight: 700; font-size: 1.3rem;
    padding: 0.8rem 2rem; border-radius: 2rem; cursor: pointer;
    transition: var(--pg34-transition); border: none; text-align: center;
}
.pg34-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(240, 128, 128, 0.5); }
.pg34-promo-link {
    color: var(--pg34-primary); font-weight: 600; cursor: pointer;
    text-decoration: underline; transition: var(--pg34-transition);
}
.pg34-promo-link:hover { color: var(--pg34-secondary); }

/* FAQ Accordion */
.pg34-faq-item { border-bottom: 1px solid var(--pg34-border); }
.pg34-faq-q {
    font-size: 1.3rem; color: var(--pg34-text); font-weight: 600;
    padding: 1.2rem 0; cursor: pointer;
}

/* Testimonials */
.pg34-testimonial {
    background: var(--pg34-bg-light); border-radius: var(--pg34-radius-sm);
    padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--pg34-primary);
}
.pg34-testimonial-name { font-weight: 600; color: var(--pg34-primary); font-size: 1.2rem; }
.pg34-testimonial-text { color: var(--pg34-text-muted); margin-top: 0.4rem; font-size: 1.2rem; }

/* Footer */
.pg34-footer {
    background: linear-gradient(180deg, var(--pg34-bg-light), #0d0d0d);
    padding: 3rem 1.2rem 2rem; border-top: 1px solid var(--pg34-border);
}
.pg34-footer-brand { text-align: center; margin-bottom: 2rem; }
.pg34-footer-brand p { color: var(--pg34-text-muted); font-size: 1.2rem; line-height: 1.6rem; }
.pg34-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
    margin-bottom: 1.6rem;
}
.pg34-footer-link {
    color: var(--pg34-text-muted); font-size: 1.1rem; padding: 0.4rem 0.8rem;
    border: 1px solid var(--pg34-border); border-radius: 1.6rem;
    transition: var(--pg34-transition); cursor: pointer;
}
.pg34-footer-link:hover { border-color: var(--pg34-primary); color: var(--pg34-primary); }
.pg34-footer-copy {
    text-align: center; font-size: 1.1rem; color: var(--pg34-text-muted);
    padding-top: 1.2rem; border-top: 1px solid var(--pg34-border);
}

/* Bottom Navigation */
.pg34-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1000; height: 60px;
    background: linear-gradient(180deg, #1a1210, #0d0d0d);
    border-top: 1px solid var(--pg34-border);
    justify-content: space-around; align-items: center;
}
@media (max-width: 768px) { .pg34-bottom-nav { display: flex; } }
.pg34-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 60px; min-height: 60px; background: none; border: none;
    color: var(--pg34-text-muted); cursor: pointer; transition: var(--pg34-transition);
    padding: 0.4rem;
}
.pg34-bottom-nav-btn:hover { color: var(--pg34-primary); transform: scale(1.08); }
.pg34-bottom-nav-btn i,
.pg34-bottom-nav-btn .material-icons-outlined { font-size: 2.2rem; margin-bottom: 0.2rem; }
.pg34-bottom-nav-btn span { font-size: 1rem; }
.pg34-nav-current { color: var(--pg34-primary) !important; }
.pg34-nav-current i, .pg34-nav-current .material-icons-outlined {
    text-shadow: 0 0 8px rgba(240, 128, 128, 0.6);
}

/* Utilities */
.pg34-text-center { text-align: center; }
.pg34-mt-1 { margin-top: 1rem; }
.pg34-mt-2 { margin-top: 2rem; }
.pg34-mb-1 { margin-bottom: 1rem; }
.pg34-mb-2 { margin-bottom: 2rem; }
.pg34-hidden { display: none; }
.pg34-flex-center { display: flex; align-items: center; justify-content: center; }
.pg34-gap-1 { gap: 1rem; }
.pg34-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Winners display */
.pg34-winner-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pg34-winner-name { color: var(--pg34-primary); font-weight: 600; font-size: 1.2rem; }
.pg34-winner-game { color: var(--pg34-text-muted); font-size: 1.1rem; }
.pg34-winner-amount { color: var(--pg34-secondary); font-weight: 700; font-size: 1.2rem; }

/* Responsive adjustments */
@media (min-width: 431px) and (max-width: 768px) {
    .pg34-container { max-width: 480px; }
}
@media (min-width: 769px) {
    .pg34-container { max-width: 520px; }
    .pg34-game-grid { grid-template-columns: repeat(5, 1fr); }
}
