/**
 * nunstar - Main Stylesheet
 * Website: nunstar.cfd
 * Prefix: w4ede-
 */

/* CSS Variables */
:root {
    --w4ede-bg-primary: #0D1117;
    --w4ede-bg-secondary: #161B22;
    --w4ede-bg-tertiary: #21262D;
    --w4ede-text-primary: #87CEEB;
    --w4ede-text-secondary: #C9D1D9;
    --w4ede-accent-purple: #9400D3;
    --w4ede-accent-violet: #7B68EE;
    --w4ede-gold: #FFD700;
    --w4ede-white: #FFFFFF;
    --w4ede-border: #30363D;
    --w4ede-shadow: rgba(0, 0, 0, 0.4);
    --w4ede-gradient-purple: linear-gradient(135deg, #9400D3, #7B68EE);
    --w4ede-radius: 8px;
    --w4ede-radius-lg: 12px;
    --w4ede-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w4ede-text-secondary);
    background-color: var(--w4ede-bg-primary);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

/* Header */
.w4ede-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w4ede-bg-secondary);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--w4ede-border);
}

.w4ede-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w4ede-logo img {
    height: 32px;
    width: auto;
}

.w4ede-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4ede-text-primary);
    background: var(--w4ede-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w4ede-header-actions {
    display: flex;
    gap: 10px;
}

.w4ede-btn {
    padding: 8px 16px;
    border-radius: var(--w4ede-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--w4ede-transition);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w4ede-btn-login {
    background: transparent;
    color: var(--w4ede-text-primary);
    border: 1px solid var(--w4ede-text-primary);
}

.w4ede-btn-login:hover {
    background: rgba(135, 206, 235, 0.1);
}

.w4ede-btn-register {
    background: var(--w4ede-gradient-purple);
    color: var(--w4ede-white);
}

.w4ede-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 0, 211, 0.4);
}

/* Mobile Menu Toggle */
.w4ede-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w4ede-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px;
}

/* Main Content */
.w4ede-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.w4ede-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.w4ede-slides {
    position: relative;
}

.w4ede-slide {
    display: none;
    width: 100%;
}

.w4ede-slide:first-child {
    display: block;
}

.w4ede-slide img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.w4ede-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w4ede-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w4ede-transition);
}

.w4ede-dot-active, .w4ede-dot:hover {
    background: var(--w4ede-text-primary);
}

/* Section Styles */
.w4ede-section {
    padding: 20px 15px;
}

.w4ede-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4ede-text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w4ede-section-title i {
    color: var(--w4ede-accent-purple);
}

/* Game Grid */
.w4ede-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.w4ede-game-card {
    background: var(--w4ede-bg-secondary);
    border-radius: var(--w4ede-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--w4ede-transition);
    border: 1px solid var(--w4ede-border);
}

.w4ede-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w4ede-accent-purple);
    box-shadow: 0 4px 12px var(--w4ede-shadow);
}

.w4ede-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w4ede-game-name {
    padding: 6px;
    font-size: 1rem;
    color: var(--w4ede-text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.w4ede-category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

.w4ede-category-tabs::-webkit-scrollbar {
    display: none;
}

.w4ede-category-tab {
    padding: 8px 16px;
    background: var(--w4ede-bg-tertiary);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--w4ede-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--w4ede-transition);
    border: 1px solid var(--w4ede-border);
}

.w4ede-category-tab:hover, .w4ede-category-tab-active {
    background: var(--w4ede-gradient-purple);
    color: var(--w4ede-white);
    border-color: transparent;
}

/* Info Cards */
.w4ede-info-card {
    background: var(--w4ede-bg-secondary);
    border-radius: var(--w4ede-radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--w4ede-border);
}

.w4ede-info-card h3 {
    color: var(--w4ede-text-primary);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.w4ede-info-card p {
    color: var(--w4ede-text-secondary);
    font-size: 1.3rem;
    line-height: 1.7;
}

.w4ede-info-card ul {
    margin-top: 10px;
}

.w4ede-info-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--w4ede-text-secondary);
    font-size: 1.3rem;
}

.w4ede-info-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--w4ede-accent-purple);
}

/* CTA Buttons */
.w4ede-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.w4ede-cta-btn {
    padding: 12px;
    background: var(--w4ede-gradient-purple);
    color: var(--w4ede-white);
    border-radius: var(--w4ede-radius);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--w4ede-transition);
}

.w4ede-cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(148, 0, 211, 0.5);
}

/* Footer */
.w4ede-footer {
    background: var(--w4ede-bg-secondary);
    padding: 30px 15px;
    border-top: 1px solid var(--w4ede-border);
}

.w4ede-footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.w4ede-footer-brand h3 {
    color: var(--w4ede-text-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.w4ede-footer-brand p {
    color: var(--w4ede-text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

.w4ede-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.w4ede-footer-link {
    padding: 6px 12px;
    background: var(--w4ede-bg-tertiary);
    border-radius: var(--w4ede-radius);
    font-size: 1.2rem;
    color: var(--w4ede-text-secondary);
    transition: var(--w4ede-transition);
}

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

.w4ede-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.w4ede-footer-promo-btn {
    padding: 10px 16px;
    background: var(--w4ede-gradient-purple);
    color: var(--w4ede-white);
    border-radius: var(--w4ede-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w4ede-transition);
}

.w4ede-footer-promo-btn:hover {
    transform: translateY(-2px);
}

.w4ede-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--w4ede-border);
    color: var(--w4ede-text-secondary);
    font-size: 1.2rem;
}

/* Mobile Bottom Navigation */
.w4ede-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w4ede-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 5px;
    border-top: 1px solid var(--w4ede-border);
    z-index: 1000;
    height: 64px;
}

.w4ede-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    cursor: pointer;
    transition: var(--w4ede-transition);
    border-radius: var(--w4ede-radius);
    padding: 4px 8px;
}

.w4ede-nav-item:hover, .w4ede-nav-item-active {
    background: rgba(148, 0, 211, 0.2);
}

.w4ede-nav-item i {
    font-size: 2.2rem;
    color: var(--w4ede-text-secondary);
    margin-bottom: 2px;
    transition: var(--w4ede-transition);
}

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

.w4ede-nav-item span {
    font-size: 1rem;
    color: var(--w4ede-text-secondary);
    transition: var(--w4ede-transition);
}

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

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

.w4ede-menu-active {
    right: 0;
}

.w4ede-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.w4ede-overlay-active {
    display: block;
}

.w4ede-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--w4ede-border);
}

.w4ede-menu-close {
    background: none;
    border: none;
    color: var(--w4ede-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.w4ede-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.w4ede-menu-link {
    padding: 12px 15px;
    color: var(--w4ede-text-secondary);
    font-size: 1.4rem;
    border-radius: var(--w4ede-radius);
    transition: var(--w4ede-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.w4ede-menu-link:hover {
    background: var(--w4ede-bg-tertiary);
    color: var(--w4ede-text-primary);
}

.w4ede-menu-link i {
    font-size: 1.8rem;
    color: var(--w4ede-accent-purple);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .w4ede-bottom-nav {
        display: none;
    }

    .w4ede-main {
        padding-bottom: 30px;
    }

    .w4ede-menu-toggle {
        display: block;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .w4ede-main {
        padding-bottom: 80px;
    }
}

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

.w4ede-mb-10 {
    margin-bottom: 10px;
}

.w4ede-mb-20 {
    margin-bottom: 20px;
}

.w4ede-highlight {
    color: var(--w4ede-text-primary);
    font-weight: 600;
}
