/**
 * Playtime Game - Main Stylesheet
 * All classes use prefix "pgf5-" for namespace isolation
 * Color Palette: #FFEFD5 | #F0E68C | #CD853F | #0D1117
 */

/* CSS Variables */
:root {
    --pgf5-primary: #CD853F;
    --pgf5-secondary: #F0E68C;
    --pgf5-accent: #FFEFD5;
    --pgf5-bg-dark: #0D1117;
    --pgf5-bg-card: #1a1f26;
    --pgf5-text-light: #FFEFD5;
    --pgf5-text-muted: #8b9298;
    --pgf5-border: #2d333b;
    --pgf5-gradient-gold: linear-gradient(135deg, #CD853F 0%, #F0E68C 100%);
    --pgf5-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pgf5-bg-dark);
    color: var(--pgf5-text-light);
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container */
.pgf5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.pgf5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgf5-border);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.pgf5-header-scrolled {
    box-shadow: var(--pgf5-shadow);
}

.pgf5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pgf5-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.pgf5-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pgf5-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--pgf5-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgf5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgf5-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pgf5-btn-primary {
    background: var(--pgf5-gradient-gold);
    color: var(--pgf5-bg-dark);
}

.pgf5-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.4);
}

.pgf5-btn-outline {
    background: transparent;
    color: var(--pgf5-primary);
    border: 1.5px solid var(--pgf5-primary);
}

.pgf5-btn-outline:hover {
    background: var(--pgf5-primary);
    color: var(--pgf5-bg-dark);
}

.pgf5-menu-toggle {
    background: none;
    border: none;
    color: var(--pgf5-text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pgf5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgf5-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    border-left: 1px solid var(--pgf5-border);
    overflow-y: auto;
}

.pgf5-menu-active {
    right: 0;
}

.pgf5-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;
}

.pgf5-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgf5-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pgf5-border);
}

.pgf5-menu-close {
    background: none;
    border: none;
    color: var(--pgf5-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.pgf5-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pgf5-menu-nav li {
    margin-bottom: 0.5rem;
}

.pgf5-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--pgf5-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pgf5-menu-nav a:hover {
    background: rgba(205, 133, 63, 0.15);
    color: var(--pgf5-primary);
}

/* Main Content */
.pgf5-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel Styles */
.pgf5-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.pgf5-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pgf5-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.pgf5-slide-active {
    opacity: 1;
    position: relative;
}

.pgf5-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
}

.pgf5-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.pgf5-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pgf5-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgf5-dot-active {
    background: var(--pgf5-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.pgf5-section {
    padding: 1.5rem 0;
}

.pgf5-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgf5-section-title i {
    color: var(--pgf5-primary);
}

/* Game Grid */
.pgf5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pgf5-game-card {
    background: var(--pgf5-bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pgf5-border);
}

.pgf5-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--pgf5-primary);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.2);
}

.pgf5-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgf5-game-name {
    font-size: 0.95rem;
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pgf5-text-light);
}

/* Category Tabs */
.pgf5-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--pgf5-gradient-gold);
    color: var(--pgf5-bg-dark);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Content Box */
.pgf5-content-box {
    background: var(--pgf5-bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid var(--pgf5-border);
    margin-bottom: 1rem;
}

.pgf5-content-box h2 {
    font-size: 1.4rem;
    color: var(--pgf5-primary);
    margin: 0 0 0.8rem 0;
}

.pgf5-content-box h3 {
    font-size: 1.2rem;
    color: var(--pgf5-secondary);
    margin: 0.8rem 0 0.4rem 0;
}

.pgf5-content-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0.4rem 0;
    color: var(--pgf5-text-muted);
}

.pgf5-content-box ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.pgf5-content-box li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0.3rem 0;
    color: var(--pgf5-text-muted);
}

/* Promo Link Styles */
.pgf5-promo-link {
    color: var(--pgf5-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pgf5-promo-link:hover {
    color: var(--pgf5-secondary);
}

/* FAQ Styles */
.pgf5-faq-item {
    background: var(--pgf5-bg-card);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--pgf5-border);
}

.pgf5-faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgf5-primary);
    margin-bottom: 0.5rem;
}

.pgf5-faq-answer {
    font-size: 1.1rem;
    color: var(--pgf5-text-muted);
    line-height: 1.5;
}

/* Features List */
.pgf5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.pgf5-feature-item {
    background: var(--pgf5-bg-card);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--pgf5-border);
}

.pgf5-feature-item i {
    font-size: 2rem;
    color: var(--pgf5-primary);
    margin-bottom: 0.5rem;
}

.pgf5-feature-item h4 {
    font-size: 1.1rem;
    margin: 0.3rem 0;
    color: var(--pgf5-text-light);
}

.pgf5-feature-item p {
    font-size: 1rem;
    color: var(--pgf5-text-muted);
    margin: 0;
}

/* Bottom Navigation */
.pgf5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 1) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--pgf5-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.pgf5-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(--pgf5-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.4rem;
}

.pgf5-nav-btn:hover,
.pgf5-nav-btn-active {
    color: var(--pgf5-primary);
}

.pgf5-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.pgf5-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.pgf5-nav-btn:hover i {
    transform: scale(1.1);
}

/* Footer */
.pgf5-footer {
    background: var(--pgf5-bg-card);
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--pgf5-border);
}

.pgf5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.pgf5-footer-links a {
    color: var(--pgf5-text-muted);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pgf5-footer-links a:hover {
    color: var(--pgf5-primary);
    background: rgba(205, 133, 63, 0.1);
}

.pgf5-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.pgf5-partners img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.pgf5-partners img:hover {
    opacity: 1;
}

.pgf5-copyright {
    text-align: center;
    font-size: 1rem;
    color: var(--pgf5-text-muted);
}

/* Responsive */
@media (max-width: 430px) {
    .pgf5-container {
        padding: 0 1rem;
    }

    .pgf5-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .pgf5-game-name {
        font-size: 0.85rem;
    }
}

@media (min-width: 431px) {
    .pgf5-container {
        max-width: 430px;
    }
}

@media (min-width: 769px) {
    .pgf5-bottom-nav {
        display: none;
    }

    .pgf5-main {
        padding-bottom: 20px;
    }
}

/* Utility Classes */
.pgf5-text-center {
    text-align: center;
}

.pgf5-mt-1 {
    margin-top: 0.5rem;
}

.pgf5-mb-1 {
    margin-bottom: 0.5rem;
}

.pgf5-hidden {
    display: none;
}

/* Animation */
@keyframes pgf5-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pgf5-animate-in {
    animation: pgf5-fadeIn 0.4s ease forwards;
}
