/**
 * kkkkjj Gaming Platform - Theme Stylesheet
 * @version 1.0.0
 * @author kkkkjj Development Team
 * @description Mobile-first responsive design
 */

/* CSS Variables with prefix */
:root {
    --g18f-primary: #2C3E50;
    --g18f-secondary: #B2DFDB;
    --g18f-accent: #C0C0C0;
    --g18f-bg: #2C3E50;
    --g18f-bg-light: #34495E;
    --g18f-text: #C0C0C0;
    --g18f-text-light: #B2DFDB;
    --g18f-text-white: #FFFFFF;
    --g18f-border: #4A6572;
    --g18f-success: #27AE60;
    --g18f-warning: #F39C12;
    --g18f-danger: #E74C3C;
    --g18f-gradient: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --g18f-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g18f-radius: 8px;
    --g18f-radius-lg: 12px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--g18f-bg);
    color: var(--g18f-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.g18f-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g18f-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header */
.g18f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g18f-gradient);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--g18f-shadow);
    transition: all 0.3s ease;
}

.g18f-header-scrolled {
    padding: 0.8rem 1.5rem;
    background: rgba(44, 62, 80, 0.98);
}

.g18f-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g18f-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g18f-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g18f-text-white);
    letter-spacing: 0.5px;
}

.g18f-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.g18f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--g18f-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.g18f-btn-primary {
    background: var(--g18f-secondary);
    color: var(--g18f-primary);
}

.g18f-btn-primary:hover,
.g18f-btn-primary:focus {
    background: #8BC34A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 223, 219, 0.4);
}

.g18f-btn-secondary {
    background: transparent;
    color: var(--g18f-text-white);
    border: 2px solid var(--g18f-secondary);
}

.g18f-btn-secondary:hover,
.g18f-btn-secondary:focus {
    background: var(--g18f-secondary);
    color: var(--g18f-primary);
}

.g18f-btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    min-height: 36px;
}

.g18f-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g18f-text-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g18f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g18f-bg-light);
    z-index: 9999;
    padding: 7rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g18f-menu-active {
    right: 0;
}

.g18f-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;
}

.g18f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g18f-nav-list {
    list-style: none;
}

.g18f-nav-item {
    display: block;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--g18f-border);
}

.g18f-nav-link {
    color: var(--g18f-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.g18f-nav-link:hover {
    color: var(--g18f-secondary);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g18f-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--g18f-radius-lg);
    margin-bottom: 2rem;
}

.g18f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g18f-slide-active {
    opacity: 1;
}

.g18f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g18f-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--g18f-text-white);
}

/* Section Titles */
.g18f-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g18f-text-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--g18f-secondary);
    display: inline-block;
}

.g18f-section-subtitle {
    font-size: 1.4rem;
    color: var(--g18f-text-light);
    margin-bottom: 1rem;
}

/* Game Grid */
.g18f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g18f-game-card {
    background: var(--g18f-bg-light);
    border-radius: var(--g18f-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.g18f-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--g18f-shadow);
}

.g18f-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.g18f-game-name {
    font-size: 1.1rem;
    color: var(--g18f-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.g18f-category-section {
    margin-bottom: 2.5rem;
}

.g18f-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.g18f-category-icon {
    font-size: 2.4rem;
    color: var(--g18f-secondary);
}

.g18f-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g18f-text-white);
}

/* Cards and Content Blocks */
.g18f-card {
    background: var(--g18f-bg-light);
    border-radius: var(--g18f-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--g18f-shadow);
}

.g18f-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g18f-text-white);
    margin-bottom: 1rem;
}

.g18f-card-text {
    font-size: 1.4rem;
    color: var(--g18f-text);
    line-height: 1.6;
}

/* Features List */
.g18f-features-list {
    list-style: none;
}

.g18f-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--g18f-border);
}

.g18f-feature-item:last-child {
    border-bottom: none;
}

.g18f-feature-icon {
    font-size: 2rem;
    color: var(--g18f-secondary);
    flex-shrink: 0;
}

.g18f-feature-content h4 {
    font-size: 1.4rem;
    color: var(--g18f-text-white);
    margin-bottom: 0.3rem;
}

.g18f-feature-content p {
    font-size: 1.2rem;
    color: var(--g18f-text);
}

/* Stats Grid */
.g18f-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g18f-stat-item {
    background: var(--g18f-bg-light);
    border-radius: var(--g18f-radius);
    padding: 1.2rem;
    text-align: center;
}

.g18f-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g18f-secondary);
}

.g18f-stat-label {
    font-size: 1.2rem;
    color: var(--g18f-text);
    margin-top: 0.3rem;
}

/* Footer */
.g18f-footer {
    background: var(--g18f-bg-light);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.g18f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g18f-footer-link {
    color: var(--g18f-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.g18f-footer-link:hover {
    color: var(--g18f-secondary);
}

.g18f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g18f-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g18f-partner-logo:hover {
    opacity: 1;
}

.g18f-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g18f-text);
    padding-top: 1rem;
    border-top: 1px solid var(--g18f-border);
}

/* Bottom Navigation */
.g18f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--g18f-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .g18f-bottom-nav {
        display: none;
    }
}

.g18f-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--g18f-text);
    transition: all 0.3s ease;
    text-decoration: none;
}

.g18f-nav-btn:hover,
.g18f-nav-btn:focus {
    color: var(--g18f-secondary);
    transform: scale(1.1);
}

.g18f-nav-btn.active {
    color: var(--g18f-secondary);
}

.g18f-nav-btn-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.g18f-nav-btn-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Touch states */
.g18f-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Promotional Links */
.g18f-promo-link {
    color: var(--g18f-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g18f-promo-link:hover {
    color: var(--g18f-text-white);
    text-decoration: underline;
}

.g18f-promo-text {
    font-size: 1.4rem;
    color: var(--g18f-text);
    margin-bottom: 1rem;
}

/* Utility Classes */
.g18f-text-center { text-align: center; }
.g18f-text-left { text-align: left; }
.g18f-mb-1 { margin-bottom: 1rem; }
.g18f-mb-2 { margin-bottom: 2rem; }
.g18f-mt-1 { margin-top: 1rem; }
.g18f-mt-2 { margin-top: 2rem; }
.g18f-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.g18f-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Responsive Adjustments */
@media (max-width: 430px) {
    html {
        font-size: 58%;
    }

    .g18f-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .g18f-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .g18f-menu-toggle {
        display: none;
    }

    .g18f-header {
        max-width: 100%;
        padding: 1rem 2rem;
    }

    .g18f-container {
        max-width: 1200px;
    }

    .g18f-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    main {
        padding-bottom: 2rem;
    }
}
