/* AAAJILI Layout Stylesheet - Dynamic Classes with pg1c- prefix */
/* Mobile-first design with unique class prefix for namespace isolation */

/* ========================================
   CSS Variables & Color Palette
======================================== */
:root {
    --pg1c-primary: #00FF00;          /* Bright Green */
    --pg1c-secondary: #2E8B57;        /* Sea Green */
    --pg1c-accent: #FFAA00;           /* Orange Gold */
    --pg1c-dark: #006400;             /* Dark Green */
    --pg1c-gray: #BBBBBB;             /* Light Gray */
    --pg1c-bg: #0F0F23;               /* Dark Blue-Black */

    --pg1c-text-primary: #FFFFFF;
    --pg1c-text-secondary: #CCCCCC;
    --pg1c-border-color: rgba(0, 255, 0, 0.2);

    --pg1c-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --pg1c-max-width: 430px;
    --pg1c-header-height: 60px;
    --pg1c-nav-height: 64px;
}

/* ========================================
   Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--pg1c-font-main);
    background-color: var(--pg1c-bg);
    color: var(--pg1c-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.pg1c-loaded {
    opacity: 1;
}

/* ========================================
   Container & Layout
======================================== */
.pg1c-container {
    max-width: var(--pg1c-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   Header Styles
======================================== */
.pg1c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pg1c-header-height);
    background: linear-gradient(135deg, var(--pg1c-dark) 0%, var(--pg1c-bg) 100%);
    border-bottom: 2px solid var(--pg1c-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
}

.pg1c-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg1c-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pg1c-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.pg1c-header-buttons {
    display: flex;
    gap: 10px;
}

.pg1c-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pg1c-btn-register {
    background: var(--pg1c-primary);
    color: var(--pg1c-bg);
}

.pg1c-btn-register:hover {
    background: var(--pg1c-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.4);
}

.pg1c-btn-login {
    background: transparent;
    color: var(--pg1c-primary);
    border: 2px solid var(--pg1c-primary);
}

.pg1c-btn-login:hover {
    background: var(--pg1c-primary);
    color: var(--pg1c-bg);
}

.pg1c-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.pg1c-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--pg1c-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Mobile Menu
======================================== */
.pg1c-mobile-menu {
    position: fixed;
    top: var(--pg1c-header-height);
    left: 0;
    right: 0;
    background: var(--pg1c-bg);
    border-bottom: 2px solid var(--pg1c-primary);
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.pg1c-mobile-menu.pg1c-menu-active {
    transform: translateX(0);
}

.pg1c-menu-list {
    list-style: none;
    padding: 0 16px;
}

.pg1c-menu-item {
    margin-bottom: 16px;
}

.pg1c-menu-link {
    color: var(--pg1c-text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg1c-menu-link:hover {
    background: rgba(0, 255, 0, 0.1);
    color: var(--pg1c-primary);
}

/* ========================================
   Main Content
======================================== */
.pg1c-main {
    margin-top: calc(var(--pg1c-header-height) + 20px);
    padding-bottom: 80px;
}

.pg1c-section {
    margin-bottom: 40px;
}

.pg1c-section-title {
    font-size: 1.8rem;
    color: var(--pg1c-primary);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pg1c-content {
    color: var(--pg1c-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   Game Categories
======================================== */
.pg1c-category-section {
    margin-bottom: 40px;
}

.pg1c-category-title {
    font-size: 1.5rem;
    color: var(--pg1c-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg1c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pg1c-game-item {
    background: rgba(46, 139, 87, 0.2);
    border: 1px solid var(--pg1c-border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.pg1c-game-item:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--pg1c-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

.pg1c-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.pg1c-game-name {
    color: var(--pg1c-text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.pg1c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pg1c-nav-height);
    background: linear-gradient(180deg, var(--pg1c-dark) 0%, var(--pg1c-bg) 100%);
    border-top: 2px solid var(--pg1c-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 8px;
    box-shadow: 0 -2px 10px rgba(0, 255, 0, 0.1);
}

.pg1c-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 6px;
    gap: 4px;
}

.pg1c-nav-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
}

.pg1c-nav-item:active {
    transform: scale(0.95);
}

.pg1c-nav-icon {
    font-size: 24px;
    color: var(--pg1c-gray);
    transition: color 0.3s ease;
}

.pg1c-nav-item:hover .pg1c-nav-icon,
.pg1c-nav-item.active .pg1c-nav-icon {
    color: var(--pg1c-primary);
}

.pg1c-nav-label {
    font-size: 10px;
    color: var(--pg1c-gray);
    font-weight: 500;
}

.pg1c-nav-item:hover .pg1c-nav-label,
.pg1c-nav-item.active .pg1c-nav-label {
    color: var(--pg1c-primary);
}

/* ========================================
   Footer
======================================== */
.pg1c-footer {
    background: linear-gradient(135deg, var(--pg1c-dark) 0%, var(--pg1c-bg) 100%);
    border-top: 2px solid var(--pg1c-primary);
    padding: 40px 16px 100px;
    margin-top: 60px;
}

.pg1c-footer-section {
    margin-bottom: 30px;
}

.pg1c-footer-title {
    font-size: 1.3rem;
    color: var(--pg1c-primary);
    margin-bottom: 16px;
    text-align: center;
}

.pg1c-partner-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.pg1c-partner-logo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pg1c-border-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.pg1c-partner-logo img {
    max-width: 100%;
    max-height: 35px;
    object-fit: contain;
}

.pg1c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.pg1c-footer-link {
    color: var(--pg1c-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid var(--pg1c-border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.pg1c-footer-link:hover {
    background: var(--pg1c-primary);
    color: var(--pg1c-bg);
    border-color: var(--pg1c-primary);
}

.pg1c-copyright {
    text-align: center;
    color: var(--pg1c-gray);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* ========================================
   Responsive Design
======================================== */
@media (min-width: 769px) {
    .pg1c-bottom-nav {
        display: none;
    }

    .pg1c-main {
        padding-bottom: 40px;
    }

    .pg1c-footer {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .pg1c-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Utility Classes
======================================== */
.pg1c-text-center {
    text-align: center;
}

.pg1c-mt-20 {
    margin-top: 20px;
}

.pg1c-mb-20 {
    margin-bottom: 20px;
}

.pg1c-highlight {
    color: var(--pg1c-primary);
    font-weight: 600;
}

.pg1c-accent-text {
    color: var(--pg1c-accent);
    font-weight: 600;
}

/* ========================================
   Animations
======================================== */
@keyframes pg1c-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pg1c-pulse {
    animation: pg1c-pulse 2s infinite;
}

/* ========================================
   Accessibilty
======================================== */
.pg1c-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
