/**
 * Winbeat - Core Stylesheet
 * Class prefix: pga7-
 */

:root {
    --pga7-primary: #8FBC8F;
    --pga7-accent: #ADFF2F;
    --pga7-light: #98FB98;
    --pga7-dark: #2E4057;
    --pga7-bg: #1a2a3a;
    --pga7-bg-card: #243447;
    --pga7-text: #e8f5e8;
    --pga7-text-muted: #a0b8a0;
    --pga7-border: #3a5a6a;
    --pga7-gold: #FFD700;
    --pga7-danger: #ff6b6b;
    --pga7-radius: 8px;
    --pga7-radius-lg: 12px;
    --pga7-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pga7-transition: all 0.3s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--pga7-bg);
    color: var(--pga7-text);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.pga7-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--pga7-dark), #1a3045);
    padding: 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 2px solid var(--pga7-primary);
    box-shadow: var(--pga7-shadow);
}

.pga7-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pga7-header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pga7-header-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pga7-accent);
    letter-spacing: 0.5px;
}

.pga7-header-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pga7-header-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pga7-transition);
}

.pga7-btn-login {
    background: transparent;
    color: var(--pga7-light);
    border: 1px solid var(--pga7-primary);
}

.pga7-btn-login:hover {
    background: var(--pga7-primary);
    color: var(--pga7-dark);
}

.pga7-btn-register {
    background: linear-gradient(135deg, var(--pga7-accent), var(--pga7-primary));
    color: var(--pga7-dark);
    font-weight: 700;
}

.pga7-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(173, 255, 47, 0.4);
}

/* ========== MOBILE MENU ========== */
.pga7-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pga7-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.pga7-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--pga7-dark), #0f1f2f);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.pga7-menu-open {
    right: 0;
}

.pga7-menu-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.pga7-menu-close button {
    background: none;
    border: none;
    color: var(--pga7-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.pga7-menu-links {
    list-style: none;
}

.pga7-menu-links li {
    border-bottom: 1px solid var(--pga7-border);
}

.pga7-menu-links a {
    display: block;
    padding: 12px 0;
    color: var(--pga7-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--pga7-transition);
}

.pga7-menu-links a:hover {
    color: var(--pga7-accent);
    padding-left: 8px;
}

/* ========== MAIN CONTENT ========== */
main {
    padding-top: 56px;
}

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

.pga7-section {
    padding: 20px 12px;
}

.pga7-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pga7-accent);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--pga7-accent);
}

/* ========== CAROUSEL ========== */
.pga7-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pga7-radius-lg);
    margin: 8px 12px;
}

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

.pga7-carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.pga7-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--pga7-radius-lg);
}

/* ========== CATEGORY TABS ========== */
.pga7-cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
}

.pga7-cat-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--pga7-bg-card);
    color: var(--pga7-text-muted);
    border: 1px solid var(--pga7-border);
    transition: var(--pga7-transition);
    white-space: nowrap;
}

.pga7-tab-active {
    background: linear-gradient(135deg, var(--pga7-primary), #6aae6a);
    color: #fff;
    border-color: var(--pga7-primary);
}

/* ========== GAME GRID ========== */
.pga7-cat-content {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 12px;
}

.pga7-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--pga7-transition);
    padding: 6px;
    border-radius: var(--pga7-radius);
}

.pga7-game-item:hover {
    background: var(--pga7-bg-card);
    transform: translateY(-2px);
}

.pga7-game-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--pga7-radius);
    margin-bottom: 4px;
    border: 2px solid var(--pga7-border);
    object-fit: cover;
}

.pga7-game-item span {
    font-size: 1.1rem;
    color: var(--pga7-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PROMO BUTTON ========== */
.pga7-promo-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--pga7-accent), #7ccf3c);
    color: var(--pga7-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--pga7-transition);
    text-decoration: none;
    text-align: center;
}

.pga7-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(173, 255, 47, 0.5);
}

.pga7-glow {
    animation: pga7Glow 2s ease-in-out infinite alternate;
}

@keyframes pga7Glow {
    from { box-shadow: 0 0 10px rgba(173, 255, 47, 0.3); }
    to { box-shadow: 0 0 25px rgba(173, 255, 47, 0.6); }
}

/* ========== CARDS ========== */
.pga7-card {
    background: var(--pga7-bg-card);
    border-radius: var(--pga7-radius-lg);
    padding: 16px;
    margin: 10px 12px;
    border: 1px solid var(--pga7-border);
}

.pga7-card h3 {
    font-size: 1.6rem;
    color: var(--pga7-accent);
    margin-bottom: 8px;
}

.pga7-card p {
    font-size: 1.3rem;
    color: var(--pga7-text);
    line-height: 1.7;
}

.pga7-card ul {
    list-style: none;
    padding: 0;
}

.pga7-card ul li {
    padding: 6px 0;
    font-size: 1.3rem;
    color: var(--pga7-text);
    padding-left: 18px;
    position: relative;
}

.pga7-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pga7-primary);
}

/* ========== FOOTER ========== */
.pga7-footer {
    background: linear-gradient(180deg, var(--pga7-dark), #0a1520);
    padding: 24px 12px;
    border-top: 2px solid var(--pga7-primary);
}

.pga7-footer-brand {
    text-align: center;
    margin-bottom: 16px;
}

.pga7-footer-brand p {
    font-size: 1.2rem;
    color: var(--pga7-text-muted);
    line-height: 1.6;
}

.pga7-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
}

.pga7-footer-links a {
    color: var(--pga7-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(143, 188, 143, 0.1);
    transition: var(--pga7-transition);
}

.pga7-footer-links a:hover {
    background: rgba(143, 188, 143, 0.3);
    color: var(--pga7-accent);
}

.pga7-footer-copy {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pga7-text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--pga7-border);
}

/* ========== BOTTOM NAV ========== */
.pga7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, var(--pga7-dark), #0a1520);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--pga7-primary);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.pga7-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(--pga7-text-muted);
    cursor: pointer;
    transition: var(--pga7-transition);
    padding: 4px;
    border-radius: 8px;
}

.pga7-bottom-btn:hover,
.pga7-bottom-btn:focus {
    color: var(--pga7-accent);
    background: rgba(173, 255, 47, 0.1);
}

.pga7-bottom-btn .pga7-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.pga7-bottom-btn .pga7-nav-label {
    font-size: 1rem;
    white-space: nowrap;
}

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

/* ========== FAQ ========== */
.pga7-faq-item {
    margin-bottom: 10px;
}

.pga7-faq-q {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pga7-accent);
    margin-bottom: 4px;
}

.pga7-faq-a {
    font-size: 1.3rem;
    color: var(--pga7-text);
    line-height: 1.6;
    padding-left: 12px;
    border-left: 2px solid var(--pga7-primary);
}

/* ========== UTILITY ========== */
.pga7-text-center { text-align: center; }
.pga7-mt-10 { margin-top: 10px; }
.pga7-mb-10 { margin-bottom: 10px; }
.pga7-mb-20 { margin-bottom: 20px; }
.pga7-mx-12 { margin-left: 12px; margin-right: 12px; }

.pga7-internal-link {
    color: var(--pga7-light);
    text-decoration: underline;
    transition: var(--pga7-transition);
}

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

/* ========== WINNERS TICKER ========== */
.pga7-winners-ticker {
    overflow: hidden;
    padding: 8px 0;
}

.pga7-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(143, 188, 143, 0.1);
    font-size: 1.2rem;
}

.pga7-winner-name {
    color: var(--pga7-light);
}

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

.pga7-winner-game {
    color: var(--pga7-text-muted);
    font-size: 1.1rem;
}
