/* Jiliko 2 CSS Styles - All classes use geac- prefix */

/* CSS Variables */
:root {
    --geac-primary: #273746;
    --geac-secondary: #5F9EA0;
    --geac-accent: #40E0D0;
    --geac-dark: #191970;
    --geac-bg: #1a1a2e;
    --geac-text: #e8e8e8;
    --geac-text-secondary: #b8b8b8;
    --geac-border: #333;
    --geac-success: #28a745;
    --geac-warning: #ffc107;
    --geac-danger: #dc3545;
    --geac-info: #17a2b8;

    /* Typography */
    --geac-font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --geac-font-secondary: 'Arial', sans-serif;

    /* Spacing */
    --geac-spacing-xs: 0.4rem;
    --geac-spacing-sm: 0.8rem;
    --geac-spacing-md: 1.6rem;
    --geac-spacing-lg: 2.4rem;
    --geac-spacing-xl: 3.2rem;

    /* Border Radius */
    --geac-radius-sm: 0.4rem;
    --geac-radius-md: 0.8rem;
    --geac-radius-lg: 1.2rem;
    --geac-radius-xl: 1.6rem;

    /* Shadows */
    --geac-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --geac-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --geac-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --geac-transition-fast: 0.2s ease;
    --geac-transition-normal: 0.3s ease;
    --geac-transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--geac-font-primary);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--geac-text);
    background-color: var(--geac-bg);
    overflow-x: hidden;
}

/* Typography */
.geac-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--geac-accent);
    margin-bottom: var(--geac-spacing-md);
    line-height: 1.2;
}

.geac-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--geac-secondary);
    margin-bottom: var(--geac-spacing-sm);
    line-height: 1.3;
}

.geac-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--geac-text);
    margin-bottom: var(--geac-spacing-sm);
    line-height: 1.4;
}

.geac-text {
    font-size: 1.4rem;
    color: var(--geac-text);
    line-height: 1.5;
    margin-bottom: var(--geac-spacing-sm);
}

.geac-text-small {
    font-size: 1.2rem;
    color: var(--geac-text-secondary);
    line-height: 1.4;
}

/* Layout */
.geac-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--geac-spacing-sm);
}

.geac-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.geac-main {
    flex: 1;
    padding-bottom: 8rem; /* Space for bottom nav */
}

.geac-grid {
    display: grid;
    gap: var(--geac-spacing-sm);
}

.geac-flex {
    display: flex;
    align-items: center;
}

.geac-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.geac-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
.geac-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    padding: var(--geac-spacing-sm);
    z-index: 1000;
    box-shadow: var(--geac-shadow-md);
    border-bottom: 2px solid var(--geac-accent);
}

.geac-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.geac-logo {
    display: flex;
    align-items: center;
    gap: var(--geac-spacing-xs);
    text-decoration: none;
    color: var(--geac-text);
}

.geac-logo-icon {
    width: 24px;
    height: 24px;
    background: var(--geac-accent);
    border-radius: var(--geac-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--geac-primary);
}

.geac-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--geac-accent);
}

.geac-header-actions {
    display: flex;
    gap: var(--geac-spacing-xs);
}

/* Buttons */
.geac-btn {
    padding: var(--geac-spacing-xs) var(--geac-spacing-sm);
    border: none;
    border-radius: var(--geac-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--geac-transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Touch target size */
    min-width: 60px;
}

.geac-btn-primary {
    background: linear-gradient(135deg, var(--geac-accent) 0%, var(--geac-secondary) 100%);
    color: var(--geac-primary);
    box-shadow: var(--geac-shadow-sm);
}

.geac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--geac-shadow-md);
}

.geac-btn-secondary {
    background: transparent;
    color: var(--geac-text);
    border: 2px solid var(--geac-secondary);
}

.geac-btn-secondary:hover {
    background: var(--geac-secondary);
    color: var(--geac-primary);
}

.geac-btn-outline {
    background: transparent;
    color: var(--geac-text);
    border: 1px solid var(--geac-border);
}

.geac-btn-outline:hover {
    background: var(--geac-border);
    color: var(--geac-accent);
}

/* Mobile Menu */
.geac-mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--geac-text);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--geac-spacing-xs);
    border-radius: var(--geac-radius-sm);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geac-mobile-menu-toggle:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--geac-accent);
}

.geac-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    z-index: 9999;
    transition: right var(--geac-transition-normal);
    padding: var(--geac-spacing-lg);
    box-shadow: var(--geac-shadow-lg);
    border-left: 2px solid var(--geac-accent);
}

.geac-mobile-menu.active {
    right: 0;
}

.geac-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--geac-transition-normal);
}

.geac-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.geac-menu-close {
    position: absolute;
    top: var(--geac-spacing-md);
    right: var(--geac-spacing-md);
    background: none;
    border: none;
    color: var(--geac-text);
    font-size: 2.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geac-menu-nav {
    margin-top: var(--geac-spacing-xl);
}

.geac-menu-nav ul {
    list-style: none;
}

.geac-menu-nav li {
    margin-bottom: var(--geac-spacing-sm);
}

.geac-menu-nav a {
    color: var(--geac-text);
    text-decoration: none;
    font-size: 1.6rem;
    padding: var(--geac-spacing-sm);
    display: block;
    border-radius: var(--geac-radius-sm);
    transition: all var(--geac-transition-fast);
}

.geac-menu-nav a:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--geac-accent);
    transform: translateX(5px);
}

/* Carousel */
.geac-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--geac-radius-lg);
    margin-bottom: var(--geac-spacing-lg);
    box-shadow: var(--geac-shadow-md);
}

.geac-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--geac-transition-normal);
    cursor: pointer;
}

.geac-carousel-slide.active {
    opacity: 1;
}

.geac-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geac-carousel-indicators {
    position: absolute;
    bottom: var(--geac-spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--geac-spacing-xs);
}

.geac-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--geac-transition-fast);
}

.geac-carousel-indicator.active {
    background: var(--geac-accent);
    transform: scale(1.2);
}

/* Game Grid */
.geac-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--geac-spacing-sm);
    margin-bottom: var(--geac-spacing-lg);
}

.geac-game-item {
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    border-radius: var(--geac-radius-md);
    padding: var(--geac-spacing-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--geac-transition-fast);
    border: 1px solid var(--geac-border);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.geac-game-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--geac-shadow-md);
    border-color: var(--geac-accent);
}

.geac-game-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--geac-spacing-xs);
    border-radius: var(--geac-radius-sm);
    overflow: hidden;
}

.geac-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geac-game-name {
    font-size: 1rem;
    color: var(--geac-text);
    line-height: 1.2;
    font-weight: 500;
}

/* Cards */
.geac-card {
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    border-radius: var(--geac-radius-lg);
    padding: var(--geac-spacing-md);
    margin-bottom: var(--geac-spacing-lg);
    border: 1px solid var(--geac-border);
    box-shadow: var(--geac-shadow-sm);
}

.geac-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--geac-spacing-md);
    padding-bottom: var(--geac-spacing-sm);
    border-bottom: 1px solid var(--geac-border);
}

.geac-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--geac-accent);
}

/* Footer */
.geac-footer {
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    padding: var(--geac-spacing-lg) var(--geac-spacing-sm);
    margin-top: var(--geac-spacing-xl);
    border-top: 2px solid var(--geac-accent);
}

.geac-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.geac-footer-section {
    margin-bottom: var(--geac-spacing-lg);
}

.geac-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--geac-accent);
    margin-bottom: var(--geac-spacing-sm);
}

.geac-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--geac-spacing-sm);
    margin-bottom: var(--geac-spacing-md);
}

.geac-footer-links a {
    color: var(--geac-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: var(--geac-spacing-xs) var(--geac-spacing-sm);
    border: 1px solid var(--geac-border);
    border-radius: var(--geac-radius-sm);
    transition: all var(--geac-transition-fast);
}

.geac-footer-links a:hover {
    color: var(--geac-accent);
    border-color: var(--geac-accent);
}

.geac-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--geac-spacing-sm);
    margin: var(--geac-spacing-md) 0;
}

.geac-partner-item {
    width: 40px;
    height: 40px;
    background: var(--geac-border);
    border-radius: var(--geac-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--geac-text-secondary);
}

.geac-copyright {
    text-align: center;
    font-size: 1rem;
    color: var(--geac-text-secondary);
    margin-top: var(--geac-spacing-md);
    padding-top: var(--geac-spacing-md);
    border-top: 1px solid var(--geac-border);
}

/* Bottom Navigation */
.geac-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--geac-primary) 0%, var(--geac-dark) 100%);
    border-top: 2px solid var(--geac-accent);
    z-index: 1000;
    box-shadow: var(--geac-shadow-lg);
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.geac-bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: var(--geac-spacing-xs);
    cursor: pointer;
    transition: all var(--geac-transition-fast);
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.geac-bottom-nav-item:hover {
    background: rgba(64, 224, 208, 0.1);
}

.geac-bottom-nav-item.active {
    color: var(--geac-accent);
    background: rgba(64, 224, 208, 0.2);
}

.geac-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.geac-bottom-nav-text {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 769px) {
    .geac-bottom-nav {
        display: none;
    }

    .geac-main {
        padding-bottom: 0;
    }

    .geac-container {
        max-width: 1200px;
    }

    .geac-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .geac-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }
}

/* Utility Classes */
.geac-text-center {
    text-align: center;
}

.geac-text-left {
    text-align: left;
}

.geac-text-right {
    text-align: right;
}

.geac-mb-sm {
    margin-bottom: var(--geac-spacing-sm);
}

.geac-mb-md {
    margin-bottom: var(--geac-spacing-md);
}

.geac-mb-lg {
    margin-bottom: var(--geac-spacing-lg);
}

.geac-mt-sm {
    margin-top: var(--geac-spacing-sm);
}

.geac-mt-md {
    margin-top: var(--geac-spacing-md);
}

.geac-mt-lg {
    margin-top: var(--geac-spacing-lg);
}

.geac-p-sm {
    padding: var(--geac-spacing-sm);
}

.geac-p-md {
    padding: var(--geac-spacing-md);
}

.geac-p-lg {
    padding: var(--geac-spacing-lg);
}

.geac-hidden {
    display: none !important;
}

.geac-visible {
    display: block !important;
}

/* Animations */
@keyframes geac-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes geac-slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.geac-fade-in {
    animation: geac-fadeIn var(--geac-transition-normal);
}

.geac-slide-in {
    animation: geac-slideIn var(--geac-transition-normal);
}

/* Loading States */
.geac-loading {
    position: relative;
    pointer-events: none;
}

.geac-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--geac-accent);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.geac-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.geac-focus-visible:focus {
    outline: 2px solid var(--geac-accent);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--geac-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--geac-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--geac-secondary);
}