/**
 * GCash Games - Core Stylesheet
 * Version: 1.0.0
 * Prefix: g36c-
 * Color Palette: #8B7355 | #D3D3D3 | #6F4E37 | #DA70D6 | #800080 | #1E1E1E
 */

/* CSS Variables */
:root {
    --g36c-primary: #8B7355;
    --g36c-secondary: #6F4E37;
    --g36c-accent: #DA70D6;
    --g36c-accent-alt: #800080;
    --g36c-bg-dark: #1E1E1E;
    --g36c-bg-card: #2a2a2a;
    --g36c-text-light: #D3D3D3;
    --g36c-text-muted: #a0a0a0;
    --g36c-border: #3a3a3a;
    --g36c-gradient: linear-gradient(135deg, #8B7355 0%, #6F4E37 100%);
    --g36c-gradient-accent: linear-gradient(135deg, #DA70D6 0%, #800080 100%);
    --g36c-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g36c-radius: 12px;
    --g36c-radius-sm: 8px;
    --g36c-vh: 1vh;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--g36c-bg-dark);
    color: var(--g36c-text-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.g36c-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g36c-wrapper {
    padding: 2rem 0;
}

/* Header */
.g36c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g36c-bg-dark) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g36c-border);
    transition: all 0.3s ease;
}

.g36c-header-scrolled {
    box-shadow: var(--g36c-shadow);
}

.g36c-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g36c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g36c-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.g36c-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g36c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g36c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g36c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--g36c-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
}

.g36c-btn-primary {
    background: var(--g36c-gradient);
    color: #fff;
}

.g36c-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

.g36c-btn-secondary {
    background: transparent;
    color: var(--g36c-text-light);
    border: 1px solid var(--g36c-primary);
}

.g36c-btn-secondary:hover {
    background: var(--g36c-primary);
    color: #fff;
}

.g36c-btn-accent {
    background: var(--g36c-gradient-accent);
    color: #fff;
}

.g36c-btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(218, 112, 214, 0.4);
}

.g36c-menu-btn {
    background: none;
    border: none;
    color: var(--g36c-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g36c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g36c-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
    border-left: 1px solid var(--g36c-border);
}

.g36c-menu-active {
    right: 0;
}

.g36c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g36c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g36c-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--g36c-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g36c-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g36c-nav-item {
    border-bottom: 1px solid var(--g36c-border);
}

.g36c-nav-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--g36c-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.g36c-nav-link:hover {
    color: var(--g36c-accent);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.g36c-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g36c-radius);
    margin: 1.5rem 0;
}

.g36c-slides {
    display: flex;
    width: 100%;
}

.g36c-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.g36c-slide-active {
    opacity: 1;
}

.g36c-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--g36c-radius);
    cursor: pointer;
}

.g36c-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 var(--g36c-radius) var(--g36c-radius);
}

.g36c-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.g36c-slide-desc {
    font-size: 1.4rem;
    margin: 0;
    color: var(--g36c-text-muted);
}

/* Section Styles */
.g36c-section {
    padding: 2rem 1.5rem;
}

.g36c-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    background: var(--g36c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g36c-section-subtitle {
    font-size: 1.4rem;
    color: var(--g36c-text-muted);
    margin: 0 0 1.5rem;
}

/* Game Grid */
.g36c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g36c-game-card {
    background: var(--g36c-bg-card);
    border-radius: var(--g36c-radius-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--g36c-border);
}

.g36c-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--g36c-shadow);
    border-color: var(--g36c-primary);
}

.g36c-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.g36c-game-name {
    font-size: 1.1rem;
    padding: 0.6rem;
    text-align: center;
    color: var(--g36c-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

/* Category Section */
.g36c-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.g36c-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g36c-accent);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g36c-category-title i {
    font-size: 2rem;
}

/* Cards/Features */
.g36c-card {
    background: var(--g36c-bg-card);
    border-radius: var(--g36c-radius);
    padding: 1.5rem;
    border: 1px solid var(--g36c-border);
    margin-bottom: 1.5rem;
}

.g36c-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--g36c-text-light);
}

.g36c-card-text {
    font-size: 1.4rem;
    color: var(--g36c-text-muted);
    line-height: 1.6;
    margin: 0;
}

.g36c-card-text p {
    margin: 0 0 1rem;
}

.g36c-card-text p:last-child {
    margin-bottom: 0;
}

/* List Styles */
.g36c-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g36c-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--g36c-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.g36c-list-item:last-child {
    border-bottom: none;
}

.g36c-list-icon {
    font-size: 2rem;
    color: var(--g36c-accent);
    flex-shrink: 0;
}

.g36c-list-content {
    flex: 1;
}

.g36c-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: var(--g36c-text-light);
}

.g36c-list-desc {
    font-size: 1.3rem;
    margin: 0;
    color: var(--g36c-text-muted);
}

/* FAQ Accordion */
.g36c-faq-item {
    background: var(--g36c-bg-card);
    border-radius: var(--g36c-radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--g36c-border);
    overflow: hidden;
}

.g36c-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g36c-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g36c-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--g36c-text-muted);
    line-height: 1.6;
}

/* Footer */
.g36c-footer {
    background: var(--g36c-bg-card);
    border-top: 1px solid var(--g36c-border);
    padding: 2rem 1.5rem 3rem;
}

.g36c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.g36c-footer-link {
    color: var(--g36c-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s ease;
}

.g36c-footer-link:hover {
    color: var(--g36c-accent);
}

.g36c-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g36c-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.g36c-partner-img:hover {
    opacity: 1;
}

.g36c-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g36c-text-muted);
}

/* Mobile Bottom Navigation */
.g36c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--g36c-bg-card) 0%, var(--g36c-bg-dark) 100%);
    border-top: 1px solid var(--g36c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .g36c-bottom-nav {
        display: none;
    }
}

.g36c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--g36c-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.3rem;
}

.g36c-nav-btn:hover,
.g36c-nav-btn.active {
    color: var(--g36c-accent);
    transform: scale(1.05);
}

.g36c-nav-btn i {
    font-size: 2.4rem;
}

.g36c-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Promo Links */
.g36c-promo-link {
    color: var(--g36c-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.g36c-promo-link:hover {
    color: var(--g36c-primary);
    text-decoration: underline;
}

.g36c-promo-text {
    color: var(--g36c-accent);
    font-weight: 600;
    cursor: pointer;
}

.g36c-promo-text:hover {
    text-decoration: underline;
}

/* Utility Classes */
.g36c-text-center {
    text-align: center;
}

.g36c-mt-1 {
    margin-top: 1rem;
}

.g36c-mt-2 {
    margin-top: 2rem;
}

.g36c-mb-1 {
    margin-bottom: 1rem;
}

.g36c-mb-2 {
    margin-bottom: 2rem;
}

.g36c-hidden {
    display: none !important;
}

/* Responsive */
@media (min-width: 431px) {
    .g36c-container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--g36c-text-light);
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.6;
}

a {
    color: var(--g36c-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--g36c-primary);
}

/* Internal Links */
.g36c-internal-link {
    color: var(--g36c-text-light);
    text-decoration: underline;
    text-decoration-color: var(--g36c-primary);
    text-underline-offset: 2px;
}

.g36c-internal-link:hover {
    color: var(--g36c-accent);
    text-decoration-color: var(--g36c-accent);
}
