/* GGPerya CSS Stylesheet - Mobile First Design */
/* All classes use prefix g81a- to avoid conflicts */

/* CSS Variables */
:root {
    --g81a-primary: #00FF7F;
    --g81a-secondary: #BF360C;
    --g81a-accent: #FFEF94;
    --g81a-dark: #333333;
    --g81a-light: #CED4DA;
    --g81a-warm: #DEB887;
    --g81a-bg: #1a1a1a;
    --g81a-text: #f5f5f5;
    --g81a-card-bg: #2d2d2d;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--g81a-text);
    background-color: var(--g81a-bg);
    min-height: 100vh;
}

/* Container */
.g81a-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.g81a-wrapper {
    padding-bottom: 80px;
}

/* Header */
.g81a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g81a-dark) 0%, #222 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.g81a-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g81a-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--g81a-primary);
    font-weight: 700;
    font-size: 1.8rem;
}

.g81a-logo img {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

.g81a-header-actions {
    display: flex;
    gap: 0.5rem;
}

.g81a-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g81a-btn-primary {
    background: linear-gradient(135deg, var(--g81a-primary) 0%, #00CC66 100%);
    color: var(--g81a-dark);
}

.g81a-btn-secondary {
    background: transparent;
    color: var(--g81a-primary);
    border: 2px solid var(--g81a-primary);
}

.g81a-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
}

.g81a-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--g81a-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g81a-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--g81a-dark);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.g81a-mobile-menu.g81a-menu-open {
    max-height: 500px;
    overflow-y: auto;
}

.g81a-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.g81a-menu-item {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g81a-menu-link {
    color: var(--g81a-text);
    text-decoration: none;
    display: block;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.g81a-menu-link:hover {
    color: var(--g81a-primary);
}

/* Main Content */
.g81a-main {
    margin-top: 60px;
    padding: 1rem 0;
}

/* Carousel */
.g81a-carousel {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.g81a-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.g81a-carousel-item {
    min-width: 100%;
}

.g81a-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section */
.g81a-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--g81a-card-bg);
    border-radius: 8px;
}

.g81a-section-title {
    color: var(--g81a-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Game Grid */
.g81a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.g81a-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g81a-game-item:hover {
    transform: scale(1.05);
}

.g81a-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    background: var(--g81a-dark);
}

.g81a-game-name {
    font-size: 1rem;
    color: var(--g81a-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g81a-game-link {
    text-decoration: none;
    display: block;
}

/* Bottom Navigation */
.g81a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g81a-dark) 0%, #222 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    border-top: 2px solid var(--g81a-primary);
}

.g81a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--g81a-light);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.g81a-nav-item:hover {
    color: var(--g81a-primary);
    transform: scale(1.1);
}

.g81a-nav-item.g81a-active {
    color: var(--g81a-primary);
}

.g81a-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.g81a-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.g81a-footer {
    background: var(--g81a-dark);
    padding: 2rem 1rem 100px 1rem;
    text-align: center;
}

.g81a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g81a-footer-link {
    color: var(--g81a-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g81a-footer-link:hover {
    color: var(--g81a-accent);
}

.g81a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g81a-partner-logo {
    max-width: 60px;
    max-height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.g81a-partner-logo:hover {
    opacity: 1;
}

.g81a-copyright {
    color: var(--g81a-light);
    font-size: 1.1rem;
}

/* Utility Classes */
.g81a-text-center {
    text-align: center;
}

.g81a-mb-1 {
    margin-bottom: 1rem;
}

.g81a-mb-2 {
    margin-bottom: 2rem;
}

.g81a-mt-1 {
    margin-top: 1rem;
}

.g81a-mt-2 {
    margin-top: 2rem;
}

/* Responsive */
@media (min-width: 769px) {
    .g81a-bottom-nav {
        display: none;
    }

    .g81a-wrapper {
        padding-bottom: 2rem;
    }

    .g81a-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .g81a-wrapper {
        padding-bottom: 80px;
    }
}
