/**
 * PH365 Pro APK - Main Stylesheet
 * All classes use prefix 'g763-' for namespace isolation
 * Color palette: #DDA0DD | #6A5ACD | #1A1A2E | #800080
 * @version 1.0.0
 */

/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --g763-primary: #800080;
    --g763-secondary: #6A5ACD;
    --g763-accent: #DDA0DD;
    --g763-bg-dark: #1A1A2E;
    --g763-bg-darker: #12121F;
    --g763-text-light: #FFFFFF;
    --g763-text-muted: #B8B8D0;
    --g763-border: rgba(221, 160, 221, 0.2);
    --g763-shadow: rgba(0, 0, 0, 0.3);
    --g763-gradient: linear-gradient(135deg, #800080 0%, #6A5ACD 100%);
    --g763-radius: 8px;
    --g763-radius-lg: 16px;
    --g763-transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--g763-bg-dark);
    color: var(--g763-text-light);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g763-transition);
}

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

/* ========================================
   Layout Components
======================================== */
.g763-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.g763-wrapper {
    padding: 2rem 0;
}

.g763-grid {
    display: grid;
    gap: 1.2rem;
}

.g763-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.g763-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.g763-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Header & Navigation
======================================== */
.g763-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g763-bg-darker) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g763-border);
    transition: var(--g763-transition);
}

.g763-header-scrolled {
    background: rgba(18, 18, 31, 0.98);
    box-shadow: 0 4px 20px var(--g763-shadow);
}

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

.g763-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g763-logo img {
    width: 32px;
    height: 32px;
}

.g763-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--g763-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g763-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g763-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--g763-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g763-transition);
    min-height: 44px;
    min-width: 44px;
}

.g763-btn-primary {
    background: var(--g763-gradient);
    color: var(--g763-text-light);
}

.g763-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 128, 0.4);
}

.g763-btn-secondary {
    background: transparent;
    border: 2px solid var(--g763-accent);
    color: var(--g763-accent);
}

.g763-btn-secondary:hover {
    background: var(--g763-accent);
    color: var(--g763-bg-dark);
}

.g763-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g763-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* ========================================
   Mobile Menu
======================================== */
.g763-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--g763-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

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

.g763-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: var(--g763-transition);
}

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

.g763-nav-list {
    list-style: none;
}

.g763-nav-item {
    margin-bottom: 0.5rem;
}

.g763-nav-link {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--g763-text-light);
    border-radius: var(--g763-radius);
    transition: var(--g763-transition);
}

.g763-nav-link:hover {
    background: rgba(128, 0, 128, 0.2);
    color: var(--g763-accent);
}

/* ========================================
   Carousel/Slider
======================================== */
.g763-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g763-radius-lg);
    margin-bottom: 2rem;
}

.g763-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g763-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.g763-slide-active {
    opacity: 1;
    position: relative;
}

.g763-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.g763-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.g763-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--g763-transition);
}

.g763-dot-active {
    background: var(--g763-accent);
    transform: scale(1.2);
}

/* ========================================
   Game Grid Components
======================================== */
.g763-section {
    padding: 2rem 0;
}

.g763-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g763-accent);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g763-section-title i {
    font-size: 2.4rem;
}

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

.g763-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--g763-transition);
}

.g763-game-item:hover {
    transform: translateY(-4px);
}

.g763-game-item:hover .g763-game-icon {
    box-shadow: 0 8px 25px rgba(128, 0, 128, 0.4);
}

.g763-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g763-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    transition: var(--g763-transition);
}

.g763-game-name {
    font-size: 1.1rem;
    color: var(--g763-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Card Components
======================================== */
.g763-card {
    background: linear-gradient(145deg, rgba(128, 0, 128, 0.1) 0%, rgba(106, 90, 205, 0.1) 100%);
    border: 1px solid var(--g763-border);
    border-radius: var(--g763-radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    transition: var(--g763-transition);
}

.g763-card:hover {
    border-color: var(--g763-accent);
    box-shadow: 0 8px 30px rgba(221, 160, 221, 0.1);
}

.g763-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--g763-accent);
}

.g763-card-content {
    color: var(--g763-text-muted);
    line-height: 1.6;
}

/* ========================================
   Footer
======================================== */
.g763-footer {
    background: var(--g763-bg-darker);
    border-top: 1px solid var(--g763-border);
    padding: 3rem 1.6rem 10rem;
    margin-top: 3rem;
}

.g763-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.g763-footer-desc {
    color: var(--g763-text-muted);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.g763-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.g763-footer-link {
    padding: 0.6rem 1.2rem;
    background: rgba(128, 0, 128, 0.2);
    border-radius: var(--g763-radius);
    font-size: 1.3rem;
    color: var(--g763-accent);
    transition: var(--g763-transition);
}

.g763-footer-link:hover {
    background: var(--g763-primary);
    color: var(--g763-text-light);
}

.g763-footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g763-footer-sitemap a {
    font-size: 1.2rem;
    color: var(--g763-text-muted);
}

.g763-footer-sitemap a:hover {
    color: var(--g763-accent);
}

.g763-copyright {
    text-align: center;
    color: var(--g763-text-muted);
    font-size: 1.2rem;
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.g763-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--g763-bg-darker) 100%);
    border-top: 1px solid var(--g763-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    height: 64px;
}

.g763-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g763-text-muted);
    cursor: pointer;
    transition: var(--g763-transition);
    padding: 0.5rem;
}

.g763-nav-btn:hover,
.g763-nav-btn-active {
    color: var(--g763-accent);
}

.g763-nav-btn:hover .g763-nav-icon,
.g763-nav-btn-active .g763-nav-icon {
    transform: scale(1.1);
}

.g763-nav-icon {
    font-size: 24px;
    margin-bottom: 0.3rem;
    transition: var(--g763-transition);
}

.g763-nav-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Utilities
======================================== */
.g763-text-center {
    text-align: center;
}

.g763-text-gradient {
    background: var(--g763-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g763-mb-1 {
    margin-bottom: 1rem;
}

.g763-mb-2 {
    margin-bottom: 2rem;
}

.g763-mt-2 {
    margin-top: 2rem;
}

.g763-hidden-mobile {
    display: none;
}

.g763-promo-link {
    color: var(--g763-accent);
    font-weight: 600;
    cursor: pointer;
}

.g763-promo-link:hover {
    text-decoration: underline;
}

/* Touch feedback */
.g763-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ========================================
   Desktop Styles
======================================== */
@media (min-width: 769px) {
    .g763-bottom-nav {
        display: none;
    }

    .g763-hidden-mobile {
        display: block;
    }

    .g763-container {
        max-width: 768px;
    }

    .g763-header-inner {
        max-width: 768px;
    }

    .g763-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g763-footer {
        padding-bottom: 3rem;
    }
}

/* ========================================
   Main Content Spacing for Bottom Nav
======================================== */
main {
    padding-top: 70px;
}

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

/* ========================================
   Content Typography
======================================== */
.g763-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g763-accent);
}

.g763-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    color: var(--g763-accent);
}

.g763-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--g763-secondary);
}

.g763-content p {
    margin-bottom: 1rem;
    color: var(--g763-text-muted);
    line-height: 1.6;
}

.g763-content ul,
.g763-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--g763-text-muted);
}

.g763-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Feature List
======================================== */
.g763-feature-list {
    list-style: none;
    padding: 0;
}

.g763-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(128, 0, 128, 0.1);
    border-radius: var(--g763-radius);
    margin-bottom: 0.8rem;
}

.g763-feature-icon {
    font-size: 2rem;
    color: var(--g763-accent);
    flex-shrink: 0;
}

.g763-feature-text {
    flex: 1;
}

/* ========================================
   Testimonials
======================================== */
.g763-testimonial {
    background: linear-gradient(145deg, rgba(106, 90, 205, 0.1) 0%, rgba(221, 160, 221, 0.05) 100%);
    border-left: 4px solid var(--g763-primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 var(--g763-radius) var(--g763-radius) 0;
}

.g763-testimonial-text {
    font-style: italic;
    color: var(--g763-text-muted);
    margin-bottom: 1rem;
}

.g763-testimonial-author {
    font-weight: 600;
    color: var(--g763-accent);
}

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

.g763-payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(128, 0, 128, 0.1);
    border-radius: var(--g763-radius);
    min-width: 80px;
}

.g763-payment-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: var(--g763-accent);
}

.g763-payment-name {
    font-size: 1.2rem;
    color: var(--g763-text-muted);
}

/* ========================================
   Winners Showcase
======================================== */
.g763-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(128, 0, 128, 0.2) 0%, transparent 100%);
    border-radius: var(--g763-radius);
    margin-bottom: 0.8rem;
}

.g763-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g763-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--g763-text-light);
}

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

.g763-winner-name {
    font-weight: 600;
    color: var(--g763-text-light);
}

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

.g763-winner-amount {
    font-weight: 700;
    color: var(--g763-accent);
}
