/**
 * Super PH APK - Theme Stylesheet
 * Website: superphapk.cfd
 * Prefix: gf88-
 * Color Palette: #1B263B | #8B7355 | #00FF7F | #7FFF00 | #CD853F
 * Version: 1.0.0
 */

/* ============================================
   CSS VARIABLES & ROOT SETTINGS
   ============================================ */
:root {
    --gf88-bg-primary: #1B263B;
    --gf88-bg-secondary: #0d1421;
    --gf88-bg-tertiary: #162032;
    --gf88-accent-brown: #8B7355;
    --gf88-accent-green: #00FF7F;
    --gf88-accent-lime: #7FFF00;
    --gf88-accent-gold: #CD853F;
    --gf88-text-primary: #ffffff;
    --gf88-text-secondary: #b8c5d6;
    --gf88-text-muted: #6b7d94;
    --gf88-border-color: rgba(139, 115, 85, 0.3);
    --gf88-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gf88-radius: 8px;
    --gf88-radius-lg: 16px;
    --gf88-transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gf88-bg-primary);
    color: var(--gf88-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.gf88-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--gf88-bg-primary) 0%, rgba(27, 38, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gf88-border-color);
    transition: var(--gf88-transition);
}

.gf88-header.gf88-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    box-shadow: var(--gf88-shadow);
}

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

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

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

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

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

.gf88-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--gf88-radius);
    cursor: pointer;
    border: none;
    transition: var(--gf88-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gf88-btn-primary {
    background: linear-gradient(135deg, var(--gf88-accent-green) 0%, var(--gf88-accent-lime) 100%);
    color: var(--gf88-bg-primary);
}

.gf88-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

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

.gf88-btn-secondary:hover {
    background: var(--gf88-accent-gold);
    color: var(--gf88-bg-primary);
}

.gf88-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.gf88-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gf88-text-primary);
    transition: var(--gf88-transition);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.gf88-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(--gf88-transition);
}

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

.gf88-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--gf88-bg-secondary);
    z-index: 9999;
    padding: 2rem;
    transition: var(--gf88-transition);
    overflow-y: auto;
}

.gf88-mobile-menu.gf88-menu-active {
    right: 0;
}

.gf88-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gf88-border-color);
}

.gf88-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gf88-bg-tertiary);
    border-radius: 50%;
    color: var(--gf88-text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.gf88-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gf88-menu-link {
    display: block;
    padding: 1.2rem 1rem;
    font-size: 1.4rem;
    color: var(--gf88-text-secondary);
    border-radius: var(--gf88-radius);
    transition: var(--gf88-transition);
}

.gf88-menu-link:hover {
    background: var(--gf88-bg-tertiary);
    color: var(--gf88-accent-green);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

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

.gf88-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   CAROUSEL / SLIDER
   ============================================ */
.gf88-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--gf88-radius-lg);
    margin-bottom: 2rem;
}

.gf88-slides {
    position: relative;
    height: 180px;
}

.gf88-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.gf88-slide.gf88-slide-active {
    opacity: 1;
}

.gf88-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gf88-radius-lg);
}

.gf88-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gf88-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--gf88-transition);
}

.gf88-slide-dot.gf88-dot-active {
    background: var(--gf88-accent-green);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.gf88-section {
    padding: 2rem 0;
}

.gf88-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gf88-text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.gf88-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--gf88-accent-green) 0%, var(--gf88-accent-lime) 100%);
    border-radius: 2px;
}

/* ============================================
   GAME GRID
   ============================================ */
.gf88-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gf88-game-card {
    position: relative;
    background: var(--gf88-bg-tertiary);
    border-radius: var(--gf88-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--gf88-transition);
}

.gf88-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 127, 0.2);
}

.gf88-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gf88-game-name {
    display: block;
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
    color: var(--gf88-text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.gf88-category-section {
    margin-bottom: 2.5rem;
}

.gf88-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gf88-accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gf88-category-title i {
    font-size: 1.8rem;
}

/* ============================================
   CONTENT BOXES
   ============================================ */
.gf88-content-box {
    background: var(--gf88-bg-tertiary);
    border-radius: var(--gf88-radius-lg);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gf88-border-color);
}

.gf88-content-box h3 {
    font-size: 1.6rem;
    color: var(--gf88-accent-green);
    margin-bottom: 1rem;
}

.gf88-content-box p {
    font-size: 1.3rem;
    color: var(--gf88-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.gf88-content-box ul {
    padding-left: 1.5rem;
}

.gf88-content-box li {
    font-size: 1.3rem;
    color: var(--gf88-text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.gf88-content-box li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gf88-accent-green);
    font-size: 1rem;
}

/* ============================================
   PROMO LINKS
   ============================================ */
.gf88-promo-text {
    color: var(--gf88-accent-green);
    font-weight: 600;
    cursor: pointer;
    transition: var(--gf88-transition);
}

.gf88-promo-text:hover {
    color: var(--gf88-accent-lime);
    text-decoration: underline;
}

.gf88-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gf88-accent-gold) 0%, #daa520 100%);
    color: var(--gf88-bg-primary);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--gf88-radius);
    cursor: pointer;
    transition: var(--gf88-transition);
    border: none;
    text-transform: uppercase;
}

.gf88-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(205, 133, 63, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.gf88-footer {
    background: var(--gf88-bg-secondary);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--gf88-border-color);
}

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

.gf88-footer-brand p {
    font-size: 1.2rem;
    color: var(--gf88-text-muted);
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
}

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

.gf88-footer-link {
    font-size: 1.1rem;
    color: var(--gf88-text-secondary);
    padding: 0.5rem 1rem;
    background: var(--gf88-bg-tertiary);
    border-radius: var(--gf88-radius);
    transition: var(--gf88-transition);
}

.gf88-footer-link:hover {
    color: var(--gf88-accent-green);
    background: rgba(0, 255, 127, 0.1);
}

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

.gf88-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gf88-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--gf88-border-color);
}

/* ============================================
   BOTTOM NAVIGATION (MOBILE)
   ============================================ */
.gf88-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, var(--gf88-bg-primary) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--gf88-border-color);
    padding: 0 0.5rem;
}

.gf88-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--gf88-transition);
    border-radius: var(--gf88-radius);
}

.gf88-nav-item:hover {
    background: rgba(0, 255, 127, 0.1);
}

.gf88-nav-item.gf88-nav-active {
    background: rgba(0, 255, 127, 0.15);
}

.gf88-nav-item.gf88-nav-active .gf88-nav-icon {
    color: var(--gf88-accent-green);
}

.gf88-nav-item.gf88-nav-active .gf88-nav-text {
    color: var(--gf88-accent-green);
}

.gf88-nav-icon {
    font-size: 22px;
    color: var(--gf88-text-secondary);
    margin-bottom: 2px;
    transition: var(--gf88-transition);
}

.gf88-nav-item:hover .gf88-nav-icon {
    color: var(--gf88-accent-green);
    transform: scale(1.1);
}

.gf88-nav-text {
    font-size: 10px;
    color: var(--gf88-text-muted);
    text-align: center;
    transition: var(--gf88-transition);
}

.gf88-nav-item:hover .gf88-nav-text {
    color: var(--gf88-accent-green);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .gf88-bottom-nav {
        display: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.gf88-text-center {
    text-align: center;
}

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

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

.gf88-mb-3 {
    margin-bottom: 3rem;
}

.gf88-hidden {
    display: none !important;
}

.gf88-flex {
    display: flex;
}

.gf88-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf88-gap-1 {
    gap: 1rem;
}

.gf88-gap-2 {
    gap: 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gf88-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes gf88-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gf88-animate-pulse {
    animation: gf88-pulse 2s infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 380px) {
    .gf88-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .gf88-game-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .gf88-container {
        max-width: 430px;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .gf88-header-content,
    .gf88-container,
    .gf88-footer {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }
}
