/**
 * Juan Bingo - Main Stylesheet
 * Class Prefix: pg6a-
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pg6a-primary: #e63946;
    --pg6a-secondary: #1d3557;
    --pg6a-accent: #f4a261;
    --pg6a-success: #2a9d8f;
    --pg6a-warning: #e9c46a;
    --pg6a-dark: #0d1b2a;
    --pg6a-darker: #070d14;
    --pg6a-light: #f1faee;
    --pg6a-gray: #415a77;
    --pg6a-gray-light: #778da9;
    --pg6a-gradient-primary: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
    --pg6a-gradient-dark: linear-gradient(180deg, #0d1b2a 0%, #1d3557 100%);
    --pg6a-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg6a-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --pg6a-radius: 12px;
    --pg6a-radius-sm: 8px;
    --pg6a-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pg6a-darker);
    color: var(--pg6a-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--pg6a-accent);
    text-decoration: none;
    transition: var(--pg6a-transition);
}

a:hover {
    color: var(--pg6a-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.pg6a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.pg6a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg6a-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    max-width: 430px;
    margin: 0 auto;
}

.pg6a-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg6a-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--pg6a-gradient-primary);
    border-radius: var(--pg6a-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pg6a-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg6a-light);
    background: var(--pg6a-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg6a-header-btns {
    display: flex;
    gap: 8px;
}

.pg6a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--pg6a-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg6a-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg6a-btn-login {
    background: transparent;
    color: var(--pg6a-light);
    border: 1px solid var(--pg6a-gray);
}

.pg6a-btn-login:hover {
    border-color: var(--pg6a-accent);
    color: var(--pg6a-accent);
}

.pg6a-btn-register {
    background: var(--pg6a-gradient-primary);
    color: var(--pg6a-light);
    box-shadow: var(--pg6a-shadow);
}

.pg6a-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg6a-shadow-lg);
}

.pg6a-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pg6a-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.pg6a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg6a-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.pg6a-mobile-menu.pg6a-menu-active {
    right: 0;
}

.pg6a-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: var(--pg6a-transition);
}

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

.pg6a-mobile-menu .pg6a-nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pg6a-light);
    font-size: 16px;
}

.pg6a-mobile-menu .pg6a-nav-link:hover {
    color: var(--pg6a-accent);
}

.pg6a-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--pg6a-light);
    font-size: 28px;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 70px;
}

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

/* Hero Section */
.pg6a-hero {
    background: var(--pg6a-gradient-dark);
    padding: 40px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pg6a-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23e63946" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 80px 80px;
    opacity: 0.3;
}

.pg6a-hero-content {
    position: relative;
    z-index: 1;
}

.pg6a-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pg6a-hero h1 span {
    background: var(--pg6a-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg6a-hero p {
    font-size: 16px;
    color: var(--pg6a-gray-light);
    margin-bottom: 24px;
}

.pg6a-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pg6a-btn-hero {
    padding: 14px 28px;
    font-size: 16px;
}

.pg6a-btn-outline {
    background: transparent;
    border: 2px solid var(--pg6a-primary);
    color: var(--pg6a-primary);
}

.pg6a-btn-outline:hover {
    background: var(--pg6a-primary);
    color: var(--pg6a-light);
}

/* Section Styles */
.pg6a-section {
    padding: 40px 16px;
}

.pg6a-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.pg6a-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pg6a-gradient-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Category Tabs */
.pg6a-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.pg6a-tabs::-webkit-scrollbar {
    display: none;
}

.pg6a-tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--pg6a-dark);
    border: 1px solid var(--pg6a-gray);
    border-radius: 20px;
    color: var(--pg6a-gray-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--pg6a-transition);
}

.pg6a-tab-btn.pg6a-tab-active,
.pg6a-tab-btn:hover {
    background: var(--pg6a-gradient-primary);
    border-color: transparent;
    color: var(--pg6a-light);
}

/* Game Grid */
.pg6a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pg6a-game-card {
    background: var(--pg6a-dark);
    border-radius: var(--pg6a-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pg6a-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pg6a-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg6a-shadow-lg);
    border-color: var(--pg6a-primary);
}

.pg6a-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pg6a-game-name {
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    color: var(--pg6a-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Promotions Section */
.pg6a-promo-card {
    background: var(--pg6a-gradient-dark);
    border-radius: var(--pg6a-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg6a-promo-badge {
    display: inline-block;
    background: var(--pg6a-gradient-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pg6a-promo-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pg6a-promo-desc {
    font-size: 14px;
    color: var(--pg6a-gray-light);
    margin-bottom: 16px;
}

/* FAQ Section */
.pg6a-faq-list {
    max-width: 100%;
}

.pg6a-faq-item {
    background: var(--pg6a-dark);
    border-radius: var(--pg6a-radius);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.pg6a-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.pg6a-faq-question i {
    transition: transform 0.3s ease;
}

.pg6a-faq-item.pg6a-faq-active .pg6a-faq-question i {
    transform: rotate(180deg);
}

.pg6a-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pg6a-faq-item.pg6a-faq-active .pg6a-faq-answer {
    max-height: 300px;
}

.pg6a-faq-answer p {
    padding: 0 16px 16px;
    font-size: 14px;
    color: var(--pg6a-gray-light);
    line-height: 1.7;
}

/* Features Grid */
.pg6a-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pg6a-feature-item {
    background: var(--pg6a-dark);
    padding: 20px;
    border-radius: var(--pg6a-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pg6a-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--pg6a-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.pg6a-feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pg6a-feature-desc {
    font-size: 12px;
    color: var(--pg6a-gray-light);
}

/* Footer */
.pg6a-footer {
    background: var(--pg6a-darker);
    padding: 40px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pg6a-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pg6a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pg6a-footer-links a {
    color: var(--pg6a-gray-light);
    font-size: 13px;
}

.pg6a-footer-links a:hover {
    color: var(--pg6a-accent);
}

.pg6a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pg6a-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: var(--pg6a-transition);
}

.pg6a-partner-logo:hover {
    opacity: 1;
}

.pg6a-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--pg6a-gray);
}

/* Bottom Navigation */
.pg6a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.98) 0%, rgba(7, 13, 20, 1) 100%);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid rgba(230, 57, 70, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.pg6a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px 4px;
    color: var(--pg6a-gray-light);
    cursor: pointer;
    transition: var(--pg6a-transition);
    position: relative;
}

.pg6a-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pg6a-gradient-primary);
    transition: width 0.3s ease;
}

.pg6a-nav-item:hover::before,
.pg6a-nav-item.pg6a-nav-active::before {
    width: 40px;
}

.pg6a-nav-item:hover,
.pg6a-nav-item.pg6a-nav-active {
    color: var(--pg6a-primary);
}

.pg6a-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

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

/* Back to Top */
.pg6a-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--pg6a-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg6a-light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--pg6a-transition);
    z-index: 999;
    box-shadow: var(--pg6a-shadow);
}

.pg6a-back-to-top.pg6a-visible {
    opacity: 1;
    visibility: visible;
}

.pg6a-back-to-top:hover {
    transform: translateY(-4px);
}

/* Toast Notification */
.pg6a-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pg6a-secondary);
    color: var(--pg6a-light);
    padding: 12px 24px;
    border-radius: var(--pg6a-radius);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--pg6a-transition);
    z-index: 10000;
    box-shadow: var(--pg6a-shadow-lg);
}

.pg6a-toast.pg6a-toast-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Help Page Styles */
.pg6a-help-content {
    padding: 20px 16px;
}

.pg6a-help-section {
    margin-bottom: 32px;
}

.pg6a-help-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pg6a-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg6a-help-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 10px;
    color: var(--pg6a-light);
}

.pg6a-help-section p {
    font-size: 14px;
    color: var(--pg6a-gray-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.pg6a-help-section ol,
.pg6a-help-section ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.pg6a-help-section li {
    font-size: 14px;
    color: var(--pg6a-gray-light);
    margin-bottom: 8px;
    line-height: 1.7;
}

.pg6a-help-section ol li {
    list-style: decimal;
}

.pg6a-help-section ul li {
    list-style: disc;
}

.pg6a-tip-box {
    background: rgba(230, 57, 70, 0.1);
    border-left: 3px solid var(--pg6a-primary);
    padding: 16px;
    border-radius: 0 var(--pg6a-radius-sm) var(--pg6a-radius-sm) 0;
    margin: 16px 0;
}

.pg6a-tip-box p {
    margin: 0;
    font-size: 13px;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pg6a-container {
        max-width: 1200px;
    }

    .pg6a-header-inner {
        max-width: 1200px;
    }

    .pg6a-hero h1 {
        font-size: 48px;
    }

    .pg6a-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .pg6a-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .pg6a-bottom-nav {
        display: none;
    }

    .pg6a-menu-toggle {
        display: block;
    }

    .pg6a-section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes pg6a-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg6a-animate {
    animation: pg6a-fadeIn 0.5s ease forwards;
}
