/* 99WIM Website - Mobile-First CSS Styles */
/* Color Palette: #3A3A3A | #8FBC8F | #A9A9A9 | #3CB371 | #00E5FF | #98FB98 */

/* 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #98FB98;
    background: linear-gradient(135deg, #3A3A3A 0%, #2a2a2a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Container and Layout */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #00E5FF;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #00E5FF;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3CB371;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #A9A9A9;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(58, 58, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #3CB371;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.8rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00E5FF;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-btn {
    background: linear-gradient(135deg, #3CB371, #00E5FF);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #00E5FF;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
}

/* Mobile Navigation Menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 28rem;
    height: 100vh;
    background: linear-gradient(180deg, #3A3A3A, #2a2a2a);
    border-left: 1px solid #3CB371;
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.nav-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #8FBC8F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-close {
    background: none;
    border: none;
    color: #00E5FF;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    list-style: none;
    padding: 2rem 0;
}

.nav-item {
    border-bottom: 1px solid rgba(143, 188, 143, 0.2);
}

.nav-link {
    display: block;
    padding: 1.5rem 2rem;
    color: #98FB98;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(60, 179, 113, 0.1);
    color: #00E5FF;
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

/* Hero Carousel */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(58, 58, 58, 0.7), rgba(0, 229, 255, 0.3));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

/* Game Grid */
.games-section {
    margin-bottom: 3rem;
}

.game-category {
    margin-bottom: 3rem;
}

.category-title {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(60, 179, 113, 0.2), rgba(0, 229, 255, 0.1));
    border-radius: 1rem;
    border: 1px solid #3CB371;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(58, 58, 58, 0.8);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(143, 188, 143, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
    border-color: #00E5FF;
}

.game-img {
    width: 100%;
    height: 6rem;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.game-img.lazy {
    opacity: 0.5;
    filter: blur(2px);
}

.game-name {
    font-size: 1.1rem;
    color: #98FB98;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.content-module {
    background: rgba(58, 58, 58, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(143, 188, 143, 0.3);
}

.module-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.module-icon {
    font-size: 2.4rem;
    color: #3CB371;
    margin-right: 1rem;
}

.module-content {
    color: #A9A9A9;
    line-height: 1.6;
}

.module-content ul {
    list-style: none;
    padding: 0;
}

.module-content li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.module-content li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #3CB371;
}

/* Promotional Links and Buttons */
.promo-link, .promo-btn {
    color: #00E5FF;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-link:hover {
    color: #3CB371;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3CB371, #00E5FF);
    color: white;
    padding: 1.2rem 2.4rem;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0.5rem;
    min-height: 4.4rem;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.4);
    color: white;
}

/* RTP Analysis */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.rtp-card {
    background: rgba(60, 179, 113, 0.1);
    border: 1px solid #3CB371;
    border-radius: 0.8rem;
    padding: 1.5rem;
    text-align: center;
}

.rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00E5FF;
    margin-bottom: 0.5rem;
}

.rtp-label {
    font-size: 1.2rem;
    color: #8FBC8F;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    border-top: 1px solid #3CB371;
    margin-top: 4rem;
    padding: 3rem 0 8rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #8FBC8F;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00E5FF;
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    font-size: 1.4rem;
    color: #3CB371;
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 30rem;
    margin: 0 auto;
}

.partner-img {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-img:hover {
    opacity: 1;
}

.copyright {
    color: #8FBC8F;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 58, 58, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #3CB371;
    z-index: 1000;
    padding: 1rem 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8FBC8F;
    transition: all 0.3s ease;
    padding: 0.5rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
}

.bottom-nav-item:hover {
    color: #00E5FF;
    transform: translateY(-1px);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* FAQ Styles */
.faq-item {
    background: rgba(58, 58, 58, 0.6);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(143, 188, 143, 0.3);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #00E5FF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #A9A9A9;
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 430px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .rtp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading { animation: pulse 1.5s ease-in-out infinite; } 