/* tg7778 Main Stylesheet - Prefix: pgaf- */
/* Color Palette: #0A0A0A (bg), #DDA0DD (accent), #ADB5BD (text), #A0522D (secondary), #FF0000 (alert), #FF6347 (cta) */

:root {
    --pgaf-primary: #DDA0DD;
    --pgaf-bg: #0A0A0A;
    --pgaf-bg-card: #1a1a1a;
    --pgaf-bg-card-alt: #222;
    --pgaf-text: #ADB5BD;
    --pgaf-text-light: #e0e0e0;
    --pgaf-secondary: #A0522D;
    --pgaf-accent: #FF6347;
    --pgaf-alert: #FF0000;
    --pgaf-gold: #FFD700;
    --pgaf-border: #333;
    --pgaf-radius: 8px;
    --pgaf-radius-lg: 12px;
    --pgaf-shadow: 0 2px 12px rgba(0,0,0,0.5);
    --pgaf-header-h: 56px;
    --pgaf-bottom-h: 60px;
    --pgaf-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--pgaf-font);
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: var(--pgaf-text);
    background: var(--pgaf-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--pgaf-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* === HEADER === */
.pgaf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--pgaf-header-h);
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--pgaf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    max-width: 100vw;
    overflow-x: hidden;
}

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

.pgaf-logo-wrap img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pgaf-logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--pgaf-primary);
    letter-spacing: 0.5px;
}

.pgaf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgaf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: var(--pgaf-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    min-height: 36px;
    min-width: 44px;
}

.pgaf-btn-register {
    background: linear-gradient(135deg, var(--pgaf-accent), var(--pgaf-alert));
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,99,71,0.4);
}

.pgaf-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,99,71,0.6);
}

.pgaf-btn-login {
    background: transparent;
    border: 1.5px solid var(--pgaf-primary);
    color: var(--pgaf-primary);
}

.pgaf-btn-login:hover {
    background: rgba(221,160,221,0.1);
}

.pgaf-menu-toggle {
    background: none;
    border: none;
    color: var(--pgaf-text-light);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 1;
}

/* === MOBILE MENU === */
.pgaf-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;
}

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

.pgaf-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #111;
    z-index: 9999;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: 2rem 0;
    border-left: 1px solid var(--pgaf-border);
}

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

.pgaf-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--pgaf-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgaf-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.pgaf-menu-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    color: var(--pgaf-text-light);
    font-size: 1.4rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pgaf-menu-list li a:hover {
    background: rgba(221,160,221,0.08);
    color: var(--pgaf-primary);
}

.pgaf-menu-list li a i,
.pgaf-menu-list li a span.material-symbols-outlined {
    font-size: 2rem;
    width: 24px;
    text-align: center;
}

/* === MAIN CONTENT === */
.pgaf-main {
    padding-top: var(--pgaf-header-h);
    min-height: 100vh;
}

/* === CAROUSEL === */
.pgaf-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.pgaf-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.pgaf-slide img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
}

.pgaf-slide-active { display: block; }

.pgaf-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pgaf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.pgaf-dot-active {
    background: var(--pgaf-primary);
    transform: scale(1.3);
}

/* === SECTION === */
.pgaf-section {
    padding: 2rem 1.2rem;
}

.pgaf-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgaf-text-light);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--pgaf-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgaf-section-title i {
    color: var(--pgaf-primary);
    font-size: 2rem;
}

/* === GAME GRID === */
.pgaf-game-section {
    margin-bottom: 2rem;
}

.pgaf-game-cat-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgaf-primary);
    margin: 1.4rem 0 1rem;
    padding-left: 0.4rem;
    border-left: 3px solid var(--pgaf-accent);
}

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

.pgaf-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    background: var(--pgaf-bg-card);
    border-radius: var(--pgaf-radius);
    padding: 0.6rem 0.3rem;
    border: 1px solid transparent;
}

.pgaf-game-item:hover {
    transform: translateY(-2px);
    border-color: var(--pgaf-border);
}

.pgaf-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    object-fit: cover;
}

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

/* === CONTENT CARDS === */
.pgaf-card {
    background: var(--pgaf-bg-card);
    border-radius: var(--pgaf-radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.4rem;
    border: 1px solid var(--pgaf-border);
}

.pgaf-card h2 {
    font-size: 1.7rem;
    color: var(--pgaf-text-light);
    margin-bottom: 1rem;
}

.pgaf-card h3 {
    font-size: 1.4rem;
    color: var(--pgaf-primary);
    margin: 0.8rem 0 0.4rem;
}

.pgaf-card p {
    font-size: 1.35rem;
    line-height: 2.2rem;
    color: var(--pgaf-text);
    margin-bottom: 0.8rem;
}

.pgaf-card ul {
    padding-left: 1.6rem;
    margin-bottom: 0.8rem;
}

.pgaf-card li {
    font-size: 1.3rem;
    line-height: 2rem;
    color: var(--pgaf-text);
    margin-bottom: 0.3rem;
}

/* === CTA BUTTONS === */
.pgaf-cta-wrap {
    text-align: center;
    padding: 2rem 1rem;
}

.pgaf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--pgaf-accent), var(--pgaf-alert));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,99,71,0.5);
    transition: all 0.3s;
}

.pgaf-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255,99,71,0.7);
}

.pgaf-cta-btn i { font-size: 1.8rem; }

/* === PROMO TEXT LINK === */
.pgaf-promo-link {
    color: var(--pgaf-accent);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.pgaf-promo-link:hover { color: var(--pgaf-primary); }

/* === FOOTER === */
.pgaf-footer {
    background: #0d0d0d;
    border-top: 1px solid var(--pgaf-border);
    padding: 2rem 1.2rem 1rem;
    margin-top: 2rem;
}

.pgaf-footer-brand {
    font-size: 1.3rem;
    color: var(--pgaf-text);
    line-height: 2rem;
    margin-bottom: 1.2rem;
}

.pgaf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.pgaf-footer-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--pgaf-bg-card);
    border-radius: 4px;
    font-size: 1.2rem;
    color: var(--pgaf-text-light);
    border: 1px solid var(--pgaf-border);
    transition: all 0.2s;
}

.pgaf-footer-link:hover {
    border-color: var(--pgaf-primary);
    color: var(--pgaf-primary);
}

.pgaf-footer-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.pgaf-footer-promo-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--pgaf-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--pgaf-accent);
    background: transparent;
    color: var(--pgaf-accent);
    transition: all 0.2s;
}

.pgaf-footer-promo-btn:hover {
    background: var(--pgaf-accent);
    color: #fff;
}

.pgaf-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

/* === BOTTOM NAV === */
.pgaf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--pgaf-bottom-h);
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border-top: 1px solid var(--pgaf-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.3rem;
    max-width: 100vw;
    overflow-x: hidden;
}

.pgaf-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: none;
    border: none;
    color: var(--pgaf-text);
    cursor: pointer;
    transition: all 0.25s;
    padding: 0.3rem;
    position: relative;
}

.pgaf-bottom-btn i,
.pgaf-bottom-btn .material-symbols-outlined {
    font-size: 22px;
    margin-bottom: 2px;
    transition: all 0.25s;
}

.pgaf-bottom-btn span.pgaf-bottom-label {
    font-size: 1rem;
    line-height: 1.2;
}

.pgaf-bottom-btn:hover,
.pgaf-bottom-active {
    color: var(--pgaf-primary);
}

.pgaf-bottom-btn:hover i,
.pgaf-bottom-active i,
.pgaf-bottom-btn:hover .material-symbols-outlined,
.pgaf-bottom-active .material-symbols-outlined {
    transform: scale(1.15);
    color: var(--pgaf-primary);
}

.pgaf-bottom-active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--pgaf-primary);
    border-radius: 2px;
}

/* === WINNER MARQUEE === */
.pgaf-winners {
    background: var(--pgaf-bg-card);
    border-radius: var(--pgaf-radius);
    padding: 1rem;
    overflow: hidden;
}

.pgaf-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1.2rem;
}

.pgaf-winner-name {
    color: var(--pgaf-primary);
    font-weight: 600;
}

.pgaf-winner-amount {
    color: var(--pgaf-gold);
    font-weight: 700;
}

/* === TESTIMONIALS === */
.pgaf-testimonial {
    background: var(--pgaf-bg-card);
    border-radius: var(--pgaf-radius-lg);
    padding: 1.4rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pgaf-primary);
}

.pgaf-testimonial-user {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pgaf-primary);
    margin-bottom: 0.4rem;
}

.pgaf-testimonial-text {
    font-size: 1.25rem;
    line-height: 2rem;
    color: var(--pgaf-text);
    font-style: italic;
}

/* === PAYMENT GRID === */
.pgaf-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.pgaf-payment-item {
    background: var(--pgaf-bg-card-alt);
    border-radius: var(--pgaf-radius);
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    color: var(--pgaf-text-light);
    border: 1px solid var(--pgaf-border);
}

/* === RTP TABLE === */
.pgaf-rtp-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
    display: block;
    overflow-x: auto;
}

.pgaf-rtp-table th {
    background: var(--pgaf-bg-card-alt);
    color: var(--pgaf-primary);
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--pgaf-border);
}

.pgaf-rtp-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--pgaf-text);
}

.pgaf-rtp-high { color: #4CAF50; font-weight: 700; }
.pgaf-rtp-mid { color: var(--pgaf-gold); font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .pgaf-main {
        padding-bottom: 80px;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* === OVERFLOW PREVENTION === */
table { max-width: 100%; display: block; overflow-x: auto; }
pre, code { max-width: 100%; overflow-x: auto; }
.pgaf-section { max-width: 100%; overflow-x: hidden; }
.pgaf-card { max-width: 100%; overflow-x: hidden; }

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

    .pgaf-header {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    .pgaf-main {
        max-width: 430px;
        margin: 0 auto;
    }

    .pgaf-mobile-menu {
        max-width: 430px;
        right: auto;
        left: 50%;
        transform: translateX(430px);
    }

    .pgaf-menu-active {
        right: auto;
        left: 50%;
        transform: translateX(150px);
    }

    .pgaf-footer {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }
}
