/**
 * PGPH88 Website Common Styles
 * Website: pgph88.xyz
 * CSS Prefix: gda9-
 */

/* CSS Variables */
:root {
    --gda9-primary: #40E0D0;
    --gda9-secondary: #48D1CC;
    --gda9-accent: #B2DFDB;
    --gda9-bg-dark: #0F0F23;
    --gda9-bg-light: #F0F0F0;
    --gda9-text-dark: #0F0F23;
    --gda9-text-light: #F0F0F0;
    --gda9-font-size-root: 62.5%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--gda9-font-size-root);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    background-color: var(--gda9-bg-dark);
    color: var(--gda9-text-light);
    overflow-x: hidden;
}

/* Container and Layout */
.gda9-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.gda9-wrapper {
    width: 100%;
}

.gda9-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

/* Header Styles */
.gda9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--gda9-bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 12px 0;
}

.gda9-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.gda9-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gda9-logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--gda9-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gda9-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gda9-primary);
    white-space: nowrap;
}

.gda9-header-actions {
    display: flex;
    gap: 8px;
}

.gda9-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gda9-btn-primary {
    background-color: var(--gda9-primary);
    color: var(--gda9-text-dark);
}

.gda9-btn-primary:hover {
    background-color: var(--gda9-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(64, 224, 208, 0.3);
}

.gda9-btn-secondary {
    background-color: transparent;
    color: var(--gda9-primary);
    border: 2px solid var(--gda9-primary);
}

.gda9-btn-secondary:hover {
    background-color: var(--gda9-primary);
    color: var(--gda9-text-dark);
}

/* Mobile Menu */
.gda9-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.gda9-hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--gda9-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.gda9-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 15, 35, 0.95);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 80px 20px 100px;
}

.gda9-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gda9-menu-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gda9-primary);
}

.gda9-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gda9-menu-item {
    padding: 16px 20px;
    background-color: rgba(64, 224, 208, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gda9-text-light);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-align: center;
}

.gda9-menu-item:hover {
    background-color: var(--gda9-primary);
    color: var(--gda9-text-dark);
    transform: translateX(8px);
}

/* Main Content */
main {
    padding-top: 72px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel Styles */
.gda9-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gda9-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.gda9-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gda9-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Section Styles */
.gda9-section {
    margin-bottom: 40px;
}

.gda9-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--gda9-primary);
    margin-bottom: 16px;
    text-align: center;
}

.gda9-section-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--gda9-text-light);
}

/* Game Grid */
.gda9-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.gda9-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gda9-game-item:hover {
    transform: scale(1.1);
}

.gda9-game-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
}

.gda9-game-name {
    font-size: 1.2rem;
    color: var(--gda9-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.gda9-card {
    background-color: rgba(64, 224, 208, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.gda9-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gda9-primary);
    margin-bottom: 12px;
}

.gda9-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Footer */
.gda9-footer {
    background-color: var(--gda9-bg-dark);
    padding: 40px 0 80px;
    margin-top: 60px;
}

.gda9-footer-content {
    text-align: center;
}

.gda9-footer-text {
    font-size: 1.4rem;
    color: var(--gda9-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.gda9-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.gda9-footer-link {
    color: var(--gda9-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.gda9-footer-link:hover {
    color: var(--gda9-secondary);
}

.gda9-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.gda9-partner-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gda9-partner-logo:hover {
    opacity: 1;
}

.gda9-copyright {
    font-size: 1.2rem;
    color: var(--gda9-accent);
    text-align: center;
}

/* Bottom Navigation */
.gda9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gda9-bg-dark);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    height: 64px;
}

@media (min-width: 769px) {
    .gda9-bottom-nav {
        display: none;
    }
}

.gda9-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gda9-text-light);
    transition: all 0.3s ease;
    padding: 8px;
}

.gda9-nav-btn.active {
    color: var(--gda9-primary);
}

.gda9-nav-btn:hover {
    color: var(--gda9-primary);
    transform: translateY(-2px);
}

.gda9-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.gda9-nav-text {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 430px) {
    main {
        padding-bottom: 120px;
    }
}

/* Helper classes */
.gda9-text-center {
    text-align: center;
}

.gda9-mt-20 {
    margin-top: 20px;
}

.gda9-mb-20 {
    margin-bottom: 20px;
}

.gda9-flex {
    display: flex;
}

.gda9-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game categories */
.gda9-category-section {
    margin-bottom: 32px;
}

.gda9-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 16px;
    background-color: rgba(64, 224, 208, 0.1);
    border-radius: 8px;
}

.gda9-category-icon {
    color: var(--gda9-primary);
    font-size: 2rem;
}

.gda9-category-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--gda9-primary);
}

/* Feature cards */
.gda9-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gda9-feature-card {
    background-color: rgba(64, 224, 208, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.gda9-feature-icon {
    font-size: 3rem;
    color: var(--gda9-primary);
    margin-bottom: 12px;
}

.gda9-feature-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--gda9-primary);
    margin-bottom: 8px;
}

.gda9-feature-description {
    font-size: 1.4rem;
    color: var(--gda9-text-light);
    line-height: 1.5;
}

/* Statistics code styling */
.gda9-stats-script {
    font-size: 0;
    line-height: 0;
}

/* Loading animation */
@keyframes gda9-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.gda9-loading {
    animation: gda9-pulse 2s infinite;
}