/**
 * Table Game PH - Main Stylesheet
 * All classes use prefix "pgd6-" for namespace isolation
 * Website: tablegameph.sbs
 * Color Palette: #1A1A2E | #3B82F6 | #F59E0B | #FFFFFF | #10B981
 */

/* CSS Variables */
:root {
    --pgd6-bg-primary: #1A1A2E;
    --pgd6-bg-secondary: #252538;
    --pgd6-bg-card: #2D2D44;
    --pgd6-accent-blue: #3B82F6;
    --pgd6-accent-orange: #F59E0B;
    --pgd6-text-white: #FFFFFF;
    --pgd6-text-light: #F3F4F6;
    --pgd6-text-muted: #9CA3AF;
    --pgd6-border-color: #374151;
    --pgd6-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%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--pgd6-bg-primary);
    color: var(--pgd6-text-white);
    line-height: 1.5;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--pgd6-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pgd6-accent-orange);
}

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

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

/* Header */
.pgd6-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pgd6-bg-primary) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--pgd6-border-color);
}

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

.pgd6-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgd6-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pgd6-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd6-text-white);
    background: linear-gradient(90deg, var(--pgd6-accent-blue), var(--pgd6-accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Buttons */
.pgd6-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pgd6-btn-primary {
    background: linear-gradient(135deg, var(--pgd6-accent-blue), var(--pgd6-accent-orange));
    color: var(--pgd6-text-white);
}

.pgd6-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.pgd6-btn-outline {
    background: transparent;
    border: 2px solid var(--pgd6-accent-blue);
    color: var(--pgd6-accent-blue);
}

.pgd6-btn-outline:hover {
    background: var(--pgd6-accent-blue);
    color: var(--pgd6-text-white);
}

/* Hamburger Menu */
.pgd6-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.pgd6-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--pgd6-text-white);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pgd6-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.pgd6-mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pgd6-mobile-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--pgd6-text-white);
    transition: color 0.3s ease;
}

.pgd6-mobile-menu a:hover {
    color: var(--pgd6-accent-orange);
}

.pgd6-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.4rem;
    color: var(--pgd6-text-white);
    cursor: pointer;
}

/* Menu Overlay */
.pgd6-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Main Content */
main {
    padding-top: 60px;
    padding-bottom: 1rem;
}

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

/* Carousel */
.pgd6-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.pgd6-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pgd6-slide {
    min-width: 100%;
    cursor: pointer;
    position: relative;
}

.pgd6-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 1rem;
}

.pgd6-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pgd6-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd6-text-white);
    margin-bottom: 0.5rem;
}

.pgd6-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pgd6-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pgd6-border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Section Titles */
.pgd6-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgd6-text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgd6-section-title i {
    color: var(--pgd6-accent-orange);
}

/* Game Grid */
.pgd6-game-section {
    margin-bottom: 2rem;
}

.pgd6-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pgd6-game-item {
    background: var(--pgd6-bg-card);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pgd6-border-color);
}

.pgd6-game-item:hover {
    transform: translateY(-3px);
    border-color: var(--pgd6-accent-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

.pgd6-game-name {
    padding: 0.6rem 0.4rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--pgd6-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Cards */
.pgd6-info-card {
    background: var(--pgd6-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pgd6-border-color);
}

.pgd6-info-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd6-text-white);
    margin-bottom: 1rem;
}

.pgd6-info-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgd6-accent-blue);
    margin: 1rem 0 0.5rem;
}

.pgd6-info-card p {
    font-size: 1.3rem;
    color: var(--pgd6-text-muted);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.pgd6-info-card ul {
    list-style: none;
    padding-left: 0;
}

.pgd6-info-card li {
    font-size: 1.3rem;
    color: var(--pgd6-text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pgd6-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--pgd6-accent-orange);
    border-radius: 50%;
}

/* Promotional CTA */
.pgd6-promo-cta {
    background: linear-gradient(135deg, var(--pgd6-accent-blue), var(--pgd6-accent-orange));
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pgd6-promo-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgd6-text-white);
    margin-bottom: 0.5rem;
}

.pgd6-promo-cta p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.pgd6-promo-cta .pgd6-btn {
    background: var(--pgd6-text-white);
    color: var(--pgd6-bg-primary);
    font-size: 1.4rem;
    padding: 1rem 2.5rem;
}

/* Payment Grid */
.pgd6-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.pgd6-payment-item {
    background: var(--pgd6-bg-secondary);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd6-payment-item:hover {
    background: var(--pgd6-bg-primary);
    border-color: var(--pgd6-accent-blue);
}

.pgd6-payment-item i {
    font-size: 2.4rem;
    color: var(--pgd6-accent-orange);
    margin-bottom: 0.5rem;
}

.pgd6-payment-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--pgd6-text-light);
}

/* Features */
.pgd6-features {
    background: var(--pgd6-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pgd6-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgd6-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--pgd6-bg-secondary);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd6-feature-item:hover {
    background: var(--pgd6-bg-primary);
    border-color: var(--pgd6-accent-blue);
}

.pgd6-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pgd6-accent-blue), var(--pgd6-accent-orange));
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--pgd6-text-white);
}

.pgd6-feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd6-text-light);
    margin-bottom: 0.2rem;
}

.pgd6-feature-text p {
    font-size: 1rem;
    color: var(--pgd6-text-muted);
}

/* Footer */
.pgd6-footer {
    background: var(--pgd6-bg-secondary);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--pgd6-border-color);
}

.pgd6-footer-content {
    padding: 0 1.2rem;
}

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

.pgd6-footer-brand p {
    font-size: 1.2rem;
    color: var(--pgd6-text-muted);
    line-height: 1.8;
    margin-top: 0.8rem;
}

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

.pgd6-footer-links a {
    font-size: 1.1rem;
    color: var(--pgd6-text-muted);
    padding: 0.4rem 0.8rem;
    background: var(--pgd6-bg-card);
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.pgd6-footer-links a:hover {
    color: var(--pgd6-accent-orange);
    background: var(--pgd6-bg-primary);
}

.pgd6-footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--pgd6-border-color);
}

.pgd6-footer-copyright p {
    font-size: 1.1rem;
    color: var(--pgd6-text-muted);
}

/* Bottom Navigation */
.pgd6-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(37, 37, 56, 0.98) 0%, rgba(26, 26, 46, 1) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid var(--pgd6-border-color);
}

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

.pgd6-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(--pgd6-text-muted);
    text-decoration: none;
}

.pgd6-nav-item:hover,
.pgd6-nav-item.active {
    color: var(--pgd6-accent-orange);
}

.pgd6-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

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

.pgd6-nav-item.active {
    background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.1));
}

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

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

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

.pgd6-hidden {
    display: none;
}

/* Internal Links */
.pgd6-internal-link {
    color: var(--pgd6-accent-blue);
    text-decoration: underline;
}

.pgd6-internal-link:hover {
    color: var(--pgd6-accent-orange);
}

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

    .pgd6-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Steps List */
.pgd6-steps-list {
    counter-reset: step;
}

.pgd6-step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: var(--pgd6-bg-card);
    border-radius: 0.8rem;
}

.pgd6-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--pgd6-accent-blue), var(--pgd6-accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pgd6-text-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pgd6-step-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pgd6-text-light);
    margin-bottom: 0.3rem;
}

.pgd6-step-content p {
    font-size: 1.2rem;
    color: var(--pgd6-text-muted);
    line-height: 1.6;
}

/* FAQ Styles */
.pgd6-faq-item {
    background: var(--pgd6-bg-card);
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.pgd6-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pgd6-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgd6-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--pgd6-text-muted);
    line-height: 1.8;
}

/* Winners Grid */
.pgd6-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.pgd6-winner-item {
    background: var(--pgd6-bg-card);
    border-radius: 0.8rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd6-winner-item:hover {
    background: var(--pgd6-bg-secondary);
}

.pgd6-winner-game {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.pgd6-winner-info {
    flex: 1;
}

.pgd6-winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd6-text-light);
}

.pgd6-winner-amount {
    font-size: 1.1rem;
    color: var(--pgd6-accent-orange);
    font-weight: 700;
}
