/**
 * boom99 app - Main Stylesheet
 * All CSS classes use gce1- prefix for namespace isolation
 * Color palette: #6F4E37 | #FFDEAD | #9932CC | #0A0A0A | #004D40
 */

/* CSS Variables for easy theming */
:root {
    --gce1-primary: #6F4E37;
    --gce1-secondary: #FFDEAD;
    --gce1-accent: #9932CC;
    --gce1-dark: #0A0A0A;
    --gce1-teal: #004D40;
    --gce1-light: #FFDEAD;
    --gce1-text: #FFDEAD;
    --gce1-text-dark: #0A0A0A;
    --gce1-bg: #0A0A0A;
    --gce1-border: #9932CC;
    --gce1-shadow: rgba(153, 50, 204, 0.3);
    --gce1-gradient: linear-gradient(135deg, #6F4E37 0%, #004D40 100%);
    --gce1-gradient-accent: linear-gradient(135deg, #9932CC 0%, #6F4E37 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--gce1-text);
    background-color: var(--gce1-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.gce1-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    background-color: var(--gce1-dark);
}

/* Header */
.gce1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gce1-gradient);
    box-shadow: 0 2px 10px var(--gce1-shadow);
    padding: 0.8rem 1rem;
}

.gce1-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gce1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gce1-text);
    font-weight: 700;
    font-size: 1.8rem;
}

.gce1-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.gce1-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.gce1-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gce1-btn-primary {
    background: var(--gce1-accent);
    color: var(--gce1-light);
}

.gce1-btn-primary:hover {
    background: var(--gce1-secondary);
    color: var(--gce1-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gce1-shadow);
}

.gce1-btn-secondary {
    background: var(--gce1-secondary);
    color: var(--gce1-dark);
}

.gce1-btn-secondary:hover {
    background: var(--gce1-accent);
    color: var(--gce1-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gce1-shadow);
}

.gce1-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gce1-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.gce1-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--gce1-dark);
    padding: 1rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gce1-shadow);
    max-width: 430px;
    margin: 0 auto;
}

.gce1-menu-active {
    transform: translateY(0);
    opacity: 1;
}

.gce1-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.gce1-menu-link {
    padding: 1rem;
    background: var(--gce1-teal);
    color: var(--gce1-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.gce1-menu-link:hover {
    background: var(--gce1-accent);
    transform: translateX(5px);
}

/* Main Content */
main {
    margin-top: 60px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.gce1-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--gce1-shadow);
}

.gce1-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gce1-slide-active {
    opacity: 1;
}

.gce1-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gce1-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gce1-accent);
    color: var(--gce1-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--gce1-shadow);
}

.gce1-carousel-nav:hover {
    background: var(--gce1-secondary);
    color: var(--gce1-dark);
    transform: translateY(-50%) scale(1.1);
}

.gce1-carousel-prev {
    left: 10px;
}

.gce1-carousel-next {
    right: 10px;
}

/* Section Styles */
.gce1-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gce1-border);
}

.gce1-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gce1-secondary);
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.gce1-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gce1-gradient-accent);
    border-radius: 2px;
}

/* Game Grid */
.gce1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.gce1-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gce1-text);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gce1-game-item:hover {
    transform: scale(1.05);
}

.gce1-game-item:hover .gce1-game-name {
    color: var(--gce1-accent);
}

.gce1-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gce1-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--gce1-shadow);
    transition: all 0.3s ease;
}

.gce1-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gce1-game-name {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

/* Card Styles */
.gce1-card {
    background: var(--gce1-teal);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px var(--gce1-shadow);
    border: 2px solid var(--gce1-border);
    transition: all 0.3s ease;
}

.gce1-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--gce1-shadow);
}

.gce1-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gce1-secondary);
}

.gce1-card-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--gce1-text);
}

/* Feature List */
.gce1-feature-list {
    list-style: none;
    padding: 1rem 0;
}

.gce1-feature-item {
    padding: 1rem;
    margin: 0.8rem 0;
    background: var(--gce1-dark);
    border-radius: 8px;
    border-left: 4px solid var(--gce1-accent);
    transition: all 0.3s ease;
}

.gce1-feature-item:hover {
    background: var(--gce1-primary);
    transform: translateX(5px);
}

.gce1-feature-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gce1-secondary);
}

/* FAQ Styles */
.gce1-faq-item {
    margin: 1.5rem 0;
    background: var(--gce1-teal);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--gce1-shadow);
}

.gce1-faq-question {
    padding: 1.5rem;
    background: var(--gce1-primary);
    color: var(--gce1-text);
    font-weight: 700;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gce1-faq-question::after {
    content: '+';
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.gce1-faq-answer {
    padding: 1.5rem;
    color: var(--gce1-text);
    line-height: 1.6;
    display: none;
}

.gce1-faq-item.active .gce1-faq-answer {
    display: block;
}

.gce1-faq-item.active .gce1-faq-question::after {
    transform: rotate(45deg);
}

/* Footer */
.gce1-footer {
    background: var(--gce1-dark);
    padding: 3rem 1rem 8rem;
    border-top: 3px solid var(--gce1-accent);
    margin-top: 3rem;
}

@media (min-width: 769px) {
    .gce1-footer {
        padding-bottom: 3rem;
    }
}

.gce1-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.gce1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gce1-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--gce1-teal);
    color: var(--gce1-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.gce1-footer-link:hover {
    background: var(--gce1-accent);
    transform: translateY(-2px);
}

.gce1-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.gce1-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gce1-partner-logo:hover {
    transform: scale(1.1);
}

.gce1-copyright {
    text-align: center;
    color: var(--gce1-secondary);
    font-size: 1.3rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gce1-border);
}

/* Bottom Navigation (Mobile) */
.gce1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gce1-gradient);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 15px var(--gce1-shadow);
    border-top: 2px solid var(--gce1-accent);
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .gce1-bottom-nav {
        display: none;
    }
}

.gce1-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.gce1-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--gce1-text);
    transition: all 0.3s ease;
    gap: 0.3rem;
}

.gce1-nav-item:hover {
    color: var(--gce1-secondary);
    transform: scale(1.1);
}

.gce1-nav-active {
    color: var(--gce1-secondary);
}

.gce1-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gce1-nav-text {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

/* Promo Links */
.gce1-promo-link {
    color: var(--gce1-accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--gce1-accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gce1-promo-link:hover {
    color: var(--gce1-secondary);
    border-color: var(--gce1-secondary);
}

.gce1-promo-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gce1-gradient-accent);
    color: var(--gce1-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gce1-shadow);
    cursor: pointer;
    border: none;
}

.gce1-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--gce1-shadow);
    background: var(--gce1-secondary);
    color: var(--gce1-dark);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .gce1-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gce1-nav-text {
        font-size: 9px;
    }
}

/* Utility Classes */
.gce1-text-center {
    text-align: center;
}

.gce1-mt-1 { margin-top: 1rem; }
.gce1-mt-2 { margin-top: 2rem; }
.gce1-mb-1 { margin-bottom: 1rem; }
.gce1-mb-2 { margin-bottom: 2rem; }

.gce1-hide {
    display: none;
}

/* Animation */
@keyframes gce1-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.gce1-pulse {
    animation: gce1-pulse 2s infinite;
}
