/**
 * JLJL77 - Main Theme Stylesheet
 * All classes prefixed with pg9f- to avoid conflicts
 * Mobile-first responsive design
 */

/* CSS Custom Properties - Color Palette */
:root {
    --pg9f-purple-dark: #5A005A;
    --pg9f-purple: #800080;
    --pg9f-purple-light: #9932CC;
    --pg9f-orange: #FFA500;
    --pg9f-orange-dark: #FF8C00;
    --pg9f-silver: #C0C0C0;
    --pg9f-gray-dark: #3A3A3A;
    --pg9f-gray-medium: #555555;
    --pg9f-sandy-brown: #F4A460;
    --pg9f-white: #FFFFFF;
    --pg9f-black: #000000;

    --pg9f-bg-primary: #2D0033;
    --pg9f-bg-secondary: #3A0042;
    --pg9f-bg-card: #40004A;
    --pg9f-text-primary: #FFFFFF;
    --pg9f-text-secondary: #E0E0E0;
    --pg9f-text-muted: #B0B0B0;

    --pg9f-gradient-main: linear-gradient(135deg, #800080 0%, #FFA500 100%);
    --pg9f-gradient-purple: linear-gradient(135deg, #5A005A 0%, #9932CC 100%);
    --pg9f-gradient-orange: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);

    --pg9f-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --pg9f-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --pg9f-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

    --pg9f-radius-sm: 4px;
    --pg9f-radius-md: 8px;
    --pg9f-radius-lg: 12px;
    --pg9f-radius-xl: 16px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    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.4rem;
    line-height: 1.6;
    color: var(--pg9f-text-primary);
    background-color: var(--pg9f-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.pg9f-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.pg9f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg9f-bg-secondary);
    box-shadow: var(--pg9f-shadow-md);
    transition: transform 0.3s ease;
}

.pg9f-header.pg9f-header-hidden {
    transform: translateY(-100%);
}

.pg9f-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.pg9f-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--pg9f-text-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.pg9f-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--pg9f-radius-sm);
}

.pg9f-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.pg9f-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--pg9f-radius-md);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pg9f-btn-primary {
    background: var(--pg9f-gradient-main);
    color: var(--pg9f-white);
}

.pg9f-btn-secondary {
    background: transparent;
    color: var(--pg9f-orange);
    border: 2px solid var(--pg9f-orange);
}

.pg9f-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg9f-shadow-lg);
}

.pg9f-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg9f-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pg9f-orange);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pg9f-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;
}

.pg9f-menu-overlay.pg9f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg9f-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg9f-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg9f-mobile-menu.pg9f-menu-active {
    right: 0;
}

.pg9f-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--pg9f-purple-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg9f-menu-close {
    background: none;
    border: none;
    color: var(--pg9f-text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.pg9f-menu-nav {
    padding: 1rem 0;
}

.pg9f-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--pg9f-text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.pg9f-menu-nav a:hover {
    background: var(--pg9f-purple-dark);
    border-left-color: var(--pg9f-orange);
}

/* Carousel */
.pg9f-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 0 0 var(--pg9f-radius-lg) var(--pg9f-radius-lg);
}

.pg9f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg9f-slide.pg9f-slide-active {
    opacity: 1;
}

.pg9f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg9f-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg9f-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pg9f-silver);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg9f-dot.pg9f-dot-active {
    background: var(--pg9f-orange);
    transform: scale(1.2);
}

/* Main Content */
main {
    padding-top: 1rem;
    padding-bottom: 80px;
}

.pg9f-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--pg9f-bg-card);
    border-radius: var(--pg9f-radius-lg);
}

.pg9f-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg9f-orange);
    margin-bottom: 1rem;
    text-align: center;
}

.pg9f-section-title h2 {
    font-size: inherit;
    color: inherit;
}

/* Game Grid */
.pg9f-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.pg9f-game-item {
    background: var(--pg9f-bg-secondary);
    border-radius: var(--pg9f-radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pg9f-game-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg9f-shadow-lg);
}

.pg9f-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pg9f-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    color: var(--pg9f-text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Category Section */
.pg9f-category {
    margin-bottom: 2rem;
}

.pg9f-category-header {
    background: var(--pg9f-gradient-purple);
    padding: 1rem;
    border-radius: var(--pg9f-radius-md);
    margin-bottom: 1rem;
}

.pg9f-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg9f-text-primary);
    text-transform: uppercase;
}

/* Card Styles */
.pg9f-card {
    background: var(--pg9f-bg-secondary);
    border-radius: var(--pg9f-radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--pg9f-purple-dark);
}

.pg9f-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg9f-orange);
    margin-bottom: 0.8rem;
}

.pg9f-card-content {
    font-size: 1.3rem;
    color: var(--pg9f-text-secondary);
    line-height: 1.8;
}

.pg9f-card-content p {
    margin-bottom: 0.8rem;
}

/* Links */
.pg9f-link {
    color: var(--pg9f-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.pg9f-link:hover {
    color: var(--pg9f-sandy-brown);
    text-decoration: underline;
}

/* List Styles */
.pg9f-list {
    list-style: none;
    padding: 0;
}

.pg9f-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--pg9f-purple-dark);
    color: var(--pg9f-text-secondary);
}

.pg9f-list li:last-child {
    border-bottom: none;
}

.pg9f-list li::before {
    content: "▸";
    color: var(--pg9f-orange);
    margin-right: 0.5rem;
}

/* Footer */
.pg9f-footer {
    background: var(--pg9f-bg-secondary);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.pg9f-footer-section {
    margin-bottom: 1.5rem;
}

.pg9f-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg9f-orange);
    margin-bottom: 0.8rem;
}

.pg9f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pg9f-footer-links a {
    color: var(--pg9f-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.pg9f-footer-links a:hover {
    color: var(--pg9f-orange);
}

.pg9f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pg9f-partners img {
    height: 3rem;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pg9f-partners img:hover {
    opacity: 1;
}

.pg9f-copyright {
    text-align: center;
    color: var(--pg9f-text-muted);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pg9f-purple-dark);
}

/* Mobile Bottom Navigation */
.pg9f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pg9f-purple-dark) 0%, var(--pg9f-bg-primary) 100%);
    border-top: 2px solid var(--pg9f-orange);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.pg9f-bottom-nav-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.pg9f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.pg9f-nav-item:active {
    transform: scale(0.9);
}

.pg9f-nav-icon {
    font-size: 24px;
    color: var(--pg9f-silver);
    transition: all 0.3s ease;
}

.pg9f-nav-item.active .pg9f-nav-icon,
.pg9f-nav-item:hover .pg9f-nav-icon {
    color: var(--pg9f-orange);
    text-shadow: 0 0 10px var(--pg9f-orange);
}

.pg9f-nav-label {
    font-size: 10px;
    color: var(--pg9f-text-muted);
    font-weight: 500;
}

.pg9f-nav-item.active .pg9f-nav-label,
.pg9f-nav-item:hover .pg9f-nav-label {
    color: var(--pg9f-orange);
}

.pg9f-nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--pg9f-orange);
    color: var(--pg9f-white);
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Animation Classes */
.pg9f-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.pg9f-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 769px) {
    .pg9f-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .pg9f-menu-toggle {
        display: none;
    }
}

/* Utility Classes */
.pg9f-text-center {
    text-align: center;
}

.pg9f-mt-1 { margin-top: 1rem; }
.pg9f-mt-2 { margin-top: 2rem; }
.pg9f-mb-1 { margin-bottom: 1rem; }
.pg9f-mb-2 { margin-bottom: 2rem; }

/* H1 Styling */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg9f-orange);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}
