/* ============================================
   tk333 - Design CSS
   All classes use pga8- prefix
   Color palette: #FFCCCB | #273746 | #BAE1FF | #DB7093 | #FF5722
   Mobile-first design, max-width 430px
   ============================================ */

/* CSS Variables */
:root {
    --pga8-primary: #DB7093;
    --pga8-bg: #273746;
    --pga8-bg-dark: #1a2530;
    --pga8-bg-light: #2f4456;
    --pga8-text: #BAE1FF;
    --pga8-text-light: #FFCCCB;
    --pga8-accent: #FF5722;
    --pga8-accent2: #DB7093;
    --pga8-white: #ffffff;
    --pga8-gold: #FFD700;
    --pga8-border: rgba(186, 225, 255, 0.15);
    --pga8-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pga8-radius: 1.2rem;
    --pga8-radius-sm: 0.8rem;
    --pga8-font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--pga8-font-size);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pga8-bg);
    color: var(--pga8-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--pga8-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul, ol {
    list-style: none;
}

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

.pga8-wrapper {
    width: 100%;
    overflow: hidden;
}

.pga8-grid {
    display: grid;
    gap: 1rem;
}

/* Header */
.pga8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pga8-bg-dark);
    border-bottom: 1px solid var(--pga8-border);
    padding: 0.8rem 1rem;
    transition: box-shadow 0.3s ease;
}

.pga8-header-scrolled {
    box-shadow: var(--pga8-shadow);
}

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

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

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

.pga8-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pga8-accent);
    letter-spacing: 0.5px;
}

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

.pga8-btn-register {
    background: var(--pga8-accent);
    color: var(--pga8-white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.2rem;
    min-width: 6rem;
}

.pga8-btn-register:hover {
    background: #e64a19;
    transform: scale(1.05);
}

.pga8-btn-login {
    background: transparent;
    color: var(--pga8-text);
    border: 1px solid var(--pga8-text);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.2rem;
    min-width: 6rem;
}

.pga8-btn-login:hover {
    border-color: var(--pga8-accent);
    color: var(--pga8-accent);
}

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

/* Mobile Menu */
.pga8-mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--pga8-bg-dark);
    border-bottom: 2px solid var(--pga8-accent);
    padding: 1rem 0;
    max-width: 100%;
}

.pga8-mobile-menu.pga8-menu-active {
    display: block;
}

.pga8-mobile-menu a {
    display: block;
    padding: 1rem 1.6rem;
    color: var(--pga8-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--pga8-border);
    transition: all 0.2s ease;
}

.pga8-mobile-menu a:hover {
    background: var(--pga8-bg-light);
    color: var(--pga8-accent);
    padding-left: 2.2rem;
}

/* Carousel */
.pga8-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--pga8-radius);
    margin-top: 5.5rem;
}

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

.pga8-carousel-slide.pga8-slide-active {
    display: block;
}

.pga8-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--pga8-radius);
}

.pga8-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

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

.pga8-carousel-dot.pga8-dot-active {
    background: var(--pga8-accent);
    width: 20px;
    border-radius: 4px;
}

/* Main Content */
.pga8-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

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

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

.pga8-section-title i,
.pga8-section-title .material-icons {
    font-size: 2rem;
}

/* Game Grid */
.pga8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.pga8-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0.4rem;
    border-radius: var(--pga8-radius-sm);
}

.pga8-game-item:hover {
    transform: scale(1.05);
    background: var(--pga8-bg-light);
}

.pga8-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pga8-radius-sm);
    margin-bottom: 0.3rem;
    object-fit: cover;
}

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

/* Category Label */
.pga8-cat-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pga8-gold);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Card */
.pga8-card {
    background: var(--pga8-bg-light);
    border-radius: var(--pga8-radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--pga8-border);
}

.pga8-card h2 {
    font-size: 1.6rem;
    color: var(--pga8-accent);
    margin-bottom: 1rem;
}

.pga8-card h3 {
    font-size: 1.4rem;
    color: var(--pga8-text-light);
    margin-bottom: 0.8rem;
}

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

/* CTA Button */
.pga8-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pga8-accent), var(--pga8-accent2));
    color: var(--pga8-white);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 2.4rem;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 4.4rem;
    border: none;
    min-width: 20rem;
}

.pga8-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.pga8-cta-wrap {
    text-align: center;
    padding: 1.5rem 0;
}

/* Promo Text Link */
.pga8-promo-link {
    color: var(--pga8-accent);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.pga8-promo-link:hover {
    color: var(--pga8-gold);
}

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

@media (min-width: 769px) {
    .pga8-footer {
        padding-bottom: 2rem;
    }
}

.pga8-footer-brand {
    font-size: 1.3rem;
    color: var(--pga8-text);
    line-height: 1.7rem;
    margin-bottom: 1.5rem;
}

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

.pga8-footer-links a {
    background: var(--pga8-bg-light);
    color: var(--pga8-text-light);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    border: 1px solid var(--pga8-border);
    transition: all 0.2s;
}

.pga8-footer-links a:hover {
    background: var(--pga8-accent);
    color: var(--pga8-white);
    border-color: var(--pga8-accent);
}

.pga8-footer-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pga8-footer-promo button {
    background: var(--pga8-accent);
    color: var(--pga8-white);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 3.6rem;
}

.pga8-footer-promo button:hover {
    background: #e64a19;
    transform: scale(1.03);
}

.pga8-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(186, 225, 255, 0.5);
    padding-top: 1rem;
    border-top: 1px solid var(--pga8-border);
}

/* Bottom Nav */
.pga8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pga8-bg-dark);
    border-top: 2px solid var(--pga8-accent);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 0.3rem;
}

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

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

.pga8-bottom-btn:hover,
.pga8-bottom-btn:focus {
    color: var(--pga8-accent);
    transform: scale(1.1);
}

.pga8-bottom-btn .pga8-nav-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
}

.pga8-bottom-btn .pga8-nav-label {
    font-size: 1rem;
    line-height: 1.2rem;
    white-space: nowrap;
}

.pga8-bottom-btn.pga8-active {
    color: var(--pga8-accent);
}

.pga8-bottom-btn.pga8-active .pga8-nav-icon {
    color: var(--pga8-gold);
}

/* Partner Logos */
.pga8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1rem 0;
}

.pga8-partners span {
    background: var(--pga8-bg-light);
    color: var(--pga8-text);
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--pga8-border);
}

/* Testimonial */
.pga8-testimonial {
    background: var(--pga8-bg-light);
    border-radius: var(--pga8-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pga8-accent);
}

.pga8-testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: var(--pga8-text);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.pga8-testimonial-author {
    font-size: 1.1rem;
    color: var(--pga8-accent2);
    font-weight: 600;
}

/* Winner Display */
.pga8-winner-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--pga8-bg-light);
    border-radius: var(--pga8-radius-sm);
    margin-bottom: 0.6rem;
}

.pga8-winner-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

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

.pga8-winner-name {
    font-size: 1.2rem;
    color: var(--pga8-gold);
    font-weight: 600;
}

.pga8-winner-amount {
    font-size: 1.1rem;
    color: var(--pga8-accent);
}

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

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

/* FAQ */
.pga8-faq-item {
    background: var(--pga8-bg-light);
    border-radius: var(--pga8-radius-sm);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--pga8-border);
}

.pga8-faq-q {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pga8-accent);
    margin-bottom: 0.5rem;
}

.pga8-faq-a {
    font-size: 1.2rem;
    color: var(--pga8-text);
    line-height: 1.6rem;
}

/* Feature List */
.pga8-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--pga8-bg-light);
    border-radius: var(--pga8-radius-sm);
}

.pga8-feature-item i,
.pga8-feature-item .material-icons {
    font-size: 2.2rem;
    color: var(--pga8-accent);
    flex-shrink: 0;
}

.pga8-feature-text h3 {
    font-size: 1.3rem;
    color: var(--pga8-text-light);
    margin-bottom: 0.3rem;
}

.pga8-feature-text p {
    font-size: 1.2rem;
    color: var(--pga8-text);
    line-height: 1.5rem;
}

/* RTP Table */
.pga8-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.pga8-rtp-table th {
    background: var(--pga8-accent);
    color: var(--pga8-white);
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
}

.pga8-rtp-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--pga8-border);
    color: var(--pga8-text);
}

.pga8-rtp-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

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

@media (min-width: 769px) {
    .pga8-container {
        max-width: 430px;
    }
    body {
        background: #1a2530;
    }
    .pga8-main {
        padding-bottom: 2rem;
    }
}

/* Animations */
@keyframes pga8-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pga8-pulse {
    animation: pga8-pulse 2s infinite;
}

@keyframes pga8-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pga8-slide-up {
    animation: pga8-slideUp 0.5s ease-out;
}

/* Utility */
.pga8-text-center { text-align: center; }
.pga8-mt-1 { margin-top: 1rem; }
.pga8-mb-1 { margin-bottom: 1rem; }
.pga8-mt-2 { margin-top: 2rem; }
.pga8-mb-2 { margin-bottom: 2rem; }
.pga8-bold { font-weight: 700; }
.pga8-text-accent { color: var(--pga8-accent); }
.pga8-text-gold { color: var(--pga8-gold); }
