/* 99WIM Universal CSS Styles */

/* Import Icon Libraries */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/css/ionicons.min.css');

/* 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #EE82EE;
    background: linear-gradient(135deg, #141414 0%, #0000CD 100%);
    min-height: 100vh;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Mobile-First Container */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #0000CD;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #EE82EE;
}

.logo-container img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.4rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF0000;
}

.header-buttons {
    display: flex;
    gap: 0.8rem;
}

.header-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.register-btn {
    background: linear-gradient(45deg, #FF0000, #B22222);
    color: white;
}

.login-btn {
    background: linear-gradient(45deg, #0000CD, #EE82EE);
    color: white;
}

.menu-toggle {
    background: none;
    border: none;
    color: #EE82EE;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, #141414 0%, #0000CD 100%);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.nav-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(238, 130, 238, 0.3);
}

.nav-close {
    background: none;
    border: none;
    color: #EE82EE;
    font-size: 2.4rem;
    cursor: pointer;
    float: right;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(238, 130, 238, 0.1);
}

.nav-menu a {
    display: block;
    padding: 1.5rem;
    color: #EE82EE;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(238, 130, 238, 0.1);
    color: #FF0000;
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    padding-bottom: 8rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.8);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.3), rgba(0, 0, 205, 0.3));
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FF0000;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(238, 130, 238, 0.2);
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #FF0000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #EE82EE;
    margin-bottom: 1rem;
}

.section-content {
    color: #EE82EE;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Game Grid Styles */
.game-category {
    margin-bottom: 2.5rem;
}

.game-category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0000CD;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-item {
    background: rgba(0, 0, 205, 0.1);
    border: 1px solid rgba(238, 130, 238, 0.3);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    border-color: #FF0000;
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.6rem;
    object-fit: cover;
    flex-shrink: 0;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #EE82EE;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

/* Button Styles */
.promo-btn, .promo-link {
    display: inline-block;
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #FF0000, #B22222);
    color: white;
    text-decoration: none;
    border-radius: 0.8rem;
    font-weight: bold;
    font-size: 1.4rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
}

.promo-btn:hover, .promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.promo-btn.secondary {
    background: linear-gradient(45deg, #0000CD, #EE82EE);
}

/* Footer Styles */
.footer {
    background: rgba(20, 20, 20, 0.95);
    padding: 3rem 1.5rem 10rem;
    border-top: 2px solid #0000CD;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-link {
    color: #EE82EE;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(238, 130, 238, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(238, 130, 238, 0.1);
    color: #FF0000;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: #EE82EE;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(238, 130, 238, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 2px solid #0000CD;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: #EE82EE;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: #FF0000;
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 430px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .header-content {
        padding: 0.8rem;
    }
    
    .section {
        padding: 1.5rem 1rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
        gap: 0.8rem;
    }
    
    .game-item {
        padding: 0.8rem;
        min-height: 8.5rem;
    }
    
    .game-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .game-name {
        font-size: 1rem;
    }
}

/* 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; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
.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;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden;
} 