/**
 * 7gameapk - Core Stylesheet
 * Mobile-first responsive design for Filipino gaming platform
 * All classes use g4f1- prefix for namespace isolation
 * Color palette: #0C0C0C (dark bg) | #2E8B57 (accent/sea green)
 */

/* CSS Variables */
:root {
    --g4f1-bg-primary: #0C0C0C;
    --g4f1-bg-secondary: #1a1a1a;
    --g4f1-bg-tertiary: #252525;
    --g4f1-accent: #2E8B57;
    --g4f1-accent-light: #3da86a;
    --g4f1-accent-dark: #236b44;
    --g4f1-text-primary: #ffffff;
    --g4f1-text-secondary: #b0b0b0;
    --g4f1-text-muted: #808080;
    --g4f1-border: #333333;
    --g4f1-shadow: rgba(0, 0, 0, 0.3);
    --g4f1-gold: #ffd700;
    --g4f1-red: #dc3545;
}

/* Base Reset */
* {
    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;
    background-color: var(--g4f1-bg-primary);
    color: var(--g4f1-text-primary);
    line-height: 1.5;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
}

/* Typography */
.g4f1-h1, .g4f1-h2, .g4f1-h3, .g4f1-h4 {
    color: var(--g4f1-text-primary);
    margin-bottom: 1rem;
}

.g4f1-h1 { font-size: 2.4rem; font-weight: 700; }
.g4f1-h2 { font-size: 2rem; font-weight: 600; }
.g4f1-h3 { font-size: 1.6rem; font-weight: 600; }
.g4f1-h4 { font-size: 1.4rem; font-weight: 500; }

.g4f1-text { font-size: 1.4rem; line-height: 1.6; }
.g4f1-text-sm { font-size: 1.2rem; }
.g4f1-text-lg { font-size: 1.6rem; }

/* Container */
.g4f1-container {
    width: 100%;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g4f1-wrapper {
    padding: 2rem 0;
}

/* Header Navigation */
.g4f1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--g4f1-bg-primary) 0%, rgba(12, 12, 12, 0.95) 100%);
    border-bottom: 1px solid var(--g4f1-border);
    z-index: 1000;
    padding: 0.8rem 1rem;
}

.g4f1-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g4f1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g4f1-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g4f1-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g4f1-accent);
    letter-spacing: -0.5px;
}

.g4f1-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g4f1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 36px;
}

.g4f1-btn-primary {
    background: linear-gradient(135deg, var(--g4f1-accent) 0%, var(--g4f1-accent-dark) 100%);
    color: var(--g4f1-text-primary);
}

.g4f1-btn-primary:hover {
    background: linear-gradient(135deg, var(--g4f1-accent-light) 0%, var(--g4f1-accent) 100%);
    transform: translateY(-1px);
}

.g4f1-btn-secondary {
    background: transparent;
    border: 1px solid var(--g4f1-accent);
    color: var(--g4f1-accent);
}

.g4f1-btn-secondary:hover {
    background: var(--g4f1-accent);
    color: var(--g4f1-text-primary);
}

.g4f1-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g4f1-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.g4f1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g4f1-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.g4f1-menu-active {
    right: 0;
}

.g4f1-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: all 0.3s ease;
}

.g4f1-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g4f1-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g4f1-border);
}

.g4f1-menu-close {
    background: transparent;
    border: none;
    color: var(--g4f1-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.g4f1-nav-list {
    list-style: none;
}

.g4f1-nav-item {
    margin-bottom: 0.5rem;
}

.g4f1-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--g4f1-text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.g4f1-nav-link:hover {
    background: var(--g4f1-bg-tertiary);
    color: var(--g4f1-accent);
}

/* Hero Slider */
.g4f1-slider {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    border-radius: 0;
}

.g4f1-slides {
    position: relative;
    height: 200px;
}

.g4f1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g4f1-slide-active {
    opacity: 1;
}

.g4f1-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g4f1-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g4f1-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.g4f1-dot-active {
    background: var(--g4f1-accent);
    width: 20px;
    border-radius: 4px;
}

/* Main Content */
.g4f1-main {
    padding-bottom: 80px;
}

/* Section Styles */
.g4f1-section {
    padding: 2rem 1.5rem;
}

.g4f1-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g4f1-accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g4f1-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.g4f1-game-section {
    margin-bottom: 2rem;
}

.g4f1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g4f1-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.g4f1-game-card:hover {
    transform: scale(1.05);
}

.g4f1-game-card:hover .g4f1-game-name {
    color: var(--g4f1-accent);
}

.g4f1-game-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--g4f1-border);
    transition: border-color 0.2s ease;
}

.g4f1-game-card:hover .g4f1-game-icon {
    border-color: var(--g4f1-accent);
}

.g4f1-game-name {
    font-size: 1rem;
    color: var(--g4f1-text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.2s ease;
}

/* Category Badge */
.g4f1-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--g4f1-bg-tertiary);
    color: var(--g4f1-accent);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Info Cards */
.g4f1-info-card {
    background: var(--g4f1-bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--g4f1-border);
}

.g4f1-info-card h3 {
    color: var(--g4f1-accent);
    margin-bottom: 1rem;
}

.g4f1-info-card p {
    color: var(--g4f1-text-secondary);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Features List */
.g4f1-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g4f1-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
}

.g4f1-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g4f1-accent);
    border-radius: 8px;
    flex-shrink: 0;
}

.g4f1-feature-icon i {
    font-size: 1.8rem;
    color: var(--g4f1-text-primary);
}

.g4f1-feature-text h4 {
    color: var(--g4f1-text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.g4f1-feature-text p {
    color: var(--g4f1-text-secondary);
    font-size: 1.2rem;
}

/* RTP Analysis */
.g4f1-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g4f1-rtp-item {
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.g4f1-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g4f1-accent);
}

.g4f1-rtp-label {
    font-size: 1.1rem;
    color: var(--g4f1-text-secondary);
}

/* Promotional Link */
.g4f1-promo-link {
    color: var(--g4f1-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.g4f1-promo-link:hover {
    color: var(--g4f1-accent-light);
    text-decoration: underline;
}

/* Footer */
.g4f1-footer {
    background: var(--g4f1-bg-secondary);
    border-top: 1px solid var(--g4f1-border);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.g4f1-footer-section {
    margin-bottom: 2rem;
}

.g4f1-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g4f1-accent);
    margin-bottom: 1rem;
}

.g4f1-footer-text {
    font-size: 1.2rem;
    color: var(--g4f1-text-secondary);
    line-height: 1.6;
}

.g4f1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.g4f1-footer-link {
    color: var(--g4f1-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.g4f1-footer-link:hover {
    color: var(--g4f1-accent);
}

.g4f1-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.g4f1-partner-logo {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.g4f1-partner-logo:hover {
    opacity: 1;
}

.g4f1-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g4f1-text-muted);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--g4f1-border);
}

/* Bottom Navigation */
.g4f1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--g4f1-bg-secondary) 0%, var(--g4f1-bg-primary) 100%);
    border-top: 1px solid var(--g4f1-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    padding: 0 0.5rem;
}

.g4f1-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--g4f1-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.g4f1-nav-btn:hover,
.g4f1-nav-btn-active {
    color: var(--g4f1-accent);
    transform: scale(1.1);
}

.g4f1-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.g4f1-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .g4f1-bottom-nav {
        display: none;
    }
}

/* Mobile padding for main content */
@media (max-width: 768px) {
    .g4f1-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.g4f1-text-center { text-align: center; }
.g4f1-text-left { text-align: left; }
.g4f1-mb-1 { margin-bottom: 1rem; }
.g4f1-mb-2 { margin-bottom: 2rem; }
.g4f1-mt-1 { margin-top: 1rem; }
.g4f1-mt-2 { margin-top: 2rem; }
.g4f1-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.g4f1-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Achievement Badges */
.g4f1-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--g4f1-bg-tertiary);
    border-radius: 20px;
    font-size: 1.1rem;
    color: var(--g4f1-text-secondary);
}

.g4f1-badge i {
    color: var(--g4f1-gold);
}

/* Tricks Section */
.g4f1-trick-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--g4f1-accent);
}

.g4f1-trick-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g4f1-accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Security Section */
.g4f1-security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.g4f1-security-item i {
    font-size: 2rem;
    color: var(--g4f1-accent);
}

/* Play Now CTA */
.g4f1-cta {
    background: linear-gradient(135deg, var(--g4f1-accent) 0%, var(--g4f1-accent-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.g4f1-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.g4f1-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.g4f1-cta .g4f1-btn {
    background: var(--g4f1-text-primary);
    color: var(--g4f1-accent);
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
}

/* FAQ Styles */
.g4f1-faq-item {
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.g4f1-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--g4f1-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g4f1-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--g4f1-text-secondary);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Help Page Styles */
.g4f1-help-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--g4f1-bg-secondary);
    border-radius: 8px;
}

.g4f1-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g4f1-accent);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.g4f1-step-content h4 {
    color: var(--g4f1-text-primary);
    margin-bottom: 0.4rem;
}

.g4f1-step-content p {
    color: var(--g4f1-text-secondary);
    font-size: 1.2rem;
}
