/**
 * Play Play Zone - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: g107-
 */

/* CSS Variables */
:root {
    --g107-primary: #26A69A;
    --g107-secondary: #CCCCCC;
    --g107-dark: #333333;
    --g107-light: #FFFFFF;
    --g107-accent: #FF6B35;
    --g107-gradient: linear-gradient(135deg, #26A69A 0%, #1E8A7C 100%);
    --g107-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --g107-radius: 8px;
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--g107-dark);
    color: var(--g107-light);
    min-height: 100vh;
}

a {
    color: var(--g107-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--g107-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.g107-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g107-wrapper {
    padding: 2rem 0;
}

/* Header */
.g107-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.98) 0%, rgba(51, 51, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(38, 166, 154, 0.3);
}

.g107-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g107-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g107-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g107-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g107-primary);
}

.g107-header-actions {
    display: flex;
    gap: 0.8rem;
}

.g107-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--g107-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.g107-btn-primary {
    background: var(--g107-gradient);
    color: var(--g107-light);
}

.g107-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--g107-shadow);
}

.g107-btn-secondary {
    background: transparent;
    color: var(--g107-primary);
    border: 2px solid var(--g107-primary);
}

.g107-btn-secondary:hover {
    background: var(--g107-primary);
    color: var(--g107-dark);
}

.g107-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--g107-primary);
    cursor: pointer;
    font-size: 2.4rem;
}

/* Mobile Menu */
.g107-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g107-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.g107-menu-active {
    right: 0;
}

.g107-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;
}

.g107-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g107-nav-list {
    list-style: none;
}

.g107-nav-item {
    border-bottom: 1px solid rgba(204, 204, 204, 0.1);
}

.g107-nav-link {
    display: block;
    padding: 1.5rem 1rem;
    color: var(--g107-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.g107-nav-link:hover {
    color: var(--g107-primary);
    background: rgba(38, 166, 154, 0.1);
    padding-left: 1.5rem;
}

/* Main Content */
.g107-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Slider */
.g107-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--g107-radius);
    margin-bottom: 2rem;
}

.g107-slides {
    position: relative;
}

.g107-slide {
    display: none;
    cursor: pointer;
}

.g107-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--g107-radius);
}

.g107-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.g107-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g107-dot-active {
    background: var(--g107-primary);
    transform: scale(1.2);
}

/* Section Titles */
.g107-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--g107-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--g107-primary);
}

.g107-section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g107-secondary);
    margin-bottom: 1rem;
}

/* Game Grid */
.g107-game-section {
    margin-bottom: 3rem;
}

.g107-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g107-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--g107-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.g107-game-card:hover {
    transform: translateY(-4px);
    background: rgba(38, 166, 154, 0.15);
}

.g107-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g107-game-name {
    font-size: 1.1rem;
    color: var(--g107-secondary);
    text-align: center;
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.g107-content-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--g107-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(38, 166, 154, 0.2);
}

.g107-text {
    color: var(--g107-secondary);
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.g107-text:last-child {
    margin-bottom: 0;
}

.g107-highlight {
    color: var(--g107-primary);
    font-weight: 600;
}

.g107-list {
    list-style: none;
    padding-left: 0;
}

.g107-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--g107-secondary);
}

.g107-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--g107-primary);
}

/* Promo Link */
.g107-promo-link {
    display: inline-block;
    color: var(--g107-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g107-promo-link:hover {
    color: var(--g107-accent);
    text-decoration: underline;
}

/* Footer */
.g107-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(38, 166, 154, 0.2);
}

.g107-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g107-footer-link {
    color: var(--g107-secondary);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.g107-footer-link:hover {
    color: var(--g107-primary);
}

.g107-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g107-partner {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.g107-partner:hover {
    filter: grayscale(0);
    opacity: 1;
}

.g107-copyright {
    text-align: center;
    color: rgba(204, 204, 204, 0.5);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.g107-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.98) 0%, rgba(30, 30, 30, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(38, 166, 154, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.g107-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g107-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.g107-nav-btn:hover,
.g107-nav-btn.g107-active {
    color: var(--g107-primary);
    transform: scale(1.1);
}

.g107-nav-btn i,
.g107-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.g107-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .g107-bottom-nav {
        display: none;
    }

    .g107-main {
        padding-bottom: 2rem;
    }
}

/* Mobile: Add bottom padding */
@media (max-width: 768px) {
    .g107-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.g107-text-center {
    text-align: center;
}

.g107-mb-1 {
    margin-bottom: 1rem;
}

.g107-mb-2 {
    margin-bottom: 2rem;
}

.g107-mb-3 {
    margin-bottom: 3rem;
}

.g107-hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.g107-fade-in {
    animation: fadeIn 0.5s ease;
}
