/**
 * Fair Play Online - Core Stylesheet
 * Version: 1.0.0
 * All classes use 'pgd9-' prefix for namespace isolation
 * Color Palette: #00FA9A | #00FF00 | #FF6347 | #1B263B
 */

/* CSS Variables */
:root {
    --pgd9-primary: #00FA9A;
    --pgd9-secondary: #00FF00;
    --pgd9-accent: #FF6347;
    --pgd9-bg: #1B263B;
    --pgd9-bg-dark: #0D1321;
    --pgd9-bg-light: #2A3F5F;
    --pgd9-text: #FFFFFF;
    --pgd9-text-muted: #A0AEC0;
    --pgd9-gradient: linear-gradient(135deg, #00FA9A 0%, #00FF00 100%);
    --pgd9-shadow: 0 4px 20px rgba(0, 250, 154, 0.3);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pgd9-bg);
    color: var(--pgd9-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

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

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

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

.pgd9-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pgd9-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--pgd9-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgd9-header-btns {
    display: flex;
    gap: 0.6rem;
}

.pgd9-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.pgd9-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--pgd9-shadow);
}

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

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

/* Menu Toggle */
.pgd9-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pgd9-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--pgd9-primary);
    transition: all 0.3s ease;
}

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

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

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

.pgd9-mobile-menu li {
    border-bottom: 1px solid var(--pgd9-bg-light);
}

.pgd9-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--pgd9-text);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.pgd9-mobile-menu a:hover {
    color: var(--pgd9-primary);
}

/* Menu Overlay */
.pgd9-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;
}

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

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

@media (min-width: 769px) {
    .pgd9-main {
        padding-bottom: 2rem;
    }
}

/* Carousel/Slider */
.pgd9-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

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

.pgd9-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgd9-slide-active {
    opacity: 1;
}

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

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

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

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

/* Sections */
.pgd9-section {
    padding: 2rem 0;
}

.pgd9-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--pgd9-primary);
    border-left: 4px solid var(--pgd9-accent);
    padding-left: 1rem;
}

.pgd9-h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pgd9-text);
    line-height: 1.4;
}

/* Game Grid */
.pgd9-game-section {
    margin: 2rem 0;
}

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

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

.pgd9-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--pgd9-bg-light);
}

.pgd9-game-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--pgd9-shadow);
}

.pgd9-game-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.pgd9-game-item span {
    font-size: 1rem;
    color: var(--pgd9-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

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

.pgd9-promo-link:hover {
    color: var(--pgd9-secondary);
}

.pgd9-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--pgd9-gradient);
    color: var(--pgd9-bg-dark);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pgd9-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--pgd9-shadow);
}

/* Cards */
.pgd9-card {
    background: var(--pgd9-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.pgd9-card-content {
    color: var(--pgd9-text-muted);
    line-height: 1.6;
}

/* Footer */
.pgd9-footer {
    background: var(--pgd9-bg-dark);
    padding: 2rem 1rem;
    border-top: 1px solid var(--pgd9-primary);
}

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

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

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

.pgd9-footer-links a {
    padding: 0.6rem 1rem;
    background: var(--pgd9-bg-light);
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--pgd9-text);
    transition: all 0.3s ease;
}

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

.pgd9-footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pgd9-footer-sitemap a {
    font-size: 1rem;
    color: var(--pgd9-text-muted);
    transition: color 0.3s ease;
}

.pgd9-footer-sitemap a:hover {
    color: var(--pgd9-primary);
}

.pgd9-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pgd9-text-muted);
}

/* Bottom Navigation */
.pgd9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pgd9-bg-dark);
    border-top: 1px solid var(--pgd9-primary);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    height: 60px;
}

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

.pgd9-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.pgd9-nav-item:hover {
    background: var(--pgd9-bg-light);
}

.pgd9-nav-item.active {
    color: var(--pgd9-primary);
}

.pgd9-nav-item i,
.pgd9-nav-item .material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

.pgd9-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.pgd9-text-center { text-align: center; }
.pgd9-text-left { text-align: left; }
.pgd9-mb-1 { margin-bottom: 1rem; }
.pgd9-mb-2 { margin-bottom: 2rem; }
.pgd9-mt-1 { margin-top: 1rem; }
.pgd9-mt-2 { margin-top: 2rem; }
.pgd9-py-1 { padding: 1rem 0; }
.pgd9-py-2 { padding: 2rem 0; }

/* Touch Effects */
.pgd9-touch {
    transition: transform 0.2s ease, background 0.2s ease;
}

.pgd9-touch-active {
    transform: scale(0.98);
    background: var(--pgd9-bg-light);
}

/* Responsive */
@media (max-width: 768px) {
    .pgd9-container {
        padding: 0 1rem;
    }

    .pgd9-h1 {
        font-size: 1.8rem;
    }

    .pgd9-section-title {
        font-size: 1.6rem;
    }
}
