/**
 * 29JL Casino - Core Stylesheet
 * Prefix: pg2b-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --pg2b-primary: #FFCC33;
    --pg2b-secondary: #FF8000;
    --pg2b-accent: #FF7F50;
    --pg2b-dark: #333333;
    --pg2b-light: #DEB887;
    --pg2b-bg: #1a1a1a;
    --pg2b-text: #ffffff;
    --pg2b-text-muted: #b0b0b0;
    --pg2b-gradient: linear-gradient(135deg, #FF8000, #FFCC33);
    --pg2b-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--pg2b-bg);
    color: var(--pg2b-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header Styles */
.pg2b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pg2b-dark) 0%, rgba(51, 51, 51, 0.95) 100%);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.pg2b-header-scrolled {
    background: rgba(51, 51, 51, 0.98);
    box-shadow: var(--pg2b-shadow);
}

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

.pg2b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg2b-logo img {
    width: 32px;
    height: 32px;
}

.pg2b-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg2b-primary);
}

.pg2b-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 2.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.pg2b-btn-primary {
    background: var(--pg2b-gradient);
    color: var(--pg2b-dark);
}

.pg2b-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 204, 51, 0.4);
}

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

.pg2b-btn-secondary:hover {
    background: var(--pg2b-primary);
    color: var(--pg2b-dark);
}

.pg2b-menu-toggle {
    background: none;
    border: none;
    color: var(--pg2b-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

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

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

.pg2b-mobile-menu ul {
    list-style: none;
}

.pg2b-mobile-menu li {
    margin-bottom: 1rem;
}

.pg2b-mobile-menu a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--pg2b-text);
    font-size: 1.5rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.pg2b-mobile-menu a:hover {
    background: rgba(255, 204, 51, 0.1);
    color: var(--pg2b-primary);
}

.pg2b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Main Content */
.pg2b-main {
    padding-top: 7rem;
}

/* Slider/Carousel */
.pg2b-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.pg2b-slide {
    display: none;
    cursor: pointer;
}

.pg2b-slide:first-child {
    display: block;
}

.pg2b-slide img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.pg2b-slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pg2b-slide-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg2b-indicator-active {
    background: var(--pg2b-primary);
    transform: scale(1.2);
}

/* Section Styles */
.pg2b-section {
    padding: 2rem 0;
}

.pg2b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg2b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg2b-section-subtitle {
    font-size: 1.5rem;
    color: var(--pg2b-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

.pg2b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg2b-game-item:hover {
    transform: scale(1.05);
}

.pg2b-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pg2b-game-item:hover .pg2b-game-img {
    border-color: var(--pg2b-primary);
}

.pg2b-game-name {
    font-size: 1.2rem;
    color: var(--pg2b-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Header */
.pg2b-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pg2b-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pg2b-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg2b-category-title i {
    font-size: 2rem;
}

/* Cards */
.pg2b-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 204, 51, 0.1);
}

.pg2b-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pg2b-primary);
    margin-bottom: 1rem;
}

.pg2b-card-text {
    font-size: 1.4rem;
    color: var(--pg2b-text-muted);
    line-height: 1.6;
}

/* Features Grid */
.pg2b-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pg2b-feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 204, 51, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 204, 51, 0.1);
}

.pg2b-feature-icon {
    font-size: 3rem;
    color: var(--pg2b-primary);
    margin-bottom: 1rem;
}

.pg2b-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg2b-text);
    margin-bottom: 0.5rem;
}

.pg2b-feature-desc {
    font-size: 1.2rem;
    color: var(--pg2b-text-muted);
}

/* Testimonials */
.pg2b-testimonial {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--pg2b-primary);
}

.pg2b-testimonial-text {
    font-size: 1.4rem;
    color: var(--pg2b-text);
    font-style: italic;
    margin-bottom: 1rem;
}

.pg2b-testimonial-author {
    font-size: 1.3rem;
    color: var(--pg2b-primary);
    font-weight: 600;
}

/* Payment Methods */
.pg2b-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pg2b-payment-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    color: var(--pg2b-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.pg2b-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 128, 0, 0.1);
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.pg2b-winner-game {
    font-size: 1.3rem;
    color: var(--pg2b-text);
}

.pg2b-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pg2b-primary);
}

/* Footer */
.pg2b-footer {
    background: var(--pg2b-dark);
    padding: 3rem 1.5rem 8rem;
    border-top: 1px solid rgba(255, 204, 51, 0.1);
}

.pg2b-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.pg2b-footer-desc {
    font-size: 1.4rem;
    color: var(--pg2b-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pg2b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg2b-footer-link {
    font-size: 1.3rem;
    color: var(--pg2b-text);
    padding: 0.5rem 1rem;
    background: rgba(255, 204, 51, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pg2b-footer-link:hover {
    background: var(--pg2b-primary);
    color: var(--pg2b-dark);
}

.pg2b-footer-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

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

/* Bottom Navigation */
.pg2b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--pg2b-dark), #0d0d0d);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 204, 51, 0.2);
    padding-bottom: env(safe-area-inset-bottom);
}

.pg2b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pg2b-text-muted);
}

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

.pg2b-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.pg2b-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Promo Link Styles */
.pg2b-promo-link {
    color: var(--pg2b-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg2b-promo-link:hover {
    color: var(--pg2b-secondary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .pg2b-main {
        padding-bottom: 80px;
    }
}

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

    .pg2b-container {
        max-width: 768px;
    }

    .pg2b-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utility Classes */
.pg2b-text-center {
    text-align: center;
}

.pg2b-text-primary {
    color: var(--pg2b-primary);
}

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

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

.pg2b-hidden {
    display: none;
}
