/**
 * ck333.click - Main Stylesheet
 * All classes prefixed with g709-
 */

/* CSS Variables */
:root {
    --g709-primary: #8A2BE2;
    --g709-bg: #0A0A0A;
    --g709-text: #EEEEEE;
    --g709-accent: #FFCC33;
    --g709-gold: #DAA520;
    --g709-light: #DEB887;
    --g709-dark-surface: #1A1A2E;
    --g709-card-bg: #16162A;
    --g709-radius: 8px;
    --g709-shadow: 0 2px 12px rgba(138, 43, 226, 0.25);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--g709-bg);
    color: var(--g709-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}
a { color: var(--g709-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g709-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background: linear-gradient(180deg, #1A1A2E, #0A0A0A);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.g709-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g709-accent);
    letter-spacing: 1px;
}
.g709-logo span { color: var(--g709-primary); }
.g709-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g709-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--g709-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    min-height: 36px;
    min-width: 44px;
    transition: all 0.2s ease;
}
.g709-btn-register {
    background: var(--g709-accent);
    color: #0A0A0A;
}
.g709-btn-register:hover { background: #e6b800; transform: scale(1.03); }
.g709-btn-login {
    background: transparent;
    color: var(--g709-text);
    border: 1px solid var(--g709-primary);
}
.g709-btn-login:hover { background: var(--g709-primary); color: #fff; }
.g709-menu-btn {
    background: none;
    border: none;
    color: var(--g709-text);
    font-size: 2rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop nav - hidden on mobile */
.g709-desktop-nav { display: none; }

/* Mobile Menu Overlay */
.g709-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.g709-overlay-active { display: block; }

/* Mobile Menu Slide-in */
.g709-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--g709-dark-surface);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.g709-menu-open { right: 0; }
.g709-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--g709-text);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}
.g709-mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--g709-text);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
    transition: color 0.2s;
}
.g709-mobile-menu a:hover { color: var(--g709-accent); }

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

/* Carousel */
.g709-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--g709-radius) var(--g709-radius);
}
.g709-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.g709-slide img { width: 100%; height: auto; }
.g709-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.g709-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.g709-dot-active { background: var(--g709-accent); }

/* Section Title */
.g709-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g709-accent);
    margin: 2rem 0 1rem;
    padding: 0 1rem;
    position: relative;
}
.g709-section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1rem;
    width: 40px;
    height: 3px;
    background: var(--g709-primary);
    border-radius: 2px;
}

/* Category Tabs */
.g709-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.g709-tab-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    border: 1px solid var(--g709-primary);
    background: transparent;
    color: var(--g709-text);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
    transition: all 0.2s ease;
    font-family: 'Hind Siliguri', sans-serif;
}
.g709-tab-active {
    background: var(--g709-primary);
    color: #fff;
}

/* Game Grid */
.g709-game-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0 1rem;
}
.g709-game-card {
    background: var(--g709-card-bg);
    border-radius: var(--g709-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.g709-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--g709-shadow);
}
.g709-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.g709-game-card p {
    font-size: 1.1rem;
    padding: 0.4rem 0.2rem 0.6rem;
    color: var(--g709-text);
    line-height: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.g709-content-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    background: var(--g709-dark-surface);
    border-radius: var(--g709-radius);
}
.g709-content-section h2 {
    font-size: 1.6rem;
    color: var(--g709-accent);
    margin-bottom: 1rem;
}
.g709-content-section p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--g709-text);
    margin-bottom: 0.8rem;
}
.g709-content-section ul {
    list-style: none;
    padding: 0;
}
.g709-content-section li {
    padding: 0.5rem 0;
    font-size: 1.3rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.8rem;
}
.g709-content-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--g709-primary);
    font-size: 1.2rem;
}

/* FAQ */
.g709-faq-item { margin-bottom: 0.5rem; }
.g709-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--g709-card-bg);
    border-radius: var(--g709-radius);
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g709-text);
    min-height: 44px;
}
.g709-faq-icon {
    font-size: 1.4rem;
    color: var(--g709-primary);
    transition: transform 0.3s ease;
}
.g709-faq-icon-rotate { transform: rotate(180deg); }
.g709-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--g709-light);
}
.g709-faq-open { max-height: 300px; padding: 1rem; }

/* CTA / Play Button */
.g709-cta-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--g709-primary), #6A1FB2);
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    min-height: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Hind Siliguri', sans-serif;
}
.g709-cta-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5);
}

/* Footer */
.g709-footer {
    background: var(--g709-dark-surface);
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}
.g709-footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g709-accent);
    margin-bottom: 1rem;
}
.g709-footer-brand span { color: var(--g709-primary); }
.g709-footer p {
    font-size: 1.2rem;
    color: var(--g709-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.g709-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}
.g709-footer-links a {
    font-size: 1.1rem;
    color: var(--g709-text);
    padding: 0.3rem 0.6rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
    transition: color 0.2s;
}
.g709-footer-links a:hover { color: var(--g709-accent); }
.g709-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}
.g709-partners span {
    font-size: 1.1rem;
    color: var(--g709-light);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(222, 184, 135, 0.3);
    border-radius: 4px;
}
.g709-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
}

/* Bottom Navigation */
.g709-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1A1A2E, #0F0F1A);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.2rem;
}
.g709-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--g709-light);
    font-size: 1rem;
    cursor: pointer;
    min-width: 60px;
    min-height: 56px;
    transition: color 0.2s ease;
    padding: 0.4rem 0;
    font-family: 'Hind Siliguri', sans-serif;
}
.g709-bottom-btn i,
.g709-bottom-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}
.g709-bottom-btn span { font-size: 1rem; }
.g709-bottom-btn:hover { color: var(--g709-accent); }
.g709-bottom-btn-active { color: var(--g709-accent); }

/* Back to Top */
.g709-back-top {
    position: fixed;
    bottom: 75px;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--g709-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.4);
    transition: transform 0.2s;
}
.g709-back-top:hover { transform: scale(1.1); }

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    .g709-main { padding-bottom: 72px; }
}

/* Desktop: hide bottom nav, show desktop nav */
@media (min-width: 769px) {
    .g709-bottom-nav { display: none; }
    .g709-desktop-nav { display: flex; gap: 1rem; align-items: center; }
    .g709-desktop-nav a { color: var(--g709-text); font-size: 1.2rem; transition: color 0.2s; }
    .g709-desktop-nav a:hover { color: var(--g709-accent); }
    .g709-menu-btn { display: none; }
}
