/**
 * Club PH - Main Stylesheet
 * Version: 1.0.0
 * All classes use prefix: pg4d-
 * Color Scheme: #FFE135 (primary) | #0F0F23 (background) | #708090 (text)
 */

/* CSS Variables */
:root {
    --pg4d-primary: #FFE135;
    --pg4d-bg: #0F0F23;
    --pg4d-text: #708090;
    --pg4d-white: #FFFFFF;
    --pg4d-dark: #0A0A1A;
    --pg4d-accent: #FFD700;
    --pg4d-success: #4CAF50;
    --pg4d-gradient: linear-gradient(135deg, #FFE135 0%, #FFA500 100%);
}

/* Reset & Base */
* {
    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(--pg4d-bg);
    color: var(--pg4d-white);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--pg4d-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pg4d-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pg4d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg4d-wrapper {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .pg4d-wrapper {
        padding-bottom: 2rem;
    }
}

/* Header */
.pg4d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(180deg, var(--pg4d-dark) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
}

.pg4d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg4d-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.5rem;
}

.pg4d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg4d-primary);
    letter-spacing: -0.5px;
}

.pg4d-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg4d-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.pg4d-btn-primary {
    background: var(--pg4d-gradient);
    color: var(--pg4d-bg);
}

.pg4d-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 225, 53, 0.4);
}

.pg4d-btn-outline {
    background: transparent;
    border: 2px solid var(--pg4d-primary);
    color: var(--pg4d-primary);
}

.pg4d-btn-outline:hover {
    background: var(--pg4d-primary);
    color: var(--pg4d-bg);
}

/* Hamburger Menu */
.pg4d-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.pg4d-hamburger span {
    width: 2.4rem;
    height: 2px;
    background: var(--pg4d-primary);
    transition: all 0.3s ease;
}

.pg4d-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pg4d-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.pg4d-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.pg4d-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg4d-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.pg4d-menu-active {
    right: 0;
}

.pg4d-mobile-menu ul {
    list-style: none;
}

.pg4d-mobile-menu li {
    margin-bottom: 1.5rem;
}

.pg4d-mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--pg4d-white);
    font-size: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pg4d-mobile-menu a:hover {
    background: rgba(255, 225, 53, 0.1);
    color: var(--pg4d-primary);
}

/* Menu Overlay */
.pg4d-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: all 0.3s ease;
}

.pg4d-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Carousel */
.pg4d-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.pg4d-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pg4d-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.pg4d-slide-active {
    opacity: 1;
}

.pg4d-slide img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.pg4d-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pg4d-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--pg4d-primary);
}

.pg4d-slide-desc {
    font-size: 1.3rem;
    color: var(--pg4d-white);
}

.pg4d-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.pg4d-slide-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--pg4d-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg4d-dot-active {
    background: var(--pg4d-primary);
    transform: scale(1.2);
}

/* Section Styles */
.pg4d-section {
    margin-bottom: 3rem;
}

.pg4d-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pg4d-primary);
    text-align: center;
    position: relative;
}

.pg4d-section-title::after {
    content: '';
    display: block;
    width: 6rem;
    height: 3px;
    background: var(--pg4d-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.pg4d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg4d-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg4d-game-item:hover {
    transform: translateY(-5px);
}

.pg4d-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pg4d-game-item:hover .pg4d-game-icon {
    border-color: var(--pg4d-primary);
}

.pg4d-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg4d-game-name {
    font-size: 1.1rem;
    color: var(--pg4d-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.pg4d-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg4d-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--pg4d-primary);
}

/* Content Card */
.pg4d-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 225, 53, 0.1);
}

.pg4d-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg4d-primary);
    margin-bottom: 1rem;
}

.pg4d-card-content {
    color: var(--pg4d-white);
    line-height: 1.8;
}

.pg4d-card-content p {
    margin-bottom: 1rem;
}

/* Feature List */
.pg4d-feature-list {
    list-style: none;
}

.pg4d-feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 225, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pg4d-feature-list li:last-child {
    border-bottom: none;
}

.pg4d-feature-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--pg4d-primary);
    flex-shrink: 0;
}

/* FAQ Section */
.pg4d-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pg4d-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--pg4d-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg4d-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--pg4d-text);
    line-height: 1.6;
}

/* RTP Display */
.pg4d-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg4d-rtp-item {
    background: rgba(255, 225, 53, 0.05);
    padding: 1.2rem;
    border-radius: 0.8rem;
    text-align: center;
}

.pg4d-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg4d-primary);
}

.pg4d-rtp-label {
    font-size: 1.2rem;
    color: var(--pg4d-text);
}

/* CTA Section */
.pg4d-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 225, 53, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 1.5rem;
    margin: 2rem 0;
}

.pg4d-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pg4d-primary);
    margin-bottom: 1rem;
}

.pg4d-cta-desc {
    color: var(--pg4d-white);
    margin-bottom: 2rem;
}

.pg4d-cta .pg4d-btn {
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
}

/* Footer */
.pg4d-footer {
    background: var(--pg4d-dark);
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 225, 53, 0.1);
}

.pg4d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg4d-footer-links a {
    color: var(--pg4d-text);
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pg4d-footer-links a:hover {
    background: rgba(255, 225, 53, 0.1);
    color: var(--pg4d-primary);
}

.pg4d-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg4d-partners img {
    height: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg4d-partners img:hover {
    opacity: 1;
}

.pg4d-copyright {
    text-align: center;
    color: var(--pg4d-text);
    font-size: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Bottom Navigation */
.pg4d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6.4rem;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.98) 0%, var(--pg4d-dark) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 225, 53, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 769px) {
    .pg4d-bottom-nav {
        display: none;
    }
}

.pg4d-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    color: var(--pg4d-text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.pg4d-nav-btn:hover,
.pg4d-nav-btn-active {
    color: var(--pg4d-primary);
}

.pg4d-nav-btn:active {
    transform: scale(0.95);
}

.pg4d-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.pg4d-nav-btn:hover .pg4d-nav-icon,
.pg4d-nav-btn-active .pg4d-nav-icon {
    transform: scale(1.1);
}

.pg4d-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Promotional Links */
.pg4d-promo-link {
    color: var(--pg4d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg4d-promo-link:hover {
    color: var(--pg4d-accent);
    text-decoration: underline;
}

/* Utility Classes */
.pg4d-text-center {
    text-align: center;
}

.pg4d-mb-1 {
    margin-bottom: 1rem;
}

.pg4d-mb-2 {
    margin-bottom: 2rem;
}

.pg4d-mb-3 {
    margin-bottom: 3rem;
}

.pg4d-mt-2 {
    margin-top: 2rem;
}

.pg4d-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .pg4d-hidden-mobile {
        display: block;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pg4d-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .pg4d-rtp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .pg4d-container {
        max-width: 430px;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .pg4d-header {
        padding: 0 3rem;
    }

    .pg4d-hamburger {
        display: none;
    }

    .pg4d-desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .pg4d-desktop-nav a {
        color: var(--pg4d-white);
        font-size: 1.4rem;
        transition: color 0.3s ease;
    }

    .pg4d-desktop-nav a:hover {
        color: var(--pg4d-primary);
    }

    .pg4d-wrapper {
        padding-top: 8rem;
    }
}
