/**
 * JL1 Layout Stylesheet
 * Version: 1.0.0
 * Prefix: pgaa-
 * Website: jl1.click
 */

/* CSS Variables */
:root {
    --pgaa-primary: #9370DB;
    --pgaa-secondary: #40E0D0;
    --pgaa-accent: #FFFACD;
    --pgaa-bg-dark: #0D1117;
    --pgaa-bg-light: #F8F9FA;
    --pgaa-bg-mint: #E8F5E8;
    --pgaa-text-light: #F8F9FA;
    --pgaa-text-dark: #0D1117;
    --pgaa-gradient-primary: linear-gradient(135deg, #9370DB 0%, #40E0D0 100%);
    --pgaa-gradient-dark: linear-gradient(180deg, #0D1117 0%, #1a1f2e 100%);
    --pgaa-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
    --pgaa-radius: 12px;
    --pgaa-radius-sm: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--pgaa-bg-dark);
    color: var(--pgaa-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pgaa-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.pgaa-wrapper {
    width: 100%;
    padding: 1.6rem 0;
}

/* Header Styles */
.pgaa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgaa-gradient-dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
}

.pgaa-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.pgaa-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pgaa-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pgaa-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pgaa-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgaa-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgaa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--pgaa-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pgaa-btn-login {
    background: transparent;
    color: var(--pgaa-text-light);
    border: 1px solid var(--pgaa-primary);
}

.pgaa-btn-login:hover {
    background: rgba(147, 112, 219, 0.1);
}

.pgaa-btn-register {
    background: var(--pgaa-gradient-primary);
    color: var(--pgaa-text-dark);
}

.pgaa-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--pgaa-shadow);
}

.pgaa-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.pgaa-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--pgaa-text-light);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pgaa-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgaa-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(147, 112, 219, 0.2);
}

.pgaa-menu-active {
    right: 0;
}

.pgaa-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pgaa-menu-close {
    background: none;
    border: none;
    color: var(--pgaa-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgaa-menu-nav {
    list-style: none;
}

.pgaa-menu-nav li {
    margin-bottom: 1.2rem;
}

.pgaa-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--pgaa-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: var(--pgaa-radius-sm);
    transition: all 0.3s ease;
}

.pgaa-menu-nav a:hover {
    background: rgba(147, 112, 219, 0.1);
    color: var(--pgaa-primary);
}

.pgaa-menu-nav i {
    width: 20px;
    text-align: center;
}

/* Overlay */
.pgaa-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;
}

/* Main Content */
.pgaa-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .pgaa-main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.pgaa-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pgaa-radius);
    margin-bottom: 2rem;
}

.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 Styles */
.pgaa-section {
    padding: 2rem 0;
}

.pgaa-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--pgaa-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgaa-section-subtitle {
    font-size: 1.4rem;
    color: var(--pgaa-secondary);
    margin-bottom: 1rem;
}

/* Game Grid */
.pgaa-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgaa-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pgaa-game-card:hover {
    transform: scale(1.05);
}

.pgaa-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--pgaa-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(147, 112, 219, 0.3);
}

.pgaa-game-name {
    font-size: 1.1rem;
    color: var(--pgaa-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Category Section */
.pgaa-category {
    margin-bottom: 2.5rem;
}

.pgaa-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.pgaa-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgaa-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Card Styles */
.pgaa-card {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.1) 0%, rgba(64, 224, 208, 0.05) 100%);
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: var(--pgaa-radius);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.pgaa-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgaa-primary);
    margin-bottom: 1rem;
}

.pgaa-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--pgaa-text-light);
}

/* Promo Link Styles */
.pgaa-promo-link {
    color: var(--pgaa-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pgaa-promo-link:hover {
    color: var(--pgaa-primary);
}

.pgaa-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--pgaa-gradient-primary);
    color: var(--pgaa-text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--pgaa-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgaa-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--pgaa-shadow);
}

/* Footer */
.pgaa-footer {
    background: var(--pgaa-gradient-dark);
    border-top: 1px solid rgba(147, 112, 219, 0.2);
    padding: 2rem 0;
}

.pgaa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pgaa-footer-links a {
    color: var(--pgaa-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--pgaa-radius-sm);
    transition: all 0.3s ease;
}

.pgaa-footer-links a:hover {
    background: rgba(147, 112, 219, 0.1);
    color: var(--pgaa-primary);
}

.pgaa-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgaa-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pgaa-partners img:hover {
    opacity: 1;
}

.pgaa-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(248, 249, 250, 0.6);
}

/* Bottom Navigation - Mobile */
.pgaa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pgaa-bg-dark);
    border-top: 1px solid rgba(147, 112, 219, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@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;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--pgaa-radius-sm);
}

.pgaa-nav-item:hover {
    background: rgba(147, 112, 219, 0.1);
}

.pgaa-nav-item.active {
    color: var(--pgaa-primary);
}

.pgaa-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.pgaa-nav-item span {
    font-size: 10px;
    color: var(--pgaa-text-light);
}

.pgaa-nav-item.active span {
    color: var(--pgaa-primary);
}

/* Utility Classes */
.pgaa-text-center { text-align: center; }
.pgaa-text-left { text-align: left; }
.pgaa-text-right { text-align: right; }
.pgaa-mt-1 { margin-top: 1rem; }
.pgaa-mt-2 { margin-top: 2rem; }
.pgaa-mb-1 { margin-bottom: 1rem; }
.pgaa-mb-2 { margin-bottom: 2rem; }
.pgaa-hidden { display: none; }

/* Feature List */
.pgaa-feature-list {
    list-style: none;
}

.pgaa-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pgaa-feature-list i {
    color: var(--pgaa-secondary);
    margin-top: 3px;
}

/* FAQ Styles */
.pgaa-faq-item {
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: var(--pgaa-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.pgaa-faq-question {
    padding: 1.2rem;
    background: rgba(147, 112, 219, 0.1);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgaa-primary);
}

.pgaa-faq-answer {
    padding: 1.2rem;
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .pgaa-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgaa-game-icon {
        width: 50px;
        height: 50px;
    }
}
