/**
 * Legend Link Maya - Theme Stylesheet
 * All classes use g7b8- prefix for namespace isolation
 * Color palette: #1B263B | #AFEEEE | #FFF176 | #40E0D0 | #48D1CC
 */

/* CSS Variables */
:root {
    --g7b8-primary: #40E0D0;
    --g7b8-secondary: #48D1CC;
    --g7b8-accent: #FFF176;
    --g7b8-bg-dark: #1B263B;
    --g7b8-bg-light: #0f1624;
    --g7b8-text-light: #AFEEEE;
    --g7b8-text-white: #ffffff;
    --g7b8-border: rgba(175, 238, 238, 0.2);
    --g7b8-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g7b8-radius: 8px;
    --g7b8-radius-lg: 12px;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--g7b8-bg-dark);
    color: var(--g7b8-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

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

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

/* Container */
.g7b8-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.g7b8-wrapper {
    width: 100%;
    padding: 1.5rem 0;
}

/* Header */
.g7b8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g7b8-bg-dark) 0%, rgba(27, 38, 59, 0.95) 100%);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--g7b8-border);
}

.g7b8-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    box-shadow: var(--g7b8-shadow);
}

.g7b8-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.g7b8-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7b8-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g7b8-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g7b8-primary);
    letter-spacing: 0.5px;
}

.g7b8-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7b8-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--g7b8-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
}

.g7b8-btn-primary {
    background: linear-gradient(135deg, var(--g7b8-primary) 0%, var(--g7b8-secondary) 100%);
    color: var(--g7b8-bg-dark);
}

.g7b8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.g7b8-btn-secondary {
    background: transparent;
    border: 2px solid var(--g7b8-primary);
    color: var(--g7b8-primary);
}

.g7b8-btn-secondary:hover {
    background: var(--g7b8-primary);
    color: var(--g7b8-bg-dark);
}

.g7b8-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g7b8-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.g7b8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g7b8-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.g7b8-menu-open {
    right: 0;
}

.g7b8-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;
}

.g7b8-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.g7b8-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--g7b8-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.g7b8-menu-list {
    list-style: none;
    padding: 0;
}

.g7b8-menu-item {
    margin-bottom: 0.5rem;
}

.g7b8-menu-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--g7b8-text-light);
    font-size: 1.4rem;
    border-radius: var(--g7b8-radius);
    transition: all 0.3s ease;
}

.g7b8-menu-link:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--g7b8-primary);
}

/* Main Content */
.g7b8-main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .g7b8-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g7b8-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--g7b8-radius-lg);
    margin-bottom: 1.5rem;
}

.g7b8-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g7b8-slide-active {
    opacity: 1;
}

.g7b8-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.g7b8-section {
    padding: 1.5rem 0;
}

.g7b8-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g7b8-text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7b8-section-title i {
    color: var(--g7b8-primary);
}

/* Game Grid */
.g7b8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g7b8-game-card {
    background: var(--g7b8-bg-light);
    border-radius: var(--g7b8-radius);
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--g7b8-border);
}

.g7b8-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g7b8-primary);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.2);
}

.g7b8-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.g7b8-game-name {
    font-size: 1rem;
    color: var(--g7b8-text-light);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Badge */
.g7b8-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(64, 224, 208, 0.15);
    color: var(--g7b8-primary);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Info Cards */
.g7b8-info-card {
    background: linear-gradient(135deg, var(--g7b8-bg-light) 0%, rgba(15, 22, 36, 0.8) 100%);
    border-radius: var(--g7b8-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--g7b8-border);
}

.g7b8-info-card h3 {
    color: var(--g7b8-accent);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.g7b8-info-card p {
    color: var(--g7b8-text-light);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Promo Links */
.g7b8-promo-link {
    color: var(--g7b8-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g7b8-promo-link:hover {
    color: var(--g7b8-accent);
}

.g7b8-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--g7b8-primary) 0%, var(--g7b8-secondary) 100%);
    color: var(--g7b8-bg-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--g7b8-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.g7b8-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(64, 224, 208, 0.4);
}

/* Features List */
.g7b8-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.g7b8-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(64, 224, 208, 0.05);
    border-radius: var(--g7b8-radius);
}

.g7b8-feature-item i {
    color: var(--g7b8-primary);
    font-size: 1.6rem;
    margin-top: 0.2rem;
}

.g7b8-feature-text {
    flex: 1;
}

.g7b8-feature-text strong {
    color: var(--g7b8-text-white);
    display: block;
    margin-bottom: 0.3rem;
}

/* Testimonials */
.g7b8-testimonial {
    background: var(--g7b8-bg-light);
    border-radius: var(--g7b8-radius-lg);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--g7b8-primary);
}

.g7b8-testimonial-text {
    font-style: italic;
    color: var(--g7b8-text-light);
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.g7b8-testimonial-author {
    font-size: 1.1rem;
    color: var(--g7b8-primary);
    font-weight: 600;
}

/* Footer */
.g7b8-footer {
    background: var(--g7b8-bg-light);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--g7b8-border);
}

.g7b8-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g7b8-footer-desc {
    font-size: 1.2rem;
    color: var(--g7b8-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.g7b8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.g7b8-footer-link {
    padding: 0.5rem 1rem;
    background: rgba(64, 224, 208, 0.1);
    color: var(--g7b8-text-light);
    border-radius: var(--g7b8-radius);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.g7b8-footer-link:hover {
    background: var(--g7b8-primary);
    color: var(--g7b8-bg-dark);
}

.g7b8-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(175, 238, 238, 0.6);
    padding-top: 1rem;
    border-top: 1px solid var(--g7b8-border);
}

/* Mobile Bottom Navigation */
.g7b8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(15, 22, 36, 0.98) 0%, var(--g7b8-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g7b8-border);
    padding: 0 0.5rem;
}

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

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

.g7b8-nav-item:hover,
.g7b8-nav-item-active {
    color: var(--g7b8-primary);
}

.g7b8-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.g7b8-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

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

.g7b8-mb-1 {
    margin-bottom: 1rem;
}

.g7b8-mb-2 {
    margin-bottom: 2rem;
}

.g7b8-hidden {
    display: none;
}

/* Animation */
@keyframes g7b8-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.g7b8-pulse {
    animation: g7b8-pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 430px) {
    html {
        font-size: 58%;
    }

    .g7b8-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .g7b8-game-name {
        font-size: 0.9rem;
    }
}
