/**
 * Lucky Starz Maya - CSS Stylesheet
 * All classes use prefix "s35e-" for namespace isolation
 * Color palette: #BC8F8F (rosybrown) | #262626 (dark) | #C0C0C0 (silver)
 * Mobile-first responsive design, max-width: 430px
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --s35e-primary: #BC8F8F;
    --s35e-primary-dark: #A67C7C;
    --s35e-primary-light: #D4A8A8;
    --s35e-bg-dark: #262626;
    --s35e-bg-darker: #1a1a1a;
    --s35e-bg-light: #333333;
    --s35e-text-light: #C0C0C0;
    --s35e-text-white: #FFFFFF;
    --s35e-text-muted: #999999;
    --s35e-border: rgba(192, 192, 192, 0.2);
    --s35e-shadow: rgba(0, 0, 0, 0.3);
    --s35e-success: #4CAF50;
    --s35e-warning: #FFC107;
    --s35e-danger: #F44336;
    --s35e-header-height: 60px;
    --s35e-bottom-nav-height: 64px;
}

/* ========================================
   RESET & 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--s35e-text-light);
    background-color: var(--s35e-bg-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--s35e-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--s35e-primary-light);
}

/* ========================================
   HEADER NAVIGATION
   ======================================== */
.s35e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--s35e-header-height);
    background-color: var(--s35e-bg-darker);
    border-bottom: 1px solid var(--s35e-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.s35e-header-scrolled {
    box-shadow: 0 2px 8px var(--s35e-shadow);
}

.s35e-header-container {
    max-width: 430px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.s35e-header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.s35e-logo-img {
    width: 32px;
    height: 32px;
}

.s35e-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s35e-text-white);
    white-space: nowrap;
}

.s35e-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s35e-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.s35e-btn-primary {
    background-color: var(--s35e-primary);
    color: var(--s35e-text-white);
}

.s35e-btn-primary:hover {
    background-color: var(--s35e-primary-dark);
    transform: translateY(-1px);
}

.s35e-btn-secondary {
    background-color: transparent;
    color: var(--s35e-primary);
    border: 1px solid var(--s35e-primary);
}

.s35e-btn-secondary:hover {
    background-color: var(--s35e-primary);
    color: var(--s35e-text-white);
}

.s35e-hamburger {
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.s35e-hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--s35e-text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.s35e-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.s35e-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.s35e-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.s35e-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s35e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s35e-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--s35e-bg-darker);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 2rem 0;
}

.s35e-menu-active {
    right: 0;
}

.s35e-menu-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--s35e-border);
}

.s35e-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s35e-text-white);
}

.s35e-menu-nav {
    padding: 1rem 0;
}

.s35e-menu-link {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--s35e-text-light);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.s35e-menu-link:hover,
.s35e-menu-link-active {
    background-color: var(--s35e-bg-light);
    color: var(--s35e-primary);
    border-left-color: var(--s35e-primary);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.s35e-main {
    margin-top: var(--s35e-header-height);
    padding-bottom: 8rem;
    min-height: calc(100vh - var(--s35e-header-height));
}

.s35e-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s35e-section {
    padding: 2rem 0;
}

.s35e-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s35e-text-white);
    margin-bottom: 1.5rem;
}

.s35e-section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s35e-primary);
    margin-bottom: 1rem;
}

/* ========================================
   CAROUSEL / SLIDER
   ======================================== */
.s35e-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.s35e-carousel-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.s35e-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s35e-slide-active {
    opacity: 1;
}

.s35e-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s35e-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.s35e-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s35e-dot-active {
    background-color: var(--s35e-primary);
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   GAME GRID
   ======================================== */
.s35e-game-category {
    margin-bottom: 3rem;
}

.s35e-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.s35e-category-icon {
    font-size: 2.4rem;
    color: var(--s35e-primary);
}

.s35e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s35e-game-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s35e-game-item:hover {
    transform: scale(1.05);
}

.s35e-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    object-fit: cover;
    border: 1px solid var(--s35e-border);
}

.s35e-game-name {
    font-size: 1.1rem;
    color: var(--s35e-text-light);
    text-align: center;
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   CONTENT MODULES
   ======================================== */
.s35e-content-box {
    background-color: var(--s35e-bg-light);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--s35e-border);
}

.s35e-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s35e-text-white);
    margin-bottom: 1rem;
}

.s35e-content-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s35e-text-light);
    margin-bottom: 1rem;
}

.s35e-link-text {
    color: var(--s35e-primary);
    font-weight: 600;
    text-decoration: underline;
}

.s35e-link-text:hover {
    color: var(--s35e-primary-light);
}

/* ========================================
   BOTTOM NAVIGATION (MOBILE)
   ======================================== */
.s35e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--s35e-bottom-nav-height);
    background-color: var(--s35e-bg-darker);
    border-top: 1px solid var(--s35e-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.s35e-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--s35e-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.s35e-bottom-nav-link:hover,
.s35e-nav-active {
    color: var(--s35e-primary);
    transform: scale(1.1);
}

.s35e-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.s35e-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.s35e-footer {
    background-color: var(--s35e-bg-darker);
    padding: 3rem 0 8rem;
    border-top: 1px solid var(--s35e-border);
}

.s35e-footer-partners {
    padding: 2rem 0;
    border-bottom: 1px solid var(--s35e-border);
}

.s35e-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.s35e-partner-logo {
    width: 100%;
    max-width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s35e-partner-logo:hover {
    opacity: 1;
}

.s35e-footer-links {
    padding: 2rem 0;
    border-bottom: 1px solid var(--s35e-border);
}

.s35e-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s35e-footer-link {
    color: var(--s35e-text-light);
    font-size: 1.3rem;
    padding: 0.5rem 0;
}

.s35e-footer-link:hover {
    color: var(--s35e-primary);
}

.s35e-footer-copyright {
    padding: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--s35e-text-muted);
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 769px) {
    .s35e-bottom-nav {
        display: none;
    }

    .s35e-main {
        padding-bottom: 2rem;
    }

    .s35e-footer {
        padding: 3rem 0 2rem;
    }

    .s35e-hamburger {
        display: none;
    }

    .s35e-desktop-nav {
        display: flex;
        gap: 2rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.s35e-text-center {
    text-align: center;
}

.s35e-text-bold {
    font-weight: 700;
}

.s35e-mt-1 {
    margin-top: 1rem;
}

.s35e-mt-2 {
    margin-top: 2rem;
}

.s35e-mb-1 {
    margin-bottom: 1rem;
}

.s35e-mb-2 {
    margin-bottom: 2rem;
}

.s35e-hidden {
    display: none !important;
}

.s35e-visible {
    display: block !important;
}
