/**
 * XOPLAY PH - Main Stylesheet
 * Mobile-first responsive design
 * Color palette: #CD853F (gold accent) | #1C2833 (dark background)
 * Class prefix: w80b5-
 */

/* CSS Variables */
:root {
    --w80b5-primary: #CD853F;
    --w80b5-secondary: #DAA520;
    --w80b5-bg-dark: #1C2833;
    --w80b5-bg-darker: #131A21;
    --w80b5-bg-card: #243442;
    --w80b5-text-light: #F5F5F5;
    --w80b5-text-muted: #A0A0A0;
    --w80b5-border: #3D5266;
    --w80b5-success: #27AE60;
    --w80b5-gradient: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
}

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

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

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

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

a:hover {
    color: var(--w80b5-secondary);
}

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

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

/* Header */
.w80b5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--w80b5-bg-darker);
    border-bottom: 1px solid var(--w80b5-border);
    padding: 0.8rem 0;
}

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

.w80b5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w80b5-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
}

.w80b5-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w80b5-primary);
}

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

.w80b5-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: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    min-width: 4.4rem;
}

.w80b5-btn-primary {
    background: var(--w80b5-gradient);
    color: var(--w80b5-bg-dark);
}

.w80b5-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.4);
}

.w80b5-btn-outline {
    background: transparent;
    color: var(--w80b5-primary);
    border: 2px solid var(--w80b5-primary);
}

.w80b5-btn-outline:hover {
    background: var(--w80b5-primary);
    color: var(--w80b5-bg-dark);
}

.w80b5-menu-toggle {
    background: none;
    border: none;
    color: var(--w80b5-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.8rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

/* Mobile Menu */
.w80b5-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--w80b5-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid var(--w80b5-border);
}

.w80b5-menu-active {
    right: 0;
}

.w80b5-mobile-menu ul {
    list-style: none;
}

.w80b5-mobile-menu li {
    margin-bottom: 1.2rem;
}

.w80b5-mobile-menu a {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--w80b5-text-light);
    font-size: 1.5rem;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
}

.w80b5-mobile-menu a:hover {
    background: var(--w80b5-bg-card);
    color: var(--w80b5-primary);
}

.w80b5-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w80b5-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w80b5-menu-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--w80b5-text-light);
    font-size: 2.8rem;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 6rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Hero Slider */
.w80b5-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.w80b5-slide {
    display: none;
    cursor: pointer;
}

.w80b5-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
}

.w80b5-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

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

.w80b5-dot-active {
    background: var(--w80b5-primary);
}

/* Section Styles */
.w80b5-section {
    padding: 2rem 0;
}

.w80b5-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w80b5-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--w80b5-border);
}

/* Game Grid */
.w80b5-game-category {
    margin-bottom: 2.5rem;
}

.w80b5-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w80b5-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w80b5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w80b5-game-card {
    background: var(--w80b5-bg-card);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.w80b5-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.3);
}

.w80b5-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w80b5-game-card .w80b5-game-name {
    font-size: 1.1rem;
    color: var(--w80b5-text-light);
    padding: 0.6rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Cards */
.w80b5-info-card {
    background: var(--w80b5-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--w80b5-border);
}

.w80b5-info-card h3 {
    color: var(--w80b5-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.w80b5-info-card p {
    color: var(--w80b5-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

.w80b5-info-card ul {
    list-style: none;
    padding-left: 0;
}

.w80b5-info-card li {
    padding: 0.6rem 0;
    color: var(--w80b5-text-light);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--w80b5-border);
}

.w80b5-info-card li:last-child {
    border-bottom: none;
}

/* CTA Section */
.w80b5-cta-section {
    background: var(--w80b5-gradient);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 2rem 0;
}

.w80b5-cta-section h2 {
    color: var(--w80b5-bg-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.w80b5-cta-section p {
    color: var(--w80b5-bg-darker);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.w80b5-cta-btn {
    display: inline-block;
    background: var(--w80b5-bg-dark);
    color: var(--w80b5-primary);
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w80b5-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.w80b5-footer {
    background: var(--w80b5-bg-darker);
    padding: 2rem 1.2rem;
    border-top: 1px solid var(--w80b5-border);
}

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

.w80b5-footer-brand p {
    color: var(--w80b5-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

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

.w80b5-footer-links a {
    background: var(--w80b5-bg-card);
    color: var(--w80b5-text-light);
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.w80b5-footer-links a:hover {
    background: var(--w80b5-primary);
    color: var(--w80b5-bg-dark);
}

.w80b5-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--w80b5-border);
}

.w80b5-footer-nav a {
    color: var(--w80b5-text-muted);
    font-size: 1.3rem;
}

.w80b5-footer-nav a:hover {
    color: var(--w80b5-primary);
}

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

/* Mobile Bottom Navigation */
.w80b5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--w80b5-bg-darker);
    border-top: 1px solid var(--w80b5-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
}

@media (min-width: 769px) {
    .w80b5-bottom-nav {
        display: none;
    }
}

.w80b5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    color: var(--w80b5-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.w80b5-nav-item:hover,
.w80b5-nav-item.active {
    color: var(--w80b5-primary);
    background: rgba(205, 133, 63, 0.1);
}

.w80b5-nav-item i,
.w80b5-nav-item span.iconify {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.w80b5-nav-item .material-icons {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.w80b5-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Utilities */
.w80b5-text-center {
    text-align: center;
}

.w80b5-mb-1 {
    margin-bottom: 1rem;
}

.w80b5-mb-2 {
    margin-bottom: 2rem;
}

.w80b5-mt-2 {
    margin-top: 2rem;
}

.w80b5-promo-link {
    color: var(--w80b5-primary);
    font-weight: 600;
    cursor: pointer;
}

.w80b5-promo-link:hover {
    text-decoration: underline;
}

/* Payment Methods */
.w80b5-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.w80b5-payment-item {
    background: var(--w80b5-bg-card);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--w80b5-text-light);
}

.w80b5-payment-item i {
    font-size: 2rem;
    color: var(--w80b5-primary);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.w80b5-testimonial {
    background: var(--w80b5-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--w80b5-primary);
}

.w80b5-testimonial p {
    font-size: 1.4rem;
    color: var(--w80b5-text-light);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.w80b5-testimonial-author {
    font-size: 1.2rem;
    color: var(--w80b5-primary);
    font-weight: 600;
}

/* Winners Showcase */
.w80b5-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w80b5-winner-card {
    background: var(--w80b5-bg-card);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
}

.w80b5-winner-amount {
    color: var(--w80b5-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

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

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

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

@media (min-width: 431px) and (max-width: 768px) {
    .w80b5-container {
        max-width: 100%;
        padding: 0 2rem;
    }

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

@media (min-width: 769px) {
    .w80b5-container {
        max-width: 1200px;
    }

    .w80b5-header-inner {
        max-width: 1200px;
    }

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