/**
 * JL96 - Main Theme Stylesheet
 * All classes use 'pg77-' prefix for namespace isolation
 * Mobile-first responsive design
 * Version: 1.0.0
 */

/* CSS Custom Properties (Color Palette) */
:root {
    --pg77-primary: #FFBF00;
    --pg77-secondary: #FF6347;
    --pg77-accent: #FF9800;
    --pg77-dark: #1A1A1A;
    --pg77-light: #FAFAFA;
    --pg77-text: #FAFAFA;
    --pg77-text-dark: #1A1A1A;
    --pg77-border: rgba(255, 191, 0, 0.3);
    --pg77-overlay: rgba(26, 26, 26, 0.95);
}

/* Reset and Base Styles */
* {
    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.6rem;
    line-height: 1.5;
    color: var(--pg77-text);
    background-color: var(--pg77-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pg77-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.pg77-wrapper {
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .pg77-wrapper {
        padding-bottom: 0;
    }
}

/* Header */
.pg77-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--pg77-dark);
    border-bottom: 2px solid var(--pg77-primary);
    box-shadow: 0 2px 10px rgba(255, 191, 0, 0.2);
    transition: transform 0.3s ease;
}

.pg77-header-hidden {
    transform: translateY(-100%);
}

.pg77-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg77-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--pg77-text);
    font-size: 1.8rem;
    font-weight: 700;
}

.pg77-logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
}

.pg77-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pg77-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pg77-btn-register {
    background: linear-gradient(135deg, var(--pg77-primary), var(--pg77-accent));
    color: var(--pg77-dark);
}

.pg77-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.4);
}

.pg77-btn-login {
    background: transparent;
    color: var(--pg77-primary);
    border: 2px solid var(--pg77-primary);
}

.pg77-btn-login:hover {
    background: var(--pg77-primary);
    color: var(--pg77-dark);
}

.pg77-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg77-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--pg77-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pg77-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--pg77-overlay);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.pg77-menu-open {
    right: 0;
}

.pg77-menu-closed {
    right: -100%;
}

.pg77-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg77-menu-open + .pg77-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.pg77-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pg77-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--pg77-text);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg77-menu-link:hover {
    background-color: var(--pg77-primary);
    color: var(--pg77-dark);
}

.pg77-menu-link i {
    font-size: 1.8rem;
    width: 2.5rem;
    text-align: center;
}

/* Main Content */
.pg77-main {
    margin-top: 7rem;
}

/* Carousel */
.pg77-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(255, 191, 0, 0.3);
}

.pg77-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pg77-carousel-slide {
    min-width: 100%;
    position: relative;
}

.pg77-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.pg77-carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.pg77-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg77-carousel-indicator.pg77-active {
    background-color: var(--pg77-primary);
    transform: scale(1.2);
}

/* Headings */
.pg77-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pg77-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg77-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--pg77-secondary);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--pg77-primary);
}

/* Game Grid */
.pg77-game-section {
    margin-bottom: 2rem;
}

.pg77-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg77-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg77-game-item:hover {
    transform: scale(1.05);
}

.pg77-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--pg77-border);
    transition: border-color 0.3s ease;
}

.pg77-game-item:hover .pg77-game-icon {
    border-color: var(--pg77-primary);
}

.pg77-game-name {
    font-size: 1.1rem;
    color: var(--pg77-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Cards */
.pg77-card {
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.1), rgba(255, 99, 71, 0.1));
    border: 1px solid var(--pg77-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pg77-card h3 {
    font-size: 1.7rem;
    color: var(--pg77-primary);
    margin-bottom: 1rem;
}

.pg77-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Links */
.pg77-link {
    color: var(--pg77-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pg77-link:hover {
    color: var(--pg77-primary);
    text-decoration: underline;
}

/* Bottom Navigation */
.pg77-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg77-dark) 0%, #2a2a2a 100%);
    border-top: 2px solid var(--pg77-primary);
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: 0 -2px 15px rgba(255, 191, 0, 0.3);
}

.pg77-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pg77-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--pg77-text);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.pg77-nav-item:hover {
    transform: scale(1.1);
    background: rgba(255, 191, 0, 0.1);
}

.pg77-nav-item.pg77-active {
    color: var(--pg77-primary);
}

.pg77-nav-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.pg77-nav-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Footer */
.pg77-footer {
    background-color: #0d0d0d;
    border-top: 2px solid var(--pg77-secondary);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.pg77-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg77-footer-link {
    color: var(--pg77-text);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 191, 0, 0.1);
}

.pg77-footer-link:hover {
    background: var(--pg77-primary);
    color: var(--pg77-dark);
}

.pg77-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg77-partner-img {
    height: 4rem;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg77-partner-img:hover {
    opacity: 1;
}

.pg77-copyright {
    text-align: center;
    color: rgba(250, 250, 250, 0.6);
    font-size: 1.3rem;
    padding: 0 1rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pg77-bottom-nav {
        display: none;
    }

    .pg77-footer {
        padding-bottom: 3rem;
    }

    .pg77-menu-toggle {
        display: none;
    }
}

/* Utility Classes */
.pg77-text-center {
    text-align: center;
}

.pg77-mb-1 {
    margin-bottom: 1rem;
}

.pg77-mb-2 {
    margin-bottom: 2rem;
}

.pg77-highlight {
    color: var(--pg77-primary);
    font-weight: 700;
}
