/**
 * Legend Link Maya - Main Stylesheet
 * Color Palette: #DAA520 | #BDC3C7 | #FF8C00 | #FAFAD2 | #141414
 * All classes prefixed with w4238-
 */

/* CSS Variables */
:root {
    --w4238-primary: #DAA520;
    --w4238-secondary: #BDC3C7;
    --w4238-accent: #FF8C00;
    --w4238-light: #FAFAD2;
    --w4238-dark: #141414;
    --w4238-text-dark: #141414;
    --w4238-text-light: #FAFAD2;
    --w4238-bg-light: #FAFAD2;
    --w4238-bg-dark: #141414;
    --w4238-gradient: linear-gradient(135deg, #DAA520 0%, #FF8C00 100%);
    --w4238-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --w4238-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --w4238-radius: 8px;
    --w4238-radius-lg: 16px;
}

/* Reset and 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w4238-text-dark);
    background-color: var(--w4238-bg-light);
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

body.w4238-loaded {
    opacity: 1;
}

/* Container */
.w4238-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header Styles */
.w4238-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w4238-dark);
    padding: 1.2rem 1.6rem;
    z-index: 1000;
    box-shadow: var(--w4238-shadow);
    transition: all 0.3s ease;
}

.w4238-header.w4238-header-scrolled {
    padding: 0.8rem 1.6rem;
}

.w4238-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w4238-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--w4238-primary);
}

.w4238-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.w4238-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w4238-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w4238-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w4238-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--w4238-radius);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 80px;
}

.w4238-btn-register {
    background: var(--w4238-gradient);
    color: var(--w4238-text-light);
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.w4238-btn-register:hover,
.w4238-btn-register:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.5);
}

.w4238-btn-login {
    background: transparent;
    color: var(--w4238-primary);
    border: 2px solid var(--w4238-primary);
}

.w4238-btn-login:hover,
.w4238-btn-login:active {
    background: var(--w4238-primary);
    color: var(--w4238-dark);
}

.w4238-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.w4238-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--w4238-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.w4238-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--w4238-dark);
    z-index: 9999;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.w4238-mobile-menu.w4238-menu-open {
    transform: translateX(0);
}

.w4238-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.4rem;
    color: var(--w4238-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.w4238-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.w4238-menu-nav a {
    color: var(--w4238-text-light);
    text-decoration: none;
    font-size: 1.8rem;
    padding: 1.2rem 1.6rem;
    border-radius: var(--w4238-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w4238-menu-nav a:hover {
    background: rgba(218, 165, 32, 0.1);
    color: var(--w4238-primary);
}

/* Main Content */
.w4238-main {
    padding-top: 6rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

.w4238-section {
    padding: 2.4rem 0;
}

/* Carousel */
.w4238-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--w4238-radius);
    margin-bottom: 2.4rem;
}

.w4238-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w4238-carousel-slide.w4238-slide-active {
    opacity: 1;
}

.w4238-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Hero Section */
.w4238-hero {
    text-align: center;
    padding: 2.4rem 0;
}

.w4238-hero h1 {
    font-size: 2.4rem;
    color: var(--w4238-dark);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.w4238-hero p {
    font-size: 1.6rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

/* Game Grid */
.w4238-game-section {
    margin-bottom: 3.2rem;
}

.w4238-section-title {
    font-size: 2rem;
    color: var(--w4238-dark);
    margin-bottom: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w4238-section-title i {
    color: var(--w4238-primary);
}

.w4238-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w4238-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w4238-game-item:hover {
    transform: scale(1.05);
}

.w4238-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--w4238-radius);
    box-shadow: var(--w4238-shadow);
    background: var(--w4238-secondary);
}

.w4238-game-name {
    font-size: 1rem;
    color: var(--w4238-text-dark);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Content Module */
.w4238-module {
    background: white;
    border-radius: var(--w4238-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--w4238-shadow);
}

.w4238-module h2 {
    font-size: 1.8rem;
    color: var(--w4238-dark);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.w4238-module p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.w4238-module ul {
    list-style: none;
    padding-left: 0;
}

.w4238-module li {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.w4238-module li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--w4238-primary);
    font-weight: bold;
}

.w4238-module a {
    color: var(--w4238-accent);
    text-decoration: none;
    font-weight: 600;
}

.w4238-module a:hover {
    text-decoration: underline;
}

/* Affiliate Link Style */
.w4238-affiliate-link {
    color: var(--w4238-accent);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4238-affiliate-link:hover {
    color: var(--w4238-primary);
    text-decoration: underline;
}

/* Play Button */
.w4238-play-btn {
    display: inline-block;
    background: var(--w4238-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--w4238-radius);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--w4238-shadow);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
    min-width: 160px;
}

.w4238-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--w4238-shadow-lg);
}

.w4238-play-btn:active {
    transform: translateY(0);
}

/* Footer */
.w4238-footer {
    background: var(--w4238-dark);
    color: var(--w4238-text-light);
    padding: 3.2rem 0 8rem;
}

.w4238-footer-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.6rem;
}

.w4238-footer-intro p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w4238-secondary);
    margin-bottom: 1rem;
}

.w4238-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1.6rem;
}

.w4238-footer-links a {
    color: var(--w4238-primary);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--w4238-radius);
    transition: all 0.3s ease;
}

.w4238-footer-links a:hover {
    background: rgba(218, 165, 32, 0.1);
}

.w4238-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0 1.6rem;
}

.w4238-sitemap a {
    color: var(--w4238-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    transition: color 0.3s ease;
}

.w4238-sitemap a:hover {
    color: var(--w4238-primary);
}

.w4238-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1.6rem;
}

.w4238-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w4238-partner-logo:hover {
    opacity: 1;
}

.w4238-copyright {
    text-align: center;
    padding: 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.w4238-copyright p {
    font-size: 1.2rem;
    color: var(--w4238-secondary);
}

/* Mobile Bottom Navigation */
.w4238-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w4238-dark);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    max-width: 430px;
    margin: 0 auto;
}

.w4238-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--w4238-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    cursor: pointer;
}

.w4238-nav-item:hover {
    color: var(--w4238-primary);
}

.w4238-nav-item.w4238-active {
    color: var(--w4238-primary);
}

.w4238-nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
}

.w4238-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.w4238-nav-item:active {
    transform: scale(0.95);
}

/* Responsive */
@media (min-width: 769px) {
    .w4238-bottom-nav {
        display: none;
    }

    .w4238-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.w4238-text-center {
    text-align: center;
}

.w4238-mb-1 {
    margin-bottom: 1rem;
}

.w4238-mb-2 {
    margin-bottom: 2rem;
}

.w4238-mt-1 {
    margin-top: 1rem;
}

.w4238-mt-2 {
    margin-top: 2rem;
}

/* Icon sizes */
.w4238-icon-sm {
    font-size: 16px;
}

.w4238-icon-md {
    font-size: 20px;
}

.w4238-icon-lg {
    font-size: 24px;
}

/* Animation */
@keyframes w4238-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w4238-fade-in {
    animation: w4238-fadeIn 0.5s ease forwards;
}
