/**
 * FarPlay - Gaming Platform Stylesheet
 * Website: farplay.click
 * Prefix: g2c5-
 */

/* CSS Variables */
:root {
    --g2c5-primary: #1a1a2e;
    --g2c5-secondary: #16213e;
    --g2c5-accent: #e94560;
    --g2c5-accent-hover: #ff6b6b;
    --g2c5-gold: #ffd700;
    --g2c5-text: #ffffff;
    --g2c5-text-muted: #a0a0a0;
    --g2c5-bg-dark: #0f0f1a;
    --g2c5-bg-card: #1e1e3f;
    --g2c5-border: #2a2a4a;
    --g2c5-success: #00c853;
    --g2c5-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --g2c5-header-height: 70px;
    --g2c5-bottom-nav-height: 64px;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g2c5-bg-dark);
    color: var(--g2c5-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Header Styles */
.g2c5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g2c5-header-height);
    background: var(--g2c5-primary);
    border-bottom: 1px solid var(--g2c5-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.g2c5-header.g2c5-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.g2c5-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g2c5-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g2c5-logo img {
    height: 40px;
    width: auto;
}

.g2c5-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--g2c5-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.g2c5-nav-buttons {
    display: flex;
    gap: 12px;
}

.g2c5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.g2c5-btn-login {
    background: transparent;
    border: 2px solid var(--g2c5-accent);
    color: var(--g2c5-accent);
}

.g2c5-btn-login:hover {
    background: var(--g2c5-accent);
    color: var(--g2c5-text);
}

.g2c5-btn-register {
    background: var(--g2c5-gradient);
    color: var(--g2c5-text);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.g2c5-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.g2c5-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g2c5-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Desktop Navigation */
.g2c5-desktop-nav {
    display: flex;
    gap: 30px;
}

.g2c5-nav-link {
    color: var(--g2c5-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.g2c5-nav-link:hover,
.g2c5-nav-link.active {
    color: var(--g2c5-accent);
}

.g2c5-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g2c5-accent);
    transition: width 0.3s ease;
}

.g2c5-nav-link:hover::after,
.g2c5-nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.g2c5-hero {
    min-height: 100vh;
    padding-top: var(--g2c5-header-height);
    background: linear-gradient(135deg, var(--g2c5-bg-dark) 0%, var(--g2c5-secondary) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.g2c5-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/games/822c59be_super-ace.png') center/cover no-repeat;
    opacity: 0.1;
}

.g2c5-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.g2c5-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.g2c5-hero-title span {
    color: var(--g2c5-accent);
}

.g2c5-hero-subtitle {
    font-size: 18px;
    color: var(--g2c5-text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.g2c5-hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.g2c5-btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* Games Section */
.g2c5-section {
    padding: 80px 20px;
}

.g2c5-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--g2c5-text);
}

.g2c5-section-title span {
    color: var(--g2c5-accent);
}

.g2c5-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Tabs */
.g2c5-category-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.g2c5-category-tab {
    padding: 12px 24px;
    background: var(--g2c5-bg-card);
    border: 1px solid var(--g2c5-border);
    border-radius: 30px;
    color: var(--g2c5-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g2c5-category-tab:hover,
.g2c5-category-tab.g2c5-active {
    background: var(--g2c5-gradient);
    color: var(--g2c5-text);
    border-color: transparent;
}

/* Games Grid */
.g2c5-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.g2c5-game-card {
    background: var(--g2c5-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--g2c5-border);
}

.g2c5-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
    border-color: var(--g2c5-accent);
}

.g2c5-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g2c5-game-name {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--g2c5-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.g2c5-features {
    background: var(--g2c5-secondary);
}

.g2c5-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.g2c5-feature-card {
    background: var(--g2c5-bg-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--g2c5-border);
    transition: all 0.3s ease;
}

.g2c5-feature-card:hover {
    border-color: var(--g2c5-accent);
    transform: translateY(-3px);
}

.g2c5-feature-icon {
    font-size: 48px;
    color: var(--g2c5-accent);
    margin-bottom: 20px;
}

.g2c5-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.g2c5-feature-desc {
    color: var(--g2c5-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Promotions Section */
.g2c5-promo-banner {
    background: var(--g2c5-gradient);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.g2c5-promo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.g2c5-promo-desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Footer Styles */
.g2c5-footer {
    background: var(--g2c5-primary);
    border-top: 1px solid var(--g2c5-border);
    padding: 60px 20px 30px;
}

.g2c5-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.g2c5-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.g2c5-footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--g2c5-accent);
}

.g2c5-footer-links {
    list-style: none;
}

.g2c5-footer-links li {
    margin-bottom: 10px;
}

.g2c5-footer-links a {
    color: var(--g2c5-text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.g2c5-footer-links a:hover {
    color: var(--g2c5-accent);
}

.g2c5-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.g2c5-partner-logo {
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.g2c5-partner-logo:hover {
    opacity: 1;
}

.g2c5-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--g2c5-border);
}

.g2c5-copyright {
    color: var(--g2c5-text-muted);
    font-size: 13px;
}

/* Mobile Bottom Navigation */
.g2c5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g2c5-bottom-nav-height);
    background: linear-gradient(180deg, var(--g2c5-secondary) 0%, var(--g2c5-primary) 100%);
    border-top: 1px solid var(--g2c5-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.g2c5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--g2c5-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.g2c5-nav-item:hover,
.g2c5-nav-item.active {
    color: var(--g2c5-accent);
}

.g2c5-nav-item i,
.g2c5-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.g2c5-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.g2c5-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--g2c5-accent);
    border-radius: 0 0 3px 3px;
}

/* Mobile Menu */
#proc59-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--g2c5-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

#proc59-mobile-menu.proc59-active {
    right: 0;
}

#proc59-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;
}

#proc59-menu-overlay.proc59-active {
    opacity: 1;
    visibility: visible;
}

.g2c5-mobile-nav-links {
    list-style: none;
}

.g2c5-mobile-nav-links li {
    border-bottom: 1px solid var(--g2c5-border);
}

.g2c5-mobile-nav-links a {
    display: block;
    padding: 15px 0;
    color: var(--g2c5-text);
    font-size: 16px;
    transition: color 0.3s ease;
}

.g2c5-mobile-nav-links a:hover {
    color: var(--g2c5-accent);
}

/* Animations */
.g2c5-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.g2c5-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .g2c5-header-container {
        padding: 0 15px;
    }

    .g2c5-logo-text {
        font-size: 18px;
    }

    .g2c5-nav-buttons {
        gap: 8px;
    }

    .g2c5-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .g2c5-desktop-nav {
        display: none;
    }

    .g2c5-menu-toggle {
        display: block;
    }

    .g2c5-hero-title {
        font-size: 32px;
    }

    .g2c5-hero-subtitle {
        font-size: 15px;
    }

    .g2c5-section {
        padding: 50px 15px;
        padding-bottom: calc(50px + var(--g2c5-bottom-nav-height) + 20px);
    }

    .g2c5-section-title {
        font-size: 24px;
    }

    .g2c5-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .g2c5-category-tab {
        padding: 10px 18px;
        font-size: 12px;
    }

    .g2c5-promo-banner {
        padding: 25px 20px;
    }

    .g2c5-promo-title {
        font-size: 22px;
    }

    main {
        padding-bottom: calc(var(--g2c5-bottom-nav-height) + 20px);
    }
}

@media (min-width: 769px) {
    .g2c5-bottom-nav {
        display: none;
    }
}

@media (max-width: 430px) {
    .g2c5-hero-title {
        font-size: 26px;
    }

    .g2c5-btn-large {
        padding: 12px 30px;
        font-size: 14px;
    }

    .g2c5-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.g2c5-text-center {
    text-align: center;
}

.g2c5-mb-20 {
    margin-bottom: 20px;
}

.g2c5-mt-20 {
    margin-top: 20px;
}

.g2c5-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .g2c5-hidden-mobile {
        display: block;
    }

    .g2c5-hidden-desktop {
        display: none;
    }
}
