/**
 * JLSS Casino - Main Stylesheet
 * All classes use prefix 'pgfa-' for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables with prefix */
:root {
    --pgfa-primary: #4169E1;
    --pgfa-secondary: #4B0082;
    --pgfa-accent: #6495ED;
    --pgfa-light: #F0F8FF;
    --pgfa-dark: #3A3A3A;
    --pgfa-bg: #1a1a2e;
    --pgfa-bg-light: #16213e;
    --pgfa-text: #ffffff;
    --pgfa-text-muted: #b0b0b0;
    --pgfa-success: #28a745;
    --pgfa-warning: #ffc107;
    --pgfa-danger: #dc3545;
    --pgfa-gradient: linear-gradient(135deg, var(--pgfa-primary) 0%, var(--pgfa-secondary) 100%);
    --pgfa-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pgfa-radius: 8px;
    --pgfa-radius-lg: 12px;
    --pgfa-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pgfa-bg);
    color: var(--pgfa-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container Classes */
.pgfa-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pgfa-wrapper {
    padding: 1rem 0;
}

/* Header Styles */
.pgfa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pgfa-gradient);
    padding: 1rem 0;
    transition: var(--pgfa-transition);
}

.pgfa-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--pgfa-shadow);
}

.pgfa-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.pgfa-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pgfa-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pgfa-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgfa-text);
    white-space: nowrap;
}

.pgfa-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--pgfa-radius);
    cursor: pointer;
    transition: var(--pgfa-transition);
    text-decoration: none;
    min-height: 36px;
    min-width: 44px;
}

.pgfa-btn-primary {
    background: var(--pgfa-success);
    color: var(--pgfa-text);
}

.pgfa-btn-primary:hover {
    background: #218838;
    transform: scale(1.02);
}

.pgfa-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--pgfa-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pgfa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pgfa-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--pgfa-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pgfa-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgfa-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pgfa-menu-active {
    right: 0;
}

.pgfa-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pgfa-transition);
}

.pgfa-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgfa-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgfa-menu-close {
    background: transparent;
    border: none;
    color: var(--pgfa-text);
    font-size: 2rem;
    cursor: pointer;
}

.pgfa-menu-nav {
    list-style: none;
}

.pgfa-menu-nav li {
    margin-bottom: 0.5rem;
}

.pgfa-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--pgfa-text);
    text-decoration: none;
    border-radius: var(--pgfa-radius);
    transition: var(--pgfa-transition);
}

.pgfa-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Carousel/Slider */
.pgfa-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pgfa-radius-lg);
    margin-bottom: 1.5rem;
}

.pgfa-slides {
    position: relative;
    height: 180px;
}

.pgfa-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgfa-slide-active {
    opacity: 1;
}

.pgfa-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgfa-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pgfa-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pgfa-transition);
}

.pgfa-dot-active {
    background: var(--pgfa-accent);
    transform: scale(1.2);
}

/* Main Content */
.pgfa-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .pgfa-main {
        padding-bottom: 80px;
    }
}

/* Section Styles */
.pgfa-section {
    padding: 1.5rem 0;
}

.pgfa-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgfa-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pgfa-accent);
}

/* Game Grid */
.pgfa-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pgfa-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--pgfa-transition);
}

.pgfa-game-item:hover {
    transform: translateY(-3px);
}

.pgfa-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--pgfa-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: var(--pgfa-shadow);
}

.pgfa-game-name {
    font-size: 1.1rem;
    color: var(--pgfa-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Cards */
.pgfa-card {
    background: var(--pgfa-bg-light);
    border-radius: var(--pgfa-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--pgfa-shadow);
}

.pgfa-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pgfa-accent);
    margin-bottom: 1rem;
}

/* Links */
.pgfa-link {
    color: var(--pgfa-accent);
    text-decoration: none;
    transition: var(--pgfa-transition);
}

.pgfa-link:hover {
    color: var(--pgfa-light);
    text-decoration: underline;
}

/* Promo Button */
.pgfa-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--pgfa-gradient);
    color: var(--pgfa-text);
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--pgfa-radius-lg);
    cursor: pointer;
    transition: var(--pgfa-transition);
    text-decoration: none;
}

.pgfa-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.5);
}

/* Footer */
.pgfa-footer {
    background: var(--pgfa-bg-light);
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pgfa-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pgfa-footer-desc {
    font-size: 1.2rem;
    color: var(--pgfa-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pgfa-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgfa-footer-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pgfa-text);
    text-decoration: none;
    border-radius: var(--pgfa-radius);
    font-size: 1.1rem;
    transition: var(--pgfa-transition);
}

.pgfa-footer-link:hover {
    background: var(--pgfa-accent);
}

.pgfa-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgfa-footer-nav a {
    color: var(--pgfa-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--pgfa-transition);
}

.pgfa-footer-nav a:hover {
    color: var(--pgfa-accent);
}

.pgfa-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pgfa-text-muted);
}

/* Bottom Navigation (Mobile) */
.pgfa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--pgfa-bg-light) 0%, var(--pgfa-bg) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .pgfa-bottom-nav {
        display: none;
    }
}

.pgfa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pgfa-text-muted);
    text-decoration: none;
    transition: var(--pgfa-transition);
    cursor: pointer;
    background: transparent;
    border: none;
}

.pgfa-nav-item:hover,
.pgfa-nav-item-active {
    color: var(--pgfa-accent);
    transform: scale(1.1);
}

.pgfa-nav-item i,
.pgfa-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.pgfa-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Lists */
.pgfa-list {
    list-style: none;
    padding: 0;
}

.pgfa-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgfa-list li:last-child {
    border-bottom: none;
}

/* Tags */
.pgfa-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(100, 149, 237, 0.2);
    color: var(--pgfa-accent);
    font-size: 1.1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Utilities */
.pgfa-text-center {
    text-align: center;
}

.pgfa-mb-1 {
    margin-bottom: 1rem;
}

.pgfa-mb-2 {
    margin-bottom: 2rem;
}

.pgfa-mt-1 {
    margin-top: 1rem;
}

.pgfa-mt-2 {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .pgfa-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgfa-game-icon {
        width: 50px;
        height: 50px;
    }

    .pgfa-game-name {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes pgfa-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pgfa-animate {
    animation: pgfa-fade-in 0.5s ease forwards;
}

/* Partner Logos */
.pgfa-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.pgfa-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: var(--pgfa-transition);
}

.pgfa-partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Stats Grid */
.pgfa-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgfa-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pgfa-radius);
}

.pgfa-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pgfa-accent);
}

.pgfa-stat-label {
    font-size: 1.1rem;
    color: var(--pgfa-text-muted);
}
