/**
 * Playtime App Download - Theme Styles
 * Version: 1.0.0
 * Prefix: pgf0-
 * Color Palette: #AFEEEE | #2E4057 | #CC99FF | #C0C0C0
 */

/* ===== CSS Variables ===== */
:root {
    --pgf0-primary: #CC99FF;
    --pgf0-secondary: #AFEEEE;
    --pgf0-dark: #2E4057;
    --pgf0-light: #C0C0C0;
    --pgf0-accent: #E8D4FF;
    --pgf0-bg-dark: #1a2a3a;
    --pgf0-bg-card: #243447;
    --pgf0-text-light: #FFFFFF;
    --pgf0-text-muted: #B8C5D6;
    --pgf0-border: #3a4a5c;
    --pgf0-success: #4CAF50;
    --pgf0-gradient: linear-gradient(135deg, #CC99FF 0%, #AFEEEE 100%);
    --pgf0-shadow: 0 4px 20px rgba(46, 64, 87, 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', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--pgf0-bg-dark);
    color: var(--pgf0-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ===== Header ===== */
.pgf0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--pgf0-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: var(--pgf0-shadow);
    transition: all 0.3s ease;
}

.pgf0-header-scrolled {
    background: rgba(46, 64, 87, 0.98);
    height: 56px;
}

.pgf0-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgf0-logo img {
    height: 36px;
    width: auto;
}

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

.pgf0-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgf0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

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

.pgf0-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 153, 255, 0.4);
}

.pgf0-btn-secondary {
    background: transparent;
    color: var(--pgf0-secondary);
    border: 2px solid var(--pgf0-secondary);
}

.pgf0-btn-secondary:hover {
    background: var(--pgf0-secondary);
    color: var(--pgf0-dark);
}

.pgf0-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pgf0-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== Main Content ===== */
.pgf0-main {
    padding-top: 60px;
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.pgf0-hero {
    background: linear-gradient(180deg, var(--pgf0-dark) 0%, var(--pgf0-bg-dark) 100%);
    padding: 40px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pgf0-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 153, 255, 0.1) 0%, transparent 70%);
    animation: pgf0-pulse 8s ease-in-out infinite;
}

@keyframes pgf0-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.pgf0-hero-content {
    position: relative;
    z-index: 1;
}

.pgf0-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--pgf0-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgf0-hero p {
    font-size: 1.6rem;
    color: var(--pgf0-text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pgf0-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.pgf0-hero-buttons .pgf0-btn {
    width: 100%;
    max-width: 280px;
    font-size: 1.6rem;
    padding: 14px 24px;
}

/* ===== Game Section ===== */
.pgf0-section {
    padding: 40px 16px;
}

.pgf0-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--pgf0-text-light);
}

.pgf0-section-title span {
    color: var(--pgf0-primary);
}

/* ===== Tabs ===== */
.pgf0-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.pgf0-tab-btn {
    padding: 10px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--pgf0-bg-card);
    color: var(--pgf0-text-muted);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgf0-tab-btn:hover {
    border-color: var(--pgf0-primary);
    color: var(--pgf0-primary);
}

.pgf0-tab-btn.pgf0-tab-active {
    background: var(--pgf0-gradient);
    color: var(--pgf0-dark);
    border-color: transparent;
}

.pgf0-tab-content {
    display: none;
}

.pgf0-tab-content.pgf0-tab-content-active {
    display: block;
}

/* ===== Game Grid ===== */
.pgf0-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pgf0-game-card {
    background: var(--pgf0-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--pgf0-border);
}

.pgf0-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(204, 153, 255, 0.2);
    border-color: var(--pgf0-primary);
}

.pgf0-game-img-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.pgf0-game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pgf0-game-card:hover .pgf0-game-img {
    transform: scale(1.05);
}

.pgf0-game-info {
    padding: 12px;
}

.pgf0-game-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgf0-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgf0-game-play {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    background: var(--pgf0-gradient);
    color: var(--pgf0-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgf0-game-play:hover {
    opacity: 0.9;
}

/* ===== Features Section ===== */
.pgf0-features {
    background: var(--pgf0-dark);
    padding: 40px 16px;
}

.pgf0-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pgf0-feature-item {
    background: var(--pgf0-bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--pgf0-border);
    transition: all 0.3s ease;
}

.pgf0-feature-item:hover {
    border-color: var(--pgf0-primary);
}

.pgf0-feature-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
    color: var(--pgf0-primary);
}

.pgf0-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pgf0-text-light);
}

.pgf0-feature-desc {
    font-size: 1.3rem;
    color: var(--pgf0-text-muted);
}

/* ===== FAQ Section ===== */
.pgf0-faq {
    padding: 40px 16px;
}

.pgf0-faq-item {
    background: var(--pgf0-bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--pgf0-border);
}

.pgf0-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgf0-faq-question:hover {
    background: rgba(204, 153, 255, 0.1);
}

.pgf0-faq-question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgf0-text-light);
    flex: 1;
    padding-right: 12px;
}

.pgf0-faq-icon {
    font-size: 2rem;
    color: var(--pgf0-primary);
    transition: transform 0.3s ease;
}

.pgf0-faq-active .pgf0-faq-icon {
    transform: rotate(180deg);
}

.pgf0-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pgf0-faq-answer-content {
    padding: 0 16px 16px;
    font-size: 1.4rem;
    color: var(--pgf0-text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.pgf0-footer {
    background: var(--pgf0-dark);
    padding: 40px 16px 20px;
    border-top: 1px solid var(--pgf0-border);
}

.pgf0-footer-logo {
    text-align: center;
    margin-bottom: 24px;
}

.pgf0-footer-logo img {
    height: 40px;
    margin: 0 auto 12px;
}

.pgf0-footer-logo p {
    font-size: 1.4rem;
    color: var(--pgf0-text-muted);
}

.pgf0-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pgf0-footer-links a {
    font-size: 1.4rem;
    color: var(--pgf0-text-muted);
    transition: color 0.3s ease;
}

.pgf0-footer-links a:hover {
    color: var(--pgf0-primary);
}

.pgf0-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--pgf0-border);
}

.pgf0-footer-bottom p {
    font-size: 1.2rem;
    color: var(--pgf0-text-muted);
    margin-bottom: 8px;
}

/* ===== Mobile Bottom Navigation ===== */
.pgf0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pgf0-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--pgf0-border);
}

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

.pgf0-nav-item:hover {
    background: rgba(204, 153, 255, 0.1);
}

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

.pgf0-nav-item .material-icons,
.pgf0-nav-item ion-icon,
.pgf0-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--pgf0-text-muted);
    transition: color 0.3s ease;
}

.pgf0-nav-item:hover .material-icons,
.pgf0-nav-item:hover ion-icon,
.pgf0-nav-item:hover i,
.pgf0-nav-item.active .material-icons,
.pgf0-nav-item.active ion-icon,
.pgf0-nav-item.active i {
    color: var(--pgf0-primary);
}

.pgf0-nav-item span {
    font-size: 11px;
    color: var(--pgf0-text-muted);
    transition: color 0.3s ease;
}

.pgf0-nav-item:hover span,
.pgf0-nav-item.active span {
    color: var(--pgf0-primary);
}

/* ===== Mobile Menu ===== */
.pgf0-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgf0-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

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

.pgf0-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.pgf0-menu-list {
    list-style: none;
}

.pgf0-menu-list li {
    margin-bottom: 8px;
}

.pgf0-menu-list a {
    display: block;
    padding: 14px 16px;
    font-size: 1.5rem;
    color: var(--pgf0-text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pgf0-menu-list a:hover {
    background: rgba(204, 153, 255, 0.1);
    color: var(--pgf0-primary);
}

/* ===== Back to Top ===== */
.pgf0-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--pgf0-gradient);
    color: var(--pgf0-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.pgf0-back-to-top-visible {
    opacity: 1;
    visibility: visible;
}

.pgf0-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(204, 153, 255, 0.4);
}

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

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

.pgf0-promo-box {
    background: linear-gradient(135deg, rgba(204, 153, 255, 0.2) 0%, rgba(175, 238, 238, 0.2) 100%);
    border: 2px solid var(--pgf0-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.pgf0-promo-box h3 {
    font-size: 1.8rem;
    color: var(--pgf0-primary);
    margin-bottom: 12px;
}

.pgf0-promo-box p {
    font-size: 1.4rem;
    color: var(--pgf0-text-muted);
    margin-bottom: 16px;
}

/* ===== Content Page Styles ===== */
.pgf0-content-section {
    padding: 40px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.pgf0-content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pgf0-primary);
    margin-bottom: 16px;
    margin-top: 32px;
}

.pgf0-content-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pgf0-text-light);
    margin-bottom: 12px;
    margin-top: 24px;
}

.pgf0-content-section p {
    font-size: 1.5rem;
    color: var(--pgf0-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pgf0-content-section ul,
.pgf0-content-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.pgf0-content-section li {
    font-size: 1.5rem;
    color: var(--pgf0-text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
    list-style: disc;
}

.pgf0-content-section ol li {
    list-style: decimal;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .pgf0-menu-toggle {
        display: flex;
    }

    .pgf0-header-actions .pgf0-btn {
        display: none;
    }

    .pgf0-main {
        padding-bottom: 80px;
    }

    .pgf0-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pgf0-feature-grid {
        grid-template-columns: 1fr;
    }
}

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

    .pgf0-header-actions .pgf0-btn {
        display: inline-flex;
    }

    .pgf0-menu-toggle {
        display: none;
    }

    .pgf0-hero h1 {
        font-size: 3.6rem;
    }

    .pgf0-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .pgf0-feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pgf0-section {
        padding: 60px 32px;
    }
}

@media (min-width: 1024px) {
    .pgf0-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
