/**
 * Agustin12345 Core Stylesheet
 * All classes use g95f- prefix for namespace isolation
 * Color Palette: #FFFACD | #CD853F | #1B263B | #F5F5F5 | #F5DEB3 | #DEB887
 */

/* ==================== CSS Variables ==================== */
:root {
    --g95f-primary: #CD853F;
    --g95f-primary-dark: #B8763A;
    --g95f-primary-light: #DEB887;
    --g95f-bg: #1B263B;
    --g95f-bg-light: #2A3A52;
    --g95f-surface: #FFFACD;
    --g95f-surface-alt: #F5DEB3;
    --g95f-text: #1B263B;
    --g95f-text-light: #F5F5F5;
    --g95f-text-muted: #6B7280;
    --g95f-border: #DEB887;
    --g95f-accent: #CD853F;
    --g95f-success: #22C55E;
    --g95f-danger: #EF4444;
    --g95f-shadow: rgba(27, 38, 59, 0.15);
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5rem;
    color: var(--g95f-text);
    background-color: var(--g95f-surface);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ==================== Header Component ==================== */
.g95f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g95f-bg) 0%, var(--g95f-bg-light) 100%);
    box-shadow: 0 2px 12px var(--g95f-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    min-height: 56px;
}

.g95f-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g95f-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.g95f-site-name {
    color: var(--g95f-surface);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.g95f-header-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.g95f-btn-register {
    background: linear-gradient(135deg, var(--g95f-primary) 0%, var(--g95f-primary-light) 100%);
    color: var(--g95f-bg);
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(205, 133, 63, 0.35);
}

.g95f-btn-register:hover,
.g95f-btn-register:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(205, 133, 63, 0.5);
}

.g95f-btn-login {
    background: transparent;
    color: var(--g95f-surface);
    border: 1.5px solid var(--g95f-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.g95f-btn-login:hover,
.g95f-btn-login:active {
    background: rgba(205, 133, 63, 0.15);
    border-color: var(--g95f-primary);
}

.g95f-menu-toggle {
    background: none;
    border: none;
    color: var(--g95f-surface);
    font-size: 1.9rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.2s;
}

.g95f-menu-toggle:hover {
    background: rgba(255, 250, 205, 0.12);
}

/* ==================== Mobile Menu Overlay ==================== */
.g95f-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(27, 38, 59, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    overflow-y: auto;
    animation: g95f-fadeIn 0.25s ease;
}

@keyframes g95f-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.g95f-mobile-menu.g95f-menu-open {
    display: block;
}

.g95f-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(222, 184, 135, 0.2);
}

.g95f-menu-title {
    color: var(--g95f-surface);
    font-size: 1.6rem;
    font-weight: 700;
}

.g95f-menu-close {
    background: none;
    border: none;
    color: var(--g95f-surface);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.g95f-menu-close:hover {
    background: rgba(255, 250, 205, 0.12);
}

.g95f-menu-list {
    padding: 1rem 0.8rem;
}

.g95f-menu-item {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--g95f-surface);
    font-size: 1.35rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(222, 184, 135, 0.12);
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-bottom: 0.3rem;
}

.g95f-menu-item:hover,
.g95f-menu-item:active {
    background: rgba(205, 133, 63, 0.18);
    color: var(--g95f-primary-light);
    padding-left: 1.6rem;
}

.g95f-menu-item i {
    margin-right: 0.8rem;
    width: 22px;
    text-align: center;
    color: var(--g95f-primary);
}

/* ==================== Main Content Area ==================== */
.g95f-main {
    margin-top: 56px;
    padding: 1.2rem;
    padding-bottom: 90px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .g95f-main {
        padding-bottom: 2rem;
        max-width: 1200px;
    }
}

/* ==================== Hero / Banner Section ==================== */
.g95f-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px var(--g95f-shadow);
}

.g95f-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.g95f-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(to top, rgba(27, 38, 59, 0.92), transparent);
    color: var(--g95f-surface);
}

.g95f-hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.g95f-hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.88;
}

/* ==================== Section Titles ==================== */
.g95f-section-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--g95f-bg);
    margin-bottom: 1rem;
    padding-left: 0.6rem;
    border-left: 4px solid var(--g95f-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g95f-section-title i {
    color: var(--g95f-primary);
    font-size: 1.5rem;
}

/* ==================== Game Grid ==================== */
.g95f-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.g95f-game-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 38, 59, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.g95f-game-card:hover,
.g95f-game-card:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(205, 133, 63, 0.22);
    border-color: var(--g95f-primary);
}

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

.g95f-game-name {
    padding: 0.45rem 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--g95f-bg);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ==================== Category Tabs ==================== */
.g95f-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.3rem;
}

.g95f-category-tabs::-webkit-scrollbar {
    display: none;
}

.g95f-tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1.5px solid var(--g95f-border);
    background: var(--g95f-surface);
    color: var(--g95f-bg);
}

.g95f-tab-btn.active,
.g95f-tab-btn:hover,
.g95f-tab-btn:active {
    background: var(--g95f-primary);
    color: var(--g95f-surface);
    border-color: var(--g95f-primary);
}

/* ==================== Info Cards & Content Blocks ==================== */
.g95f-info-card {
    background: linear-gradient(145deg, var(--g95f-surface) 0%, #FEFDF5 100%);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px var(--g95f-shadow);
    border: 1px solid rgba(222, 184, 135, 0.3);
}

.g95f-info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g95f-bg);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g95f-info-card h2 i {
    color: var(--g95f-primary);
}

.g95f-info-card p {
    font-size: 1.25rem;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 0.6rem;
}

.g95f-info-card ul {
    padding-left: 1.2rem;
}

.g95f-info-card li {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0.4rem;
    list-style: disc;
}

/* ==================== CTA Button (Large) ==================== */
.g95f-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--g95f-primary) 0%, var(--g95f-primary-dark) 100%);
    color: var(--g95f-surface);
    border: none;
    border-radius: 14px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(205, 133, 63, 0.4);
    margin: 1rem 0;
}

.g95f-cta-btn:hover,
.g95f-cta-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(205, 133, 63, 0.55);
}

.g95f-cta-btn i {
    font-size: 1.5rem;
}

/* ==================== Feature List ==================== */
.g95f-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.g95f-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem;
    background: rgba(255, 250, 205, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--g95f-primary);
}

.g95f-feature-item .g95f-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g95f-primary);
    color: var(--g95f-surface);
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.g95f-feature-item .g95f-feature-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--g95f-text);
}

.g95f-feature-text strong {
    color: var(--g95f-bg);
}

/* ==================== Bottom Navigation ==================== */
.g95f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g95f-bg) 0%, #151E30 100%);
    box-shadow: 0 -3px 16px rgba(27, 38, 59, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0.3rem 0.3rem;
    border-top: 2px solid var(--g95f-primary);
}

.g95f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 54px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px;
    padding: 0.25rem 0.4rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.g95f-nav-item i {
    font-size: 21px;
    color: var(--g95f-primary-light);
    margin-bottom: 0.15rem;
    transition: all 0.25s ease;
}

.g95f-nav-item span {
    font-size: 0.75rem;
    color: var(--g95f-primary-light);
    font-weight: 500;
    transition: all 0.25s ease;
}

.g95f-nav-item:hover,
.g95f-nav-item:active {
    background: rgba(205, 133, 63, 0.15);
    transform: scale(1.08);
}

.g95f-nav-item:hover i,
.g95f-nav-item:active i,
.g95f-nav-item.g95f-nav-active i {
    color: var(--g95f-surface);
    font-size: 23px;
}

.g95f-nav-item:hover span,
.g95f-nav-item:active span,
.g95f-nav-item.g95f-nav-active span {
    color: var(--g95f-surface);
    font-weight: 700;
}

.g95f-nav-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--g95f-surface);
    border-radius: 0 0 3px 3px;
}

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

/* Add bottom padding on mobile only */
@media (max-width: 768px) {
    main.g95f-main,
    .g95f-main {
        padding-bottom: 80px;
    }
}

/* ==================== Footer ==================== */
.g95f-footer {
    background: linear-gradient(180deg, var(--g95f-bg) 0%, #121A2C 100%);
    color: var(--g95f-surface);
    padding: 2rem 1.2rem 7rem;
    margin-top: 1.5rem;
    border-top: 3px solid var(--g95f-primary);
}

.g95f-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .g95f-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.g95f-footer-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--g95f-primary-light);
}

.g95f-footer-links a {
    display: block;
    padding: 0.35rem 0;
    font-size: 1.15rem;
    color: rgba(255, 250, 205, 0.75);
    transition: color 0.2s;
}

.g95f-footer-links a:hover {
    color: var(--g95f-primary);
}

.g95f-footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(222, 184, 135, 0.2);
    font-size: 1.05rem;
    color: rgba(255, 250, 205, 0.5);
}

/* ==================== Touch Feedback ==================== */
.g95f-touch-active {
    transform: scale(0.94) !important;
    opacity: 0.85 !important;
}

/* ==================== Utility Classes ==================== */
.g95f-text-center { text-align: center; }
.g95f-text-primary { color: var(--g95f-primary); }
.g95f-mt-1 { margin-top: 0.8rem; }
.g95f-mb-1 { margin-bottom: 0.8rem; }
.g95f-hidden { display: none !important; }

/* ==================== Link Text Style (for SEO internal links) ==================== */
.g95f-inline-link {
    color: var(--g95f-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(205, 133, 63, 0.4);
    text-underline-offset: 2px;
    transition: all 0.2s;
}

.g95f-inline-link:hover {
    color: var(--g95f-primary-dark);
    text-decoration-color: var(--g95f-primary-dark);
}
