/**
 * 888phl-sbs Stylesheet
 * Mobile-first design with 'g7a0-' prefix
 * Max-width: 430px for mobile optimization
 */

/* CSS Variables */
:root {
    --g7a0-primary: #F4A460;
    --g7a0-secondary: #FFA500;
    --g7a0-accent: #B8860B;
    --g7a0-bg-dark: #141414;
    --g7a0-bg-card: #1a1a1a;
    --g7a0-text-light: #DEE2E6;
    --g7a0-text-muted: #8a8a8a;
    --g7a0-border: #2a2a2a;
    --g7a0-success: #28a745;
    --g7a0-gradient: linear-gradient(135deg, #F4A460 0%, #FFA500 100%);
    --g7a0-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--g7a0-bg-dark);
    color: var(--g7a0-text-light);
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.g7a0-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--g7a0-border);
    transition: all 0.3s ease;
}

.g7a0-header-scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: var(--g7a0-shadow);
}

.g7a0-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g7a0-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

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

.g7a0-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7a0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.g7a0-btn-login {
    background: transparent;
    color: var(--g7a0-text-light);
    border: 1px solid var(--g7a0-border);
}

.g7a0-btn-login:hover {
    border-color: var(--g7a0-primary);
    color: var(--g7a0-primary);
}

.g7a0-btn-register {
    background: var(--g7a0-gradient);
    color: #000;
}

.g7a0-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}

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

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

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

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

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

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

.g7a0-menu-links {
    margin-top: 3rem;
    list-style: none;
    padding: 0;
}

.g7a0-menu-links li {
    margin-bottom: 1.2rem;
}

.g7a0-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--g7a0-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.g7a0-menu-links i,
.g7a0-menu-links .material-icons {
    font-size: 2rem;
    width: 24px;
    text-align: center;
}

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

/* Hero Section */
.g7a0-hero {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(244, 164, 96, 0.1) 0%, transparent 100%);
}

.g7a0-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--g7a0-primary);
    line-height: 1.3;
}

.g7a0-hero p {
    font-size: 1.3rem;
    color: var(--g7a0-text-muted);
    margin: 0 0 1.5rem;
}

/* Carousel */
.g7a0-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.g7a0-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.g7a0-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.g7a0-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
}

.g7a0-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g7a0-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.g7a0-dot-active {
    background: var(--g7a0-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Titles */
.g7a0-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g7a0-text-light);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--g7a0-primary);
    display: inline-block;
}

/* Category Tabs */
.g7a0-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.g7a0-tabs::-webkit-scrollbar {
    display: none;
}

.g7a0-tab-btn {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--g7a0-bg-card);
    color: var(--g7a0-text-muted);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.g7a0-tab-active {
    background: var(--g7a0-gradient);
    color: #000;
}

/* Game Grid */
.g7a0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

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

.g7a0-game-item:hover {
    transform: scale(1.05);
}

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

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

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

/* Feature Cards */
.g7a0-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.g7a0-feature-card {
    background: var(--g7a0-bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--g7a0-border);
    transition: all 0.2s ease;
}

.g7a0-feature-card:hover {
    border-color: var(--g7a0-primary);
    transform: translateY(-2px);
}

.g7a0-feature-icon {
    font-size: 2.8rem;
    color: var(--g7a0-primary);
    margin-bottom: 0.5rem;
}

.g7a0-feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--g7a0-text-light);
}

.g7a0-feature-card p {
    font-size: 1.1rem;
    color: var(--g7a0-text-muted);
    margin: 0;
    line-height: 1.4;
}

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

.g7a0-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.8rem;
}

.g7a0-cta p {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 1.2rem;
}

.g7a0-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: var(--g7a0-primary);
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Footer */
.g7a0-footer {
    background: var(--g7a0-bg-card);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--g7a0-border);
    text-align: center;
}

.g7a0-footer-brand {
    margin-bottom: 1.5rem;
}

.g7a0-footer-brand p {
    font-size: 1.2rem;
    color: var(--g7a0-text-muted);
    margin: 0.5rem 0;
    line-height: 1.6;
}

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

.g7a0-footer-links a {
    font-size: 1.1rem;
    color: var(--g7a0-text-light);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: var(--g7a0-bg-dark);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.g7a0-footer-links a:hover {
    color: var(--g7a0-primary);
    background: rgba(244, 164, 96, 0.1);
}

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

/* Bottom Navigation */
.g7a0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g7a0-border);
    padding-bottom: env(safe-area-inset-bottom);
}

.g7a0-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(--g7a0-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.2rem;
}

.g7a0-nav-btn:hover,
.g7a0-nav-btn.active {
    color: var(--g7a0-primary);
    transform: scale(1.1);
}

.g7a0-nav-btn i,
.g7a0-nav-btn .material-icons,
.g7a0-nav-btn ion-icon {
    font-size: 22px;
}

.g7a0-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Toast Notification */
.g7a0-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--g7a0-bg-card);
    color: var(--g7a0-text-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--g7a0-shadow);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.g7a0-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.g7a0-toast-success {
    border-left: 4px solid var(--g7a0-success);
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
    .g7a0-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

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

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

/* Utility Classes */
.g7a0-text-center { text-align: center; }
.g7a0-text-primary { color: var(--g7a0-primary); }
.g7a0-mt-1 { margin-top: 1rem; }
.g7a0-mb-1 { margin-bottom: 1rem; }
.g7a0-mt-2 { margin-top: 2rem; }
.g7a0-mb-2 { margin-bottom: 2rem; }

/* Promo Link Styles */
.g7a0-promo-link {
    color: var(--g7a0-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

/* Payment Methods */
.g7a0-payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.g7a0-payment-icon {
    font-size: 2rem;
    color: var(--g7a0-text-muted);
}

/* Winners Showcase */
.g7a0-winners {
    background: var(--g7a0-bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.g7a0-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--g7a0-border);
}

.g7a0-winner-item:last-child {
    border-bottom: none;
}

.g7a0-winner-name {
    font-size: 1.2rem;
    color: var(--g7a0-text-light);
}

.g7a0-winner-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g7a0-success);
}
