/**
 * PH 777 Slots CSS Stylesheet
 * All classes use pgac- prefix for namespace isolation
 * Color Palette: #F8F8FF | #F0F8FF | #1A1A2E | #DA70D6 | #4682B4
 */

/* CSS Variables - Color Scheme */
:root {
    --pgac-bg-light: #F8F8FF;
    --pgac-bg-lighter: #F0F8FF;
    --pgac-dark: #1A1A2E;
    --pgac-darker: #0D0D1A;
    --pgac-purple: #DA70D6;
    --pgac-blue: #4682B4;
    --pgac-text: #FFFFFF;
    --pgac-text-dark: #1A1A2E;
    --pgac-text-muted: #8A8A9A;
    --pgac-border: rgba(255, 255, 255, 0.1);
    --pgac-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    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(--pgac-dark);
    color: var(--pgac-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile-First Container */
.pgac-wrapper {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--pgac-dark);
    position: relative;
    overflow-x: hidden;
}

/* Mobile Menu Overlay */
.pgac-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: opacity 0.3s ease, visibility 0.3s ease;
}

.pgac-overlay-open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.pgac-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pgac-menu-open {
    right: 0;
}

.pgac-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--pgac-border);
    background: linear-gradient(90deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
}

.pgac-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgac-text);
}

.pgac-menu-close {
    background: none;
    border: none;
    color: var(--pgac-text);
    cursor: pointer;
    padding: 8px;
}

.pgac-menu-list {
    list-style: none;
    padding: 0;
}

.pgac-menu-item {
    border-bottom: 1px solid var(--pgac-border);
}

.pgac-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--pgac-text);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pgac-menu-link:hover,
.pgac-menu-link.active {
    background-color: rgba(218, 112, 214, 0.2);
    color: var(--pgac-purple);
}

.pgac-menu-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

/* Fixed Header */
.pgac-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(90deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pgac-shadow);
}

.pgac-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgac-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--pgac-bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--pgac-purple);
}

.pgac-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--pgac-text);
}

.pgac-header-actions {
    display: flex;
    gap: 10px;
}

.pgac-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pgac-btn:active {
    transform: scale(0.95);
}

.pgac-btn-primary {
    background: var(--pgac-bg-light);
    color: var(--pgac-purple);
}

.pgac-btn-secondary {
    background: transparent;
    color: var(--pgac-text);
    border: 1px solid var(--pgac-text);
}

.pgac-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pgac-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--pgac-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pgac-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pgac-toggle-active span:nth-child(2) {
    opacity: 0;
}

.pgac-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content Area */
.pgac-main {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero Banner Section */
.pgac-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pgac-dark) 0%, var(--pgac-darker) 100%);
}

.pgac-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.pgac-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pgac-slide-active {
    opacity: 1;
    visibility: visible;
}

.pgac-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgac-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pgac-banner-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pgac-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pgac-banner-dots {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.pgac-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pgac-dot-active {
    background: var(--pgac-purple);
    transform: scale(1.2);
}

/* Container */
.pgac-container {
    padding: 0 12px;
    margin-bottom: 20px;
}

/* Section Styles */
.pgac-section {
    background: var(--pgac-darker);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--pgac-border);
}

.pgac-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pgac-border);
}

.pgac-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgac-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgac-section-title i {
    color: var(--pgac-purple);
}

.pgac-section-more {
    font-size: 12px;
    color: var(--pgac-text-muted);
    cursor: pointer;
}

/* Quick Actions */
.pgac-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pgac-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: linear-gradient(135deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    border: 1px solid var(--pgac-border);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgac-quick-action:active {
    transform: scale(0.95);
}

.pgac-quick-action i {
    font-size: 22px;
    color: var(--pgac-purple);
    margin-bottom: 6px;
}

.pgac-quick-action span {
    font-size: 11px;
    color: var(--pgac-text);
    font-weight: 600;
}

/* Stats Grid */
.pgac-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pgac-stat-item {
    text-align: center;
    padding: 14px 10px;
    background: linear-gradient(135deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    border-radius: 10px;
    border: 1px solid var(--pgac-border);
}

.pgac-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--pgac-purple);
    margin-bottom: 4px;
}

.pgac-stat-label {
    font-size: 11px;
    color: var(--pgac-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Grid */
.pgac-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pgac-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    border-radius: 10px;
    border: 1px solid var(--pgac-border);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pgac-game-card:active {
    transform: scale(0.95);
}

.pgac-game-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
}

.pgac-game-name {
    font-size: 11px;
    color: var(--pgac-text);
    text-align: center;
    font-weight: 600;
}

/* Feature List */
.pgac-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pgac-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--pgac-border);
}

.pgac-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.pgac-feature-icon i {
    font-size: 18px;
    color: var(--pgac-text);
}

.pgac-feature-text {
    flex: 1;
}

.pgac-feature-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pgac-text);
    margin-bottom: 4px;
}

.pgac-feature-desc {
    font-size: 12px;
    color: var(--pgac-text-muted);
    line-height: 1.4;
}

/* RTP Card */
.pgac-rtp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--pgac-border);
}

.pgac-rtp-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.pgac-rtp-icon i {
    font-size: 20px;
    color: var(--pgac-text);
}

.pgac-rtp-info {
    flex: 1;
}

.pgac-rtp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pgac-text);
    margin-bottom: 4px;
}

.pgac-rtp-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--pgac-blue);
}

.pgac-rtp-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.pgac-rtp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* CTA Section */
.pgac-cta-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    border-radius: 16px;
    margin: 20px 12px;
    border: 2px solid var(--pgac-purple);
}

.pgac-cta-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pgac-text);
    margin-bottom: 8px;
}

.pgac-cta-subtitle {
    font-size: 14px;
    color: var(--pgac-text-muted);
    margin-bottom: 20px;
}

.pgac-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--pgac-purple) 0%, var(--pgac-blue) 100%);
    color: var(--pgac-text);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(218, 112, 214, 0.4);
}

.pgac-cta-button:active {
    transform: scale(0.95);
}

/* Footer */
.pgac-footer {
    background: var(--pgac-darker);
    padding: 24px 16px;
    border-top: 1px solid var(--pgac-border);
}

.pgac-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.pgac-footer-link {
    padding: 8px 14px;
    background: rgba(218, 112, 214, 0.15);
    border: 1px solid var(--pgac-purple);
    border-radius: 20px;
    color: var(--pgac-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.pgac-footer-link:hover {
    background: var(--pgac-purple);
}

.pgac-footer-partners {
    margin-bottom: 20px;
}

.pgac-partners-title {
    text-align: center;
    font-size: 12px;
    color: var(--pgac-text-muted);
    margin-bottom: 12px;
}

.pgac-partners-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pgac-partner-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgac-partner-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pgac-footer-copy {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--pgac-border);
}

.pgac-footer-copy p {
    font-size: 12px;
    color: var(--pgac-text-muted);
    margin-bottom: 4px;
}

.pgac-text-sm {
    font-size: 10px;
}

.pgac-text-muted {
    color: var(--pgac-text-muted);
}

.pgac-text-highlight {
    color: var(--pgac-purple);
    font-weight: 700;
}

/* Bottom Navigation */
.pgac-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 62px;
    background: linear-gradient(180deg, var(--pgac-darker) 0%, var(--pgac-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
    border-top: 1px solid var(--pgac-border);
    box-shadow: 0 -2px 10px var(--pgac-shadow);
}

.pgac-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-width: 60px;
}

.pgac-nav-item:active {
    transform: scale(0.9);
}

.pgac-nav-item.active .pgac-nav-icon {
    color: var(--pgac-purple);
}

.pgac-nav-item.active .pgac-nav-text {
    color: var(--pgac-purple);
}

.pgac-nav-icon {
    font-size: 22px;
    color: var(--pgac-text-muted);
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.pgac-nav-text {
    font-size: 10px;
    color: var(--pgac-text-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

/* FAQ Styles */
.pgac-faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--pgac-border);
    border-radius: 10px;
    overflow: hidden;
}

.pgac-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgac-text);
    transition: background-color 0.2s ease;
}

.pgac-faq-question:hover {
    background: rgba(218, 112, 214, 0.1);
}

.pgac-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.pgac-faq-answer.open {
    max-height: 300px;
    padding: 14px;
}

.pgac-faq-answer p {
    font-size: 13px;
    color: var(--pgac-text-muted);
    line-height: 1.6;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
    .pgac-wrapper {
        max-width: 100%;
    }

    .pgac-header {
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .pgac-bottom-nav {
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .pgac-menu-toggle {
        display: none;
    }
}
