/**
 * Bouncing Ball - Main Stylesheet
 * Mobile-first responsive design
 * Prefix: pgaa-
 */

/* CSS Variables */
:root {
    --pgaa-primary: #FFD700;
    --pgaa-secondary: #000080;
    --pgaa-dark: #191970;
    --pgaa-darker: #3A3A3A;
    --pgaa-text: #FFFFFF;
    --pgaa-text-muted: #B0B0B0;
    --pgaa-bg: #0D0D2B;
    --pgaa-card-bg: #1A1A3E;
    --pgaa-border: #2A2A5E;
    --pgaa-gradient: linear-gradient(135deg, #000080 0%, #191970 50%, #3A3A3A 100%);
    --pgaa-accent-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--pgaa-bg);
    color: var(--pgaa-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.pgaa-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.pgaa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pgaa-gradient);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.pgaa-header-scrolled {
    background: rgba(0, 0, 128, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pgaa-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pgaa-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.pgaa-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pgaa-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pgaa-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pgaa-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgaa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
}

.pgaa-btn-primary {
    background: var(--pgaa-accent-gradient);
    color: #000;
}

.pgaa-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.pgaa-btn-outline {
    background: transparent;
    color: var(--pgaa-primary);
    border: 2px solid var(--pgaa-primary);
}

.pgaa-btn-outline:hover {
    background: var(--pgaa-primary);
    color: #000;
}

.pgaa-menu-btn {
    background: transparent;
    border: none;
    color: var(--pgaa-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.pgaa-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgaa-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pgaa-menu-active {
    right: 0;
}

.pgaa-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;
}

.pgaa-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgaa-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--pgaa-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgaa-menu-nav {
    margin-top: 3rem;
}

.pgaa-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--pgaa-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--pgaa-border);
    transition: color 0.3s ease;
}

.pgaa-menu-link:hover {
    color: var(--pgaa-primary);
}

/* Main Content */
.pgaa-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .pgaa-main {
        padding-bottom: 2rem;
    }
}

/* Carousel/Slider */
.pgaa-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.pgaa-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgaa-slide-active {
    opacity: 1;
}

.pgaa-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Title */
.pgaa-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgaa-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--pgaa-primary);
}

/* Game Grid */
.pgaa-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgaa-game-card {
    background: var(--pgaa-card-bg);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pgaa-border);
}

.pgaa-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--pgaa-primary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.pgaa-touch-active {
    transform: scale(0.95);
}

.pgaa-game-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.4rem;
    border-radius: 8px;
    overflow: hidden;
}

.pgaa-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgaa-game-name {
    font-size: 1rem;
    color: var(--pgaa-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Section */
.pgaa-content-section {
    background: var(--pgaa-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pgaa-border);
}

.pgaa-content-section h2 {
    font-size: 1.6rem;
    color: var(--pgaa-primary);
    margin-bottom: 1rem;
}

.pgaa-content-section p {
    color: var(--pgaa-text);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.pgaa-content-section ul {
    list-style: none;
    padding-left: 0;
}

.pgaa-content-section li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--pgaa-text);
}

.pgaa-content-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--pgaa-primary);
    font-weight: bold;
}

/* Promo Link */
.pgaa-promo-link {
    color: var(--pgaa-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pgaa-promo-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Footer */
.pgaa-footer {
    background: var(--pgaa-gradient);
    padding: 2rem 1rem 3rem;
    margin-top: 2rem;
}

.pgaa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.pgaa-footer-link {
    color: var(--pgaa-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pgaa-footer-link:hover {
    background: var(--pgaa-primary);
    color: #000;
}

.pgaa-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pgaa-partner-logo {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pgaa-partner-logo:hover {
    opacity: 1;
}

.pgaa-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pgaa-text-muted);
    margin-top: 1rem;
}

/* Bottom Navigation */
.pgaa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--pgaa-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .pgaa-bottom-nav {
        display: none;
    }
}

.pgaa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--pgaa-text);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgaa-nav-item:hover,
.pgaa-nav-item-active {
    color: var(--pgaa-primary);
    transform: scale(1.1);
}

.pgaa-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.pgaa-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.pgaa-text-center { text-align: center; }
.pgaa-text-gold { color: var(--pgaa-primary); }
.pgaa-mt-1 { margin-top: 1rem; }
.pgaa-mb-1 { margin-bottom: 1rem; }
.pgaa-py-2 { padding: 2rem 0; }

/* Responsive */
@media (max-width: 430px) {
    .pgaa-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .pgaa-game-icon {
        width: 45px;
        height: 45px;
    }

    .pgaa-game-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .pgaa-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 769px) {
    .pgaa-container {
        max-width: 800px;
    }

    .pgaa-header-inner {
        max-width: 800px;
    }

    .pgaa-carousel {
        height: 280px;
    }

    .pgaa-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
