/**
 * ibeth Layout Stylesheet
 * Prefix: pgd2-
 * Version: 1.0.0
 * Color Palette: #00FA9A | #FFFFFF | #1B263B | #FF8A80 | #00FF7F | #228B22
 */

/* CSS Variables */
:root {
    --pgd2-primary: #00FA9A;
    --pgd2-secondary: #00FF7F;
    --pgd2-accent: #FF8A80;
    --pgd2-bg: #1B263B;
    --pgd2-bg-dark: #0f1624;
    --pgd2-text: #FFFFFF;
    --pgd2-text-muted: #a0aec0;
    --pgd2-success: #228B22;
    --pgd2-gradient: linear-gradient(135deg, #00FA9A 0%, #00FF7F 100%);
    --pgd2-shadow: 0 4px 15px rgba(0, 250, 154, 0.3);
}

/* Base Reset */
*, *::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-color: var(--pgd2-bg);
    color: var(--pgd2-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

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

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

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

.pgd2-wrapper {
    padding: 2rem 0;
}

/* Header */
.pgd2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgd2-bg-dark);
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 250, 154, 0.2);
    transition: all 0.3s ease;
}

.pgd2-header-scrolled {
    background: rgba(27, 38, 59, 0.95);
    box-shadow: var(--pgd2-shadow);
}

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

.pgd2-logo img {
    width: 28px;
    height: 28px;
}

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

.pgd2-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pgd2-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.pgd2-btn-outline {
    background: transparent;
    border: 2px solid var(--pgd2-primary);
    color: var(--pgd2-primary);
}

.pgd2-btn-outline:hover {
    background: var(--pgd2-primary);
    color: var(--pgd2-bg);
}

.pgd2-menu-toggle {
    background: none;
    border: none;
    color: var(--pgd2-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

.pgd2-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;
}

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

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

.pgd2-menu-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 250, 154, 0.1);
}

.pgd2-menu-item a {
    color: var(--pgd2-text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.pgd2-menu-item a:hover {
    color: var(--pgd2-primary);
}

/* Carousel */
.pgd2-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 60px;
    border-radius: 0 0 2rem 2rem;
}

.pgd2-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

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

.pgd2-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Section Titles */
.pgd2-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pgd2-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgd2-section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: var(--pgd2-gradient);
    border-radius: 2px;
}

/* Game Grid */
.pgd2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgd2-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.pgd2-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid rgba(0, 250, 154, 0.3);
    margin-bottom: 0.5rem;
}

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

/* Category Section */
.pgd2-category-section {
    margin-bottom: 2.5rem;
}

.pgd2-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pgd2-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgd2-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Cards */
.pgd2-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 250, 154, 0.15);
}

.pgd2-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pgd2-primary);
}

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

/* Features List */
.pgd2-features {
    display: grid;
    gap: 1rem;
}

.pgd2-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 250, 154, 0.05);
    border-radius: 1rem;
}

.pgd2-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--pgd2-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pgd2-bg);
    font-size: 1.8rem;
    flex-shrink: 0;
}

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

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

/* Footer */
.pgd2-footer {
    background: var(--pgd2-bg-dark);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(0, 250, 154, 0.2);
}

.pgd2-footer-brand {
    font-size: 1.4rem;
    color: var(--pgd2-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.pgd2-footer-link {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 250, 154, 0.1);
    border-radius: 2rem;
    font-size: 1.2rem;
    color: var(--pgd2-primary);
    transition: all 0.3s ease;
}

.pgd2-footer-link:hover {
    background: var(--pgd2-primary);
    color: var(--pgd2-bg);
}

.pgd2-copyright {
    font-size: 1.2rem;
    color: var(--pgd2-text-muted);
}

/* Bottom Navigation */
.pgd2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pgd2-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 250, 154, 0.2);
}

.pgd2-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;
    color: var(--pgd2-text-muted);
}

.pgd2-nav-item:hover,
.pgd2-nav-item.pgd2-nav-active {
    color: var(--pgd2-primary);
    transform: scale(1.1);
}

.pgd2-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.pgd2-nav-text {
    font-size: 1rem;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgd2-bottom-nav {
        display: none;
    }

    .pgd2-main {
        padding-bottom: 2rem;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pgd2-main {
        padding-bottom: 80px;
    }

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

/* Utility Classes */
.pgd2-text-center { text-align: center; }
.pgd2-mb-1 { margin-bottom: 1rem; }
.pgd2-mb-2 { margin-bottom: 2rem; }
.pgd2-mb-3 { margin-bottom: 3rem; }
.pgd2-mt-2 { margin-top: 2rem; }
.pgd2-hidden { display: none; }
