/**
 * Nunstar Layout Stylesheet
 * @version 1.0.0
 * @description Mobile-first responsive design for Nunstar gaming platform
 */

/* CSS Variables */
:root {
    --w1f9b-primary: #DEB887;
    --w1f9b-secondary: #FFDEAD;
    --w1f9b-accent: #E5E5E5;
    --w1f9b-bg: #0F0F23;
    --w1f9b-bg-light: #1a1a35;
    --w1f9b-text: #E5E5E5;
    --w1f9b-text-dark: #0F0F23;
    --w1f9b-success: #4CAF50;
    --w1f9b-border: #2a2a4a;
    --w1f9b-shadow: rgba(0, 0, 0, 0.3);
    --w1f9b-header-height: 60px;
    --w1f9b-bottom-nav-height: 60px;
}

/* Reset & 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w1f9b-text);
    background-color: var(--w1f9b-bg);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: var(--w1f9b-bottom-nav-height);
}

body.w1f9b-loaded {
    opacity: 1;
}

/* Container */
.w1f9b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w1f9b-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.w1f9b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--w1f9b-header-height);
    background: linear-gradient(135deg, var(--w1f9b-bg) 0%, var(--w1f9b-bg-light) 100%);
    box-shadow: 0 2px 10px var(--w1f9b-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.w1f9b-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w1f9b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.w1f9b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.w1f9b-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w1f9b-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w1f9b-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.w1f9b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.w1f9b-btn-primary {
    background: linear-gradient(135deg, var(--w1f9b-primary) 0%, var(--w1f9b-secondary) 100%);
    color: var(--w1f9b-text-dark);
}

.w1f9b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.w1f9b-btn-secondary {
    background: transparent;
    color: var(--w1f9b-primary);
    border: 2px solid var(--w1f9b-primary);
}

.w1f9b-btn-secondary:hover {
    background: var(--w1f9b-primary);
    color: var(--w1f9b-text-dark);
}

.w1f9b-btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
}

/* Ripple Effect */
.w1f9b-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: w1f9b-ripple 0.6s linear;
}

@keyframes w1f9b-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Menu Toggle */
.w1f9b-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.w1f9b-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--w1f9b-primary);
    transition: all 0.3s ease;
}

.w1f9b-menu-toggle:hover span:nth-child(2) {
    width: 18px;
}

/* Mobile Menu */
.w1f9b-mobile-menu {
    position: fixed;
    top: var(--w1f9b-header-height);
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--w1f9b-header-height));
    background: var(--w1f9b-bg-light);
    box-shadow: 2px 0 10px var(--w1f9b-shadow);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem 0;
}

.w1f9b-mobile-menu.w1f9b-menu-open {
    left: 0;
}

.w1f9b-menu-overlay {
    position: fixed;
    top: var(--w1f9b-header-height);
    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;
}

.w1f9b-menu-overlay.w1f9b-overlay-show {
    opacity: 1;
    visibility: visible;
}

.w1f9b-menu-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--w1f9b-border);
}

.w1f9b-menu-section:last-child {
    border-bottom: none;
}

.w1f9b-menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w1f9b-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.w1f9b-menu-link {
    display: block;
    padding: 0.8rem 0;
    color: var(--w1f9b-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--w1f9b-border);
}

.w1f9b-menu-link:last-child {
    border-bottom: none;
}

.w1f9b-menu-link:hover,
.w1f9b-menu-link.w1f9b-nav-active {
    color: var(--w1f9b-primary);
    padding-left: 1rem;
}

/* Main Content */
.w1f9b-main {
    margin-top: var(--w1f9b-header-height);
    min-height: calc(100vh - var(--w1f9b-header-height) - var(--w1f9b-bottom-nav-height));
}

.w1f9b-section {
    padding: 2rem 0;
}

.w1f9b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w1f9b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hero Carousel */
.w1f9b-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--w1f9b-shadow);
}

.w1f9b-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w1f9b-carousel-slide.active {
    opacity: 1;
}

.w1f9b-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w1f9b-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Game Grid */
.w1f9b-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.w1f9b-game-item {
    background: var(--w1f9b-bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--w1f9b-shadow);
}

.w1f9b-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(222, 184, 135, 0.3);
}

.w1f9b-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.w1f9b-game-name {
    padding: 0.6rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--w1f9b-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--w1f9b-bg-light);
}

.w1f9b-game-link {
    display: block;
    text-decoration: none;
}

/* Card */
.w1f9b-card {
    background: var(--w1f9b-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--w1f9b-shadow);
}

.w1f9b-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w1f9b-primary);
    margin-bottom: 1rem;
}

.w1f9b-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w1f9b-accent);
}

/* Text Links */
.w1f9b-text-link {
    color: var(--w1f9b-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.w1f9b-text-link:hover {
    color: var(--w1f9b-secondary);
    text-decoration: underline;
}

/* Bottom Navigation */
.w1f9b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--w1f9b-bottom-nav-height);
    background: linear-gradient(180deg, var(--w1f9b-bg-light) 0%, var(--w1f9b-bg) 100%);
    border-top: 2px solid var(--w1f9b-primary);
    box-shadow: 0 -2px 10px var(--w1f9b-shadow);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.w1f9b-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--w1f9b-text);
    transition: all 0.3s ease;
    position: relative;
}

.w1f9b-bottom-nav-item:hover,
.w1f9b-bottom-nav-item.w1f9b-bottom-nav-active {
    color: var(--w1f9b-primary);
    transform: scale(1.1);
}

.w1f9b-bottom-nav-icon {
    font-size: 2.2rem;
}

.w1f9b-bottom-nav-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.w1f9b-footer {
    background: var(--w1f9b-bg-light);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--w1f9b-border);
}

.w1f9b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w1f9b-footer-link {
    color: var(--w1f9b-accent);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.w1f9b-footer-link:hover {
    color: var(--w1f9b-primary);
}

.w1f9b-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.w1f9b-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w1f9b-partner-logo:hover {
    opacity: 1;
}

.w1f9b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w1f9b-accent);
    padding: 1rem 0;
    border-top: 1px solid var(--w1f9b-border);
}

/* Responsive Design */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }

    .w1f9b-bottom-nav {
        display: none;
    }

    .w1f9b-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .w1f9b-main {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.w1f9b-text-center {
    text-align: center;
}

.w1f9b-mt-1 {
    margin-top: 1rem;
}

.w1f9b-mb-1 {
    margin-bottom: 1rem;
}

.w1f9b-mb-2 {
    margin-bottom: 2rem;
}

.w1f9b-bold {
    font-weight: 700;
}

.w1f9b-highlight {
    color: var(--w1f9b-primary);
    font-weight: 600;
}
