/**
 * Yaman Plus - Theme Stylesheet
 * All classes use pg9b- prefix for namespace isolation
 * Color palette: #98FB98, #9AFF9A, #CCCCCC, #34495E, #008000, #20B2AA
 */

/* CSS Variables */
:root {
    --pg9b-primary: #008000;
    --pg9b-secondary: #20B2AA;
    --pg9b-accent: #98FB98;
    --pg9b-accent-light: #9AFF9A;
    --pg9b-dark: #34495E;
    --pg9b-gray: #CCCCCC;
    --pg9b-light: #FFFFFF;
    --pg9b-text: #2C3E50;
    --pg9b-text-light: #7F8C8D;
    --pg9b-border: #E0E0E0;
    --pg9b-shadow: rgba(0, 0, 0, 0.1);
    --pg9b-gradient: linear-gradient(135deg, #008000 0%, #20B2AA 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pg9b-text);
    background-color: #F5F7FA;
    min-width: 320px;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Container */
.pg9b-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.pg9b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--pg9b-light);
    box-shadow: 0 2px 10px var(--pg9b-shadow);
    z-index: 1000;
    padding: 0.8rem 1rem;
}

.pg9b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pg9b-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg9b-primary);
}

.pg9b-logo img {
    width: 32px;
    height: 32px;
}

.pg9b-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.pg9b-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg9b-btn-primary {
    background: var(--pg9b-gradient);
    color: var(--pg9b-light);
}

.pg9b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3);
}

.pg9b-btn-secondary {
    background: transparent;
    color: var(--pg9b-primary);
    border: 2px solid var(--pg9b-primary);
}

.pg9b-btn-secondary:hover {
    background: var(--pg9b-primary);
    color: var(--pg9b-light);
}

.pg9b-menu-toggle {
    display: none;
    background: none;
    font-size: 2rem;
    color: var(--pg9b-primary);
    padding: 0.5rem;
}

/* Mobile Menu */
.pg9b-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg9b-light);
    box-shadow: -2px 0 10px var(--pg9b-shadow);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg9b-mobile-menu.pg9b-menu-active {
    right: 0;
}

.pg9b-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--pg9b-border);
}

.pg9b-menu-close {
    background: none;
    font-size: 2rem;
    color: var(--pg9b-text);
    padding: 0.5rem;
}

.pg9b-menu-nav {
    padding: 1rem 0;
}

.pg9b-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--pg9b-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--pg9b-border);
    transition: background 0.3s ease;
}

.pg9b-menu-link:hover {
    background: var(--pg9b-accent-light);
    color: var(--pg9b-primary);
}

/* Main Content */
.pg9b-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.pg9b-carousel {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
}

.pg9b-carousel-slide {
    display: none;
}

.pg9b-carousel-slide.pg9b-slide-active {
    display: block;
}

.pg9b-carousel-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.pg9b-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg9b-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.pg9b-carousel-dot.pg9b-dot-active {
    background: var(--pg9b-light);
}

/* Section */
.pg9b-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--pg9b-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--pg9b-shadow);
}

.pg9b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg9b-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.pg9b-section-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--pg9b-text);
    margin-bottom: 1rem;
}

/* Game Grid */
.pg9b-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pg9b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg9b-game-item:hover {
    transform: scale(1.05);
}

.pg9b-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px var(--pg9b-shadow);
}

.pg9b-game-name {
    font-size: 1.1rem;
    color: var(--pg9b-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Link Styles */
.pg9b-link {
    color: var(--pg9b-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.pg9b-link:hover {
    color: var(--pg9b-secondary);
}

/* Bottom Navigation */
.pg9b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--pg9b-gradient);
    box-shadow: 0 -2px 10px var(--pg9b-shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 0.5rem;
}

.pg9b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pg9b-light);
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pg9b-nav-item:hover {
    transform: scale(1.1);
}

.pg9b-nav-item.pg9b-nav-active {
    color: var(--pg9b-accent);
}

.pg9b-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.pg9b-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.pg9b-footer {
    background: var(--pg9b-dark);
    color: var(--pg9b-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.pg9b-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pg9b-accent);
}

.pg9b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pg9b-footer-link {
    color: var(--pg9b-accent-light);
    font-size: 1.2rem;
    text-decoration: underline;
}

.pg9b-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg9b-partner-img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pg9b-partner-img:hover {
    opacity: 1;
}

.pg9b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pg9b-gray);
}

/* Responsive */
@media (min-width: 769px) {
    .pg9b-bottom-nav {
        display: none;
    }

    .pg9b-main {
        padding-bottom: 2rem;
    }

    .pg9b-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .pg9b-menu-toggle {
        display: block;
    }

    .pg9b-header-buttons .pg9b-btn {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Utility Classes */
.pg9b-text-center {
    text-align: center;
}

.pg9b-mt-1 {
    margin-top: 1rem;
}

.pg9b-mb-1 {
    margin-bottom: 1rem;
}

.pg9b-mb-2 {
    margin-bottom: 2rem;
}

.pg9b-p-1 {
    padding: 1rem;
}

.pg9b-highlight {
    color: var(--pg9b-primary);
    font-weight: 700;
}
