/**
 * GCash Games Layout Stylesheet
 * Website: gcashgames.click
 * Prefix: gfe4-
 * Colors: #6F4E37 (coffee), #4B0082 (indigo), #0C0C0C (dark), #BBBBBB (light)
 */

/* CSS Variables */
:root {
    --gfe4-primary: #6F4E37;
    --gfe4-accent: #4B0082;
    --gfe4-bg: #0C0C0C;
    --gfe4-bg-light: #1a1a1a;
    --gfe4-text: #BBBBBB;
    --gfe4-text-light: #ffffff;
    --gfe4-border: #333333;
    --gfe4-gradient: linear-gradient(135deg, #6F4E37 0%, #4B0082 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gfe4-bg);
    color: var(--gfe4-text);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.gfe4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(12,12,12,0.98) 0%, rgba(12,12,12,0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gfe4-border);
}

.gfe4-header-scrolled {
    background: rgba(12,12,12,0.99);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gfe4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gfe4-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfe4-logo img {
    width: 32px;
    height: 32px;
}

.gfe4-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gfe4-text-light);
    background: var(--gfe4-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfe4-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfe4-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.gfe4-btn-login {
    background: transparent;
    color: var(--gfe4-text);
    border: 1px solid var(--gfe4-primary);
}

.gfe4-btn-login:hover {
    background: var(--gfe4-primary);
    color: var(--gfe4-text-light);
}

.gfe4-btn-register {
    background: var(--gfe4-gradient);
    color: var(--gfe4-text-light);
}

.gfe4-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(111,78,55,0.4);
}

.gfe4-menu-toggle {
    background: none;
    border: none;
    color: var(--gfe4-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.gfe4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--gfe4-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    border-left: 1px solid var(--gfe4-border);
    overflow-y: auto;
}

.game49c9-menu-active {
    right: 0 !important;
}

.gfe4-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;
}

.game49c9-overlay-active {
    opacity: 1;
    visibility: visible;
}

.gfe4-menu-list {
    list-style: none;
}

.gfe4-menu-item {
    margin-bottom: 5px;
}

.gfe4-menu-link {
    display: block;
    padding: 14px 16px;
    color: var(--gfe4-text);
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gfe4-menu-link:hover {
    background: var(--gfe4-bg-light);
    color: var(--gfe4-primary);
}

.gfe4-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gfe4-text);
    font-size: 28px;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Slider/Carousel */
.gfe4-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gfe4-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.gfe4-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gfe4-slide-active {
    opacity: 1;
}

.gfe4-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gfe4-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfe4-dot-active {
    background: var(--gfe4-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.gfe4-section {
    padding: 24px 16px;
}

.gfe4-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfe4-text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfe4-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gfe4-gradient);
    border-radius: 2px;
}

/* Game Grid */
.gfe4-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gfe4-game-card {
    background: var(--gfe4-bg-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gfe4-border);
}

.gfe4-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--gfe4-primary);
    box-shadow: 0 8px 25px rgba(111,78,55,0.3);
}

.gfe4-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gfe4-game-name {
    padding: 10px 8px;
    font-size: 12px;
    color: var(--gfe4-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.gfe4-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.gfe4-tab {
    padding: 8px 16px;
    background: var(--gfe4-bg-light);
    border: 1px solid var(--gfe4-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gfe4-text);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfe4-tab:hover,
.gfe4-tab-active {
    background: var(--gfe4-gradient);
    color: var(--gfe4-text-light);
    border-color: transparent;
}

/* Promo Section */
.gfe4-promo {
    background: linear-gradient(135deg, rgba(111,78,55,0.2) 0%, rgba(75,0,130,0.2) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    border: 1px solid rgba(111,78,55,0.3);
}

.gfe4-promo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gfe4-text-light);
    margin-bottom: 12px;
}

.gfe4-promo-text {
    font-size: 14px;
    color: var(--gfe4-text);
    margin-bottom: 16px;
}

.gfe4-promo-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gfe4-gradient);
    color: var(--gfe4-text-light);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfe4-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(111,78,55,0.4);
}

/* Features Grid */
.gfe4-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px;
}

.gfe4-feature {
    background: var(--gfe4-bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--gfe4-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfe4-feature:hover {
    border-color: var(--gfe4-primary);
    transform: translateY(-2px);
}

.gfe4-feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--gfe4-primary);
}

.gfe4-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gfe4-text-light);
    margin-bottom: 6px;
}

.gfe4-feature-desc {
    font-size: 12px;
    color: var(--gfe4-text);
}

/* Footer */
.gfe4-footer {
    background: var(--gfe4-bg-light);
    padding: 30px 16px;
    border-top: 1px solid var(--gfe4-border);
}

.gfe4-footer-section {
    margin-bottom: 24px;
}

.gfe4-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gfe4-text-light);
    margin-bottom: 12px;
}

.gfe4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gfe4-footer-link {
    font-size: 13px;
    color: var(--gfe4-text);
    transition: color 0.3s ease;
}

.gfe4-footer-link:hover {
    color: var(--gfe4-primary);
}

.gfe4-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.gfe4-partner {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gfe4-partner:hover {
    filter: grayscale(0);
    opacity: 1;
}

.gfe4-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--gfe4-text);
    padding-top: 20px;
    border-top: 1px solid var(--gfe4-border);
}

/* Mobile Bottom Navigation */
.gfe4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, rgba(12,12,12,0.99) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    z-index: 1000;
    border-top: 1px solid var(--gfe4-border);
}

@media (min-width: 769px) {
    .gfe4-bottom-nav {
        display: none;
    }
}

.gfe4-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(--gfe4-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 6px;
}

.gfe4-nav-btn:hover,
.gfe4-nav-btn-active {
    color: var(--gfe4-primary);
    background: rgba(111,78,55,0.1);
}

.gfe4-nav-btn-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gfe4-nav-btn-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.gfe4-text-center {
    text-align: center;
}

.gfe4-mt-16 {
    margin-top: 16px;
}

.gfe4-mb-16 {
    margin-bottom: 16px;
}

.gfe4-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .gfe4-hidden-mobile {
        display: block;
    }
}

/* Content styling */
.gfe4-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.gfe4-content h2 {
    font-size: 18px;
    color: var(--gfe4-text-light);
    margin: 20px 0 12px;
}

.gfe4-content p {
    margin-bottom: 12px;
}

.gfe4-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.gfe4-content li {
    margin-bottom: 8px;
}

/* Promo link styling */
.gfe4-promo-link {
    color: var(--gfe4-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gfe4-promo-link:hover {
    color: var(--gfe4-accent);
}
