/**
 * 8k8k CSS Layout Module
 * Competitive Gaming Platform - Philippines
 * All classes use pg9a- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --pg9a-primary: #0000CD;
    --pg9a-secondary: #B0E0E6;
    --pg9a-bg-dark: #1A1A2E;
    --pg9a-bg-light: #F8F9FA;
    --pg9a-text-dark: #5D5D5D;
    --pg9a-text-light: #D3D3D3;
    --pg9a-accent: #0000CD;
    --pg9a-gradient: linear-gradient(135deg, #1A1A2E 0%, #0000CD 100%);
    --pg9a-shadow: 0 4px 15px rgba(0, 0, 205, 0.3);
    --pg9a-border-radius: 8px;
    --pg9a-transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg9a-bg-dark);
    color: var(--pg9a-text-light);
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.pg9a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.pg9a-wrapper {
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Header Styles */
.pg9a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pg9a-gradient);
    padding: 10px 15px;
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
    transition: var(--pg9a-transition);
    box-shadow: var(--pg9a-shadow);
}

.pg9a-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    padding: 8px 15px;
}

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

.pg9a-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pg9a-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.pg9a-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg9a-header-buttons {
    display: flex;
    gap: 10px;
}

.pg9a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--pg9a-border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pg9a-transition);
    border: none;
    min-height: 36px;
}

.pg9a-btn-primary {
    background: #0000CD;
    color: #fff;
}

.pg9a-btn-primary:hover {
    background: #0000B3;
    transform: scale(1.05);
}

.pg9a-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.pg9a-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.pg9a-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.pg9a-hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    transition: var(--pg9a-transition);
}

.pg9a-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.pg9a-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.pg9a-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.pg9a-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--pg9a-bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 9999;
    max-width: 430px;
    margin: 0 auto;
}

.pg9a-menu-active {
    max-height: 400px;
}

.pg9a-nav-list {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.pg9a-nav-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg9a-nav-list a {
    color: var(--pg9a-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 5px 0;
    transition: var(--pg9a-transition);
}

.pg9a-nav-list a:hover {
    color: var(--pg9a-primary);
    padding-left: 10px;
}

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

@media (max-width: 768px) {
    .pg9a-main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.pg9a-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pg9a-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.pg9a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Section Styles */
.pg9a-section {
    padding: 25px 15px;
    background: var(--pg9a-bg-dark);
}

.pg9a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pg9a-primary);
}

/* Game Grid */
.pg9a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.pg9a-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--pg9a-transition);
}

.pg9a-game-item:hover {
    transform: translateY(-5px);
}

.pg9a-game-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--pg9a-border-radius);
    object-fit: cover;
    margin-bottom: 5px;
    box-shadow: var(--pg9a-shadow);
}

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

/* Category Tabs */
.pg9a-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg9a-primary);
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--pg9a-primary);
}

/* Feature Cards */
.pg9a-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(0, 0, 205, 0.2));
    border-radius: var(--pg9a-border-radius);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 205, 0.3);
}

.pg9a-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.pg9a-card-text {
    font-size: 1.3rem;
    color: var(--pg9a-text-light);
    line-height: 1.6;
}

/* Promo Button Large */
.pg9a-promo-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--pg9a-gradient);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--pg9a-border-radius);
    margin: 20px 0;
    transition: var(--pg9a-transition);
    border: none;
    cursor: pointer;
}

.pg9a-promo-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 205, 0.4);
}

/* Footer Styles */
.pg9a-footer {
    background: var(--pg9a-bg-dark);
    padding: 30px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pg9a-footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.pg9a-footer-desc {
    font-size: 1.3rem;
    color: var(--pg9a-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pg9a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.pg9a-footer-link {
    color: var(--pg9a-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    border: 1px solid var(--pg9a-primary);
    border-radius: 4px;
    transition: var(--pg9a-transition);
}

.pg9a-footer-link:hover {
    background: var(--pg9a-primary);
    color: #fff;
}

.pg9a-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pg9a-text-dark);
    margin-top: 20px;
}

/* Bottom Navigation */
.pg9a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #1A1A2E 0%, #0d0d1a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 205, 0.3);
    max-width: 430px;
    margin: 0 auto;
}

.pg9a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pg9a-text-light);
    text-decoration: none;
    transition: var(--pg9a-transition);
    cursor: pointer;
    border: none;
    background: transparent;
}

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

.pg9a-nav-btn i,
.pg9a-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.pg9a-nav-btn ion-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.pg9a-nav-btn span {
    font-size: 1rem;
}

.pg9a-nav-btn-active {
    color: var(--pg9a-primary);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .pg9a-bottom-nav {
        display: none;
    }
}

/* Content Modules */
.pg9a-content-block {
    padding: 20px;
    margin: 15px 0;
    background: rgba(26, 26, 46, 0.8);
    border-radius: var(--pg9a-border-radius);
    border-left: 3px solid var(--pg9a-primary);
}

.pg9a-content-block h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.pg9a-content-block p {
    font-size: 1.3rem;
    color: var(--pg9a-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Winner Showcase */
.pg9a-winner-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 205, 0.1);
    border-radius: var(--pg9a-border-radius);
    margin-bottom: 8px;
}

.pg9a-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg9a-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    font-weight: 600;
}

.pg9a-winner-info {
    flex: 1;
}

.pg9a-winner-name {
    font-size: 1.2rem;
    color: #fff;
}

.pg9a-winner-amount {
    font-size: 1.4rem;
    color: #FFD700;
    font-weight: 700;
}

/* Testimonials */
.pg9a-testimonial {
    background: rgba(0, 0, 205, 0.1);
    padding: 15px;
    border-radius: var(--pg9a-border-radius);
    margin-bottom: 10px;
}

.pg9a-testimonial-text {
    font-size: 1.3rem;
    color: var(--pg9a-text-light);
    font-style: italic;
    margin-bottom: 10px;
}

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

/* Payment Methods */
.pg9a-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pg9a-payment-item {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--pg9a-border-radius);
    font-size: 1.2rem;
    color: #fff;
}

/* Internal Links */
.pg9a-internal-link {
    color: var(--pg9a-secondary);
    text-decoration: underline;
    transition: var(--pg9a-transition);
}

.pg9a-internal-link:hover {
    color: var(--pg9a-primary);
}

/* Responsive Typography */
@media (max-width: 380px) {
    html {
        font-size: 55%;
    }
}
