/**
 * GCash Game - Core Design Stylesheet
 * Class prefix: v8d0-
 * Color palette: #F5DEB3 | #8B7355 | #B2DFDB | #00695C | #0F0F23
 * Mobile-first responsive design
 */

:root {
    --v8d0-primary: #00695C;
    --v8d0-secondary: #8B7355;
    --v8d0-accent: #B2DFDB;
    --v8d0-warm: #F5DEB3;
    --v8d0-dark: #0F0F23;
    --v8d0-bg: #0F0F23;
    --v8d0-surface: #161630;
    --v8d0-surface2: #1c1c3a;
    --v8d0-text: #F5DEB3;
    --v8d0-text-light: #B2DFDB;
    --v8d0-text-muted: #8B7355;
    --v8d0-border: #2a2a4a;
    --v8d0-success: #4CAF50;
    --v8d0-gold: #FFD700;
    --v8d0-radius: 8px;
    --v8d0-radius-lg: 16px;
    --v8d0-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --v8d0-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --v8d0-transition: all 0.3s ease;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v8d0-bg);
    color: var(--v8d0-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.v8d0-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.v8d0-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.v8d0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v8d0-dark) 0%, #1a1a3e 100%);
    border-bottom: 1px solid var(--v8d0-border);
    height: 56px;
}

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

.v8d0-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.v8d0-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.v8d0-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v8d0-warm);
    white-space: nowrap;
}

.v8d0-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v8d0-btn-register {
    background: linear-gradient(135deg, var(--v8d0-primary), #00897B);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v8d0-transition);
    white-space: nowrap;
}

.v8d0-btn-login {
    background: transparent;
    color: var(--v8d0-warm);
    border: 1px solid var(--v8d0-warm);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v8d0-transition);
    white-space: nowrap;
}

.v8d0-btn-register:hover, .v8d0-btn-login:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.v8d0-menu-toggle {
    background: none;
    border: none;
    color: var(--v8d0-warm);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Mobile menu overlay */
.v8d0-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.v8d0-overlay-active {
    display: block;
}

/* Mobile slide menu */
.v8d0-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--v8d0-surface);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

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

.v8d0-menu-close {
    background: none;
    border: none;
    color: var(--v8d0-text);
    font-size: 2.4rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.v8d0-menu-list {
    list-style: none;
    margin-top: 3rem;
}

.v8d0-menu-item {
    margin-bottom: 0.8rem;
}

.v8d0-menu-link {
    display: block;
    padding: 1rem;
    color: var(--v8d0-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--v8d0-radius);
    transition: var(--v8d0-transition);
    border-left: 3px solid transparent;
}

.v8d0-menu-link:hover {
    background: var(--v8d0-surface2);
    border-left-color: var(--v8d0-primary);
    color: var(--v8d0-warm);
}

/* Main content area */
.v8d0-main {
    padding-top: 56px;
    min-height: 100vh;
}

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

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

.v8d0-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

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

.v8d0-slide-active {
    display: block;
}

.v8d0-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.v8d0-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 222, 179, 0.4);
    cursor: pointer;
    transition: var(--v8d0-transition);
}

.v8d0-dot-active {
    background: var(--v8d0-warm);
    transform: scale(1.3);
}

/* Section titles */
.v8d0-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v8d0-warm);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--v8d0-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v8d0-section-title i, .v8d0-section-title .material-symbols-outlined {
    color: var(--v8d0-primary);
    font-size: 2rem;
}

/* Game grid */
.v8d0-game-section {
    margin-bottom: 2rem;
}

.v8d0-game-cat-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v8d0-accent);
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--v8d0-secondary);
}

.v8d0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.v8d0-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--v8d0-transition);
    border-radius: var(--v8d0-radius);
    padding: 6px;
    background: var(--v8d0-surface);
}

.v8d0-game-item:hover {
    transform: translateY(-2px);
    background: var(--v8d0-surface2);
    box-shadow: var(--v8d0-shadow);
}

.v8d0-game-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 1;
    object-fit: cover;
}

.v8d0-game-name {
    font-size: 1.05rem;
    color: var(--v8d0-text);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content cards */
.v8d0-card {
    background: var(--v8d0-surface);
    border-radius: var(--v8d0-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v8d0-border);
}

.v8d0-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v8d0-warm);
    margin-bottom: 1rem;
}

.v8d0-card-text {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--v8d0-text);
}

/* Promo button / CTA */
.v8d0-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--v8d0-primary), #00897B);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--v8d0-radius);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--v8d0-transition);
    border: none;
    text-align: center;
}

.v8d0-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 105, 92, 0.4);
}

.v8d0-cta-gold {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: var(--v8d0-dark);
}

.v8d0-promo-text {
    color: var(--v8d0-gold);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--v8d0-transition);
}

.v8d0-promo-text:hover {
    color: var(--v8d0-warm);
}

/* Footer */
.v8d0-footer {
    background: var(--v8d0-surface);
    border-top: 1px solid var(--v8d0-border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.v8d0-footer-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.v8d0-footer-desc {
    font-size: 1.2rem;
    color: var(--v8d0-text-muted);
    line-height: 1.6rem;
    margin-bottom: 1.5rem;
}

.v8d0-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.v8d0-footer-link {
    display: inline-block;
    padding: 6px 12px;
    background: var(--v8d0-surface2);
    color: var(--v8d0-text);
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: var(--v8d0-transition);
}

.v8d0-footer-link:hover {
    background: var(--v8d0-primary);
    color: #fff;
}

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

/* Bottom navigation */
.v8d0-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a1a3e, var(--v8d0-dark));
    border-top: 1px solid var(--v8d0-border);
    height: 60px;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .v8d0-bottom-nav {
        display: flex;
    }
}

.v8d0-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--v8d0-text-muted);
    cursor: pointer;
    transition: var(--v8d0-transition);
    padding: 4px;
    border-radius: 8px;
}

.v8d0-nav-btn:hover, .v8d0-nav-btn-active {
    color: var(--v8d0-warm);
}

.v8d0-nav-btn:active {
    transform: scale(0.92);
}

.v8d0-nav-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.v8d0-nav-label {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.v8d0-nav-btn-active .v8d0-nav-label {
    color: var(--v8d0-gold);
    font-weight: 600;
}

/* FAQ / Help page styles */
.v8d0-faq-item {
    background: var(--v8d0-surface);
    border-radius: var(--v8d0-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--v8d0-border);
}

.v8d0-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v8d0-warm);
    margin-bottom: 0.6rem;
}

.v8d0-faq-answer {
    font-size: 1.25rem;
    color: var(--v8d0-text);
    line-height: 1.7rem;
}

/* Feature list */
.v8d0-feature-list {
    list-style: none;
    padding: 0;
}

.v8d0-feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--v8d0-border);
    font-size: 1.3rem;
    line-height: 1.7rem;
    color: var(--v8d0-text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.v8d0-feature-item:last-child {
    border-bottom: none;
}

.v8d0-feature-item i {
    color: var(--v8d0-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Steps component */
.v8d0-steps {
    counter-reset: step-counter;
}

.v8d0-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.v8d0-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--v8d0-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.v8d0-step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v8d0-warm);
    margin-bottom: 0.4rem;
}

.v8d0-step-text {
    font-size: 1.25rem;
    line-height: 1.6rem;
    color: var(--v8d0-text);
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .v8d0-bottom-nav {
        display: none !important;
    }
    .v8d0-header {
        position: relative;
    }
    .v8d0-main {
        padding-top: 0;
    }
    .v8d0-container {
        max-width: 768px;
        padding: 0 2rem;
    }
    .v8d0-wrapper {
        max-width: 768px;
    }
    .v8d0-footer-inner {
        max-width: 768px;
    }
    .v8d0-header-inner {
        max-width: 768px;
    }
}

@media (max-width: 360px) {
    .v8d0-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .v8d0-btn-register {
        padding: 5px 8px;
        font-size: 1.1rem;
    }
    .v8d0-btn-login {
        padding: 4px 7px;
        font-size: 1.1rem;
    }
    .v8d0-logo-text {
        font-size: 1.2rem;
    }
}

/* Utility */
.v8d0-text-center { text-align: center; }
.v8d0-mb-1 { margin-bottom: 0.8rem; }
.v8d0-mb-2 { margin-bottom: 1.6rem; }
.v8d0-mb-3 { margin-bottom: 2.4rem; }
.v8d0-mt-2 { margin-top: 1.6rem; }
.v8d0-hidden { display: none; }
