/**
 * PBA Score Today - Theme Stylesheet
 * All classes use pg01- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --pg01-primary: #34495E;
    --pg01-secondary: #D3D3D3;
    --pg01-accent: #2E4057;
    --pg01-highlight: #FFEBCD;
    --pg01-dark: #2F2F2F;
    --pg01-white: #FFFFFF;
    --pg01-text-primary: #D3D3D3;
    --pg01-text-secondary: #FFEBCD;
    --pg01-border: #5D6D7E;
    --pg01-radius: 8px;
    --pg01-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --pg01-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    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, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--pg01-primary);
    color: var(--pg01-text-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    overflow-x: hidden;
}

/* Container */
.pg01-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    position: relative;
}

/* Header */
.pg01-header {
    background: linear-gradient(135deg, var(--pg01-primary) 0%, var(--pg01-accent) 100%);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--pg01-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg01-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg01-highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg01-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.pg01-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--pg01-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg01-transition);
    text-decoration: none;
    display: inline-block;
}

.pg01-btn-register {
    background: var(--pg01-highlight);
    color: var(--pg01-accent);
}

.pg01-btn-register:hover {
    background: var(--pg01-white);
    transform: translateY(-2px);
}

.pg01-btn-login {
    background: transparent;
    color: var(--pg01-highlight);
    border: 2px solid var(--pg01-highlight);
}

.pg01-btn-login:hover {
    background: var(--pg01-highlight);
    color: var(--pg01-accent);
}

/* Mobile Menu Button */
.pg01-menu-btn {
    background: none;
    border: none;
    color: var(--pg01-highlight);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg01-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pg01-transition);
}

.pg01-menu-overlay.pg01-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg01-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--pg01-accent);
    z-index: 9999;
    transition: var(--pg01-transition);
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.pg01-mobile-menu.pg01-menu-open {
    right: 0;
}

.pg01-menu-header {
    background: var(--pg01-primary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg01-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg01-highlight);
}

.pg01-menu-close {
    background: none;
    border: none;
    color: var(--pg01-highlight);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg01-menu-nav {
    padding: 1.5rem;
}

.pg01-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--pg01-text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--pg01-border);
    transition: var(--pg01-transition);
}

.pg01-menu-link:hover {
    background: var(--pg01-primary);
    color: var(--pg01-highlight);
    padding-left: 2rem;
}

/* Main Content */
.pg01-main {
    padding-bottom: 80px;
}

.pg01-section {
    padding: 2rem 0;
}

/* Hero Carousel */
.pg01-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pg01-radius);
    margin: 1.5rem 0;
}

.pg01-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg01-carousel-slide.pg01-active {
    opacity: 1;
}

.pg01-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg01-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg01-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pg01-secondary);
    cursor: pointer;
    transition: var(--pg01-transition);
}

.pg01-carousel-dot.pg01-active {
    background: var(--pg01-highlight);
    transform: scale(1.2);
}

/* Headings */
.pg01-title {
    color: var(--pg01-highlight);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg01-subtitle {
    color: var(--pg01-text-secondary);
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Game Grid */
.pg01-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.pg01-game-item {
    background: var(--pg01-accent);
    border-radius: var(--pg01-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--pg01-transition);
    border: 2px solid transparent;
}

.pg01-game-item:hover {
    border-color: var(--pg01-highlight);
    transform: translateY(-3px);
    box-shadow: var(--pg01-shadow);
}

.pg01-game-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.pg01-game-name {
    font-size: 1.1rem;
    color: var(--pg01-text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.pg01-module {
    background: var(--pg01-accent);
    border-radius: var(--pg01-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pg01-module-title {
    color: var(--pg01-highlight);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg01-module-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--pg01-text-primary);
}

.pg01-module-content p {
    margin-bottom: 1rem;
}

.pg01-module-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.pg01-module-content li {
    margin-bottom: 0.5rem;
}

/* Promo Links */
.pg01-promo-link {
    color: var(--pg01-highlight);
    text-decoration: none;
    font-weight: 600;
    transition: var(--pg01-transition);
}

.pg01-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.pg01-footer {
    background: var(--pg01-dark);
    padding: 2rem 1.5rem 90px;
    margin-top: 2rem;
}

.pg01-footer-section {
    margin-bottom: 1.5rem;
}

.pg01-footer-title {
    color: var(--pg01-highlight);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pg01-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pg01-partner-img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--pg01-white);
    padding: 0.3rem;
}

.pg01-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pg01-footer-link {
    color: var(--pg01-text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--pg01-transition);
}

.pg01-footer-link:hover {
    color: var(--pg01-highlight);
}

.pg01-footer-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pg01-text-primary);
    margin-top: 1rem;
}

/* Bottom Navigation */
.pg01-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pg01-accent) 0%, var(--pg01-dark) 100%);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--pg01-border);
}

.pg01-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--pg01-transition);
    padding: 0.5rem;
    border-radius: var(--pg01-radius);
}

.pg01-nav-item:hover {
    background: var(--pg01-primary);
    transform: scale(1.05);
}

.pg01-nav-icon {
    font-size: 2rem;
    color: var(--pg01-highlight);
    margin-bottom: 0.3rem;
}

.pg01-nav-label {
    font-size: 1rem;
    color: var(--pg01-text-primary);
    font-weight: 500;
}

.pg01-nav-item.active .pg01-nav-icon {
    color: var(--pg01-highlight);
}

.pg01-nav-item.active .pg01-nav-label {
    color: var(--pg01-highlight);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg01-bottom-nav {
        display: none;
    }

    .pg01-main {
        padding-bottom: 2rem;
    }

    .pg01-footer {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.pg01-text-center {
    text-align: center;
}

.pg01-mt-1 {
    margin-top: 1rem;
}

.pg01-mb-1 {
    margin-bottom: 1rem;
}

.pg01-highlight {
    color: var(--pg01-highlight);
}
