/**
 * ph3656 - Main Stylesheet
 * Version: 1.0.0
 * All classes use pg20- prefix for namespace isolation
 * Color Palette: #AFEEEE | #E0FFFF | #4682B4 | #1B263B | #66CDAA
 */

/* CSS Variables */
:root {
    --pg20-primary: #4682B4;
    --pg20-secondary: #66CDAA;
    --pg20-accent: #AFEEEE;
    --pg20-bg-dark: #1B263B;
    --pg20-bg-light: #E0FFFF;
    --pg20-text-light: #E0FFFF;
    --pg20-text-dark: #1B263B;
    --pg20-gradient: linear-gradient(135deg, #4682B4 0%, #66CDAA 100%);
    --pg20-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg20-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pg20-bg-dark);
    color: var(--pg20-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pg20-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg20-wrapper {
    padding: 1rem;
}

/* Header */
.pg20-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1B263B 0%, rgba(27, 38, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(175, 238, 238, 0.2);
}

.pg20-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg20-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg20-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pg20-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg20-accent);
    text-shadow: 0 0 10px rgba(175, 238, 238, 0.5);
}

.pg20-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg20-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.pg20-btn-primary {
    background: var(--pg20-gradient);
    color: #fff;
    box-shadow: var(--pg20-shadow);
}

.pg20-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

.pg20-btn-outline {
    background: transparent;
    color: var(--pg20-accent);
    border: 2px solid var(--pg20-accent);
}

.pg20-btn-outline:hover {
    background: rgba(175, 238, 238, 0.1);
}

.pg20-menu-toggle {
    background: none;
    border: none;
    color: var(--pg20-accent);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg20-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg20-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(175, 238, 238, 0.2);
    overflow-y: auto;
}

.pg20-menu-active {
    right: 0;
}

.pg20-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg20-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg20-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(175, 238, 238, 0.2);
}

.pg20-menu-close {
    background: none;
    border: none;
    color: var(--pg20-accent);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg20-nav-list {
    list-style: none;
}

.pg20-nav-item {
    margin-bottom: 0.5rem;
}

.pg20-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pg20-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg20-nav-link:hover {
    background: rgba(70, 130, 180, 0.2);
    color: var(--pg20-accent);
}

/* Main Content */
.pg20-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Slider/Carousel */
.pg20-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pg20-radius);
    margin-bottom: 1.5rem;
}

.pg20-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pg20-slide-active {
    opacity: 1;
}

.pg20-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg20-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg20-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.pg20-dot-active {
    background: var(--pg20-accent);
}

/* Sections */
.pg20-section {
    padding: 1.5rem 0;
}

.pg20-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg20-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.pg20-section-subtitle {
    font-size: 1.3rem;
    color: rgba(224, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.pg20-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pg20-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg20-game-item:hover {
    transform: scale(1.05);
}

.pg20-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(70, 130, 180, 0.3);
}

.pg20-game-name {
    font-size: 1rem;
    color: var(--pg20-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.pg20-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg20-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg20-secondary);
}

.pg20-category-title i {
    font-size: 1.8rem;
}

/* Cards */
.pg20-card {
    background: rgba(70, 130, 180, 0.1);
    border: 1px solid rgba(175, 238, 238, 0.2);
    border-radius: var(--pg20-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.pg20-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg20-accent);
    margin-bottom: 0.8rem;
}

.pg20-card-text {
    font-size: 1.2rem;
    color: rgba(224, 255, 255, 0.8);
    line-height: 1.6;
}

/* Features List */
.pg20-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg20-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(70, 130, 180, 0.1);
    border-radius: 8px;
}

.pg20-feature-icon {
    font-size: 2rem;
    color: var(--pg20-secondary);
}

.pg20-feature-text {
    font-size: 1.2rem;
    color: var(--pg20-text-light);
}

/* FAQ */
.pg20-faq-item {
    border-bottom: 1px solid rgba(175, 238, 238, 0.2);
    padding: 1rem 0;
}

.pg20-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pg20-accent);
    margin-bottom: 0.5rem;
}

.pg20-faq-answer {
    font-size: 1.2rem;
    color: rgba(224, 255, 255, 0.8);
    line-height: 1.6;
}

/* Promo Banner */
.pg20-promo-banner {
    background: var(--pg20-gradient);
    border-radius: var(--pg20-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.pg20-promo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pg20-promo-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Footer */
.pg20-footer {
    background: rgba(27, 38, 59, 0.95);
    border-top: 1px solid rgba(175, 238, 238, 0.2);
    padding: 2rem 1.5rem;
}

.pg20-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg20-footer-link {
    color: var(--pg20-accent);
    text-decoration: none;
    font-size: 1.2rem;
}

.pg20-footer-link:hover {
    text-decoration: underline;
}

.pg20-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg20-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg20-partner-logo:hover {
    opacity: 1;
}

.pg20-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(224, 255, 255, 0.6);
}

/* Bottom Navigation */
.pg20-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, #1B263B 100%);
    border-top: 1px solid rgba(175, 238, 238, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.pg20-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: rgba(224, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pg20-nav-btn:hover,
.pg20-nav-btn-active {
    color: var(--pg20-accent);
    transform: scale(1.1);
}

.pg20-nav-btn i,
.pg20-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg20-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utilities */
.pg20-text-center {
    text-align: center;
}

.pg20-mb-1 {
    margin-bottom: 1rem;
}

.pg20-mb-2 {
    margin-bottom: 2rem;
}

.pg20-highlight {
    color: var(--pg20-accent);
    font-weight: 600;
}

/* Link Styles */
.pg20-text-link {
    color: var(--pg20-secondary);
    text-decoration: none;
    font-weight: 500;
}

.pg20-text-link:hover {
    text-decoration: underline;
}

/* Desktop Hidden */
@media (min-width: 769px) {
    .pg20-bottom-nav {
        display: none;
    }

    .pg20-menu-toggle {
        display: none;
    }

    .pg20-desktop-nav {
        display: flex;
        gap: 1.5rem;
    }

    .pg20-container {
        max-width: 768px;
    }
}

/* Mobile Only */
@media (max-width: 768px) {
    .pg20-desktop-nav {
        display: none;
    }

    .pg20-main {
        padding-bottom: 80px;
    }
}

/* Animation */
@keyframes pg20-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pg20-pulse {
    animation: pg20-pulse 2s infinite;
}
