/**
 * BW29 Stylesheet
 * All classes use prefix: w11e3-
 * Color palette: #800080 | #333333 | #9370DB
 */

/* CSS Variables */
:root {
    --w11e3-primary: #800080;
    --w11e3-secondary: #9370DB;
    --w11e3-dark: #333333;
    --w11e3-darker: #1a1a1a;
    --w11e3-light: #f5f5f5;
    --w11e3-white: #ffffff;
    --w11e3-gray: #666666;
    --w11e3-border: #e0e0e0;
    --w11e3-shadow: rgba(0, 0, 0, 0.1);
    --w11e3-gradient: linear-gradient(135deg, var(--w11e3-primary) 0%, var(--w11e3-secondary) 100%);
    --w11e3-radius-sm: 4px;
    --w11e3-radius-md: 8px;
    --w11e3-radius-lg: 12px;
    --w11e3-radius-xl: 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w11e3-light);
    background-color: var(--w11e3-dark);
    min-height: 100vh;
}

body.w11e3-loaded {
    animation: w11e3-fadeIn 0.3s ease-in;
}

@keyframes w11e3-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.w11e3-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.w11e3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w11e3-darker);
    box-shadow: 0 2px 10px var(--w11e3-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.w11e3-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.w11e3-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--w11e3-white);
}

.w11e3-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--w11e3-radius-md);
}

.w11e3-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w11e3-white);
}

.w11e3-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w11e3-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--w11e3-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.w11e3-btn-primary {
    background: var(--w11e3-gradient);
    color: var(--w11e3-white);
}

.w11e3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 128, 0.4);
}

.w11e3-btn-secondary {
    background: transparent;
    color: var(--w11e3-white);
    border: 2px solid var(--w11e3-primary);
}

.w11e3-btn-secondary:hover {
    background: var(--w11e3-primary);
}

.w11e3-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.w11e3-menu-toggle span {
    display: block;
    width: 2rem;
    height: 0.2rem;
    background: var(--w11e3-white);
    border-radius: 0.2rem;
    transition: all 0.3s ease;
}

.w11e3-menu-toggle:hover span {
    background: var(--w11e3-secondary);
}

/* Mobile Menu */
.w11e3-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--w11e3-darker);
    box-shadow: -2px 0 10px var(--w11e3-shadow);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.w11e3-mobile-menu.w11e3-menu-open {
    right: 0;
}

.w11e3-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w11e3-menu-close {
    background: none;
    border: none;
    color: var(--w11e3-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.w11e3-menu-nav {
    padding: 1rem 0;
}

.w11e3-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--w11e3-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.w11e3-menu-nav a:hover {
    background: rgba(147, 112, 219, 0.1);
    border-left-color: var(--w11e3-secondary);
    color: var(--w11e3-white);
}

.w11e3-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: all 0.3s ease;
}

.w11e3-menu-overlay.w11e3-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.w11e3-main {
    padding-top: 5.5rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Carousel */
.w11e3-carousel {
    position: relative;
    width: 100%;
    height: 18rem;
    overflow: hidden;
    border-radius: var(--w11e3-radius-lg);
    margin-bottom: 2rem;
}

.w11e3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w11e3-slide.w11e3-slide-active {
    opacity: 1;
}

.w11e3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w11e3-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.w11e3-indicator {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w11e3-indicator.w11e3-indicator-active {
    background: var(--w11e3-white);
    width: 1.5rem;
    border-radius: 0.3rem;
}

/* Section Styles */
.w11e3-section {
    margin-bottom: 2.5rem;
}

.w11e3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w11e3-white);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w11e3-primary);
}

.w11e3-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w11e3-secondary);
    margin-bottom: 1rem;
}

/* Game Grid */
.w11e3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w11e3-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.w11e3-game-item:hover {
    transform: translateY(-4px);
}

.w11e3-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--w11e3-radius-md);
    background: var(--w11e3-darker);
    box-shadow: 0 2px 8px var(--w11e3-shadow);
}

.w11e3-game-name {
    font-size: 1rem;
    color: var(--w11e3-light);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.w11e3-game-item:hover .w11e3-game-name {
    color: var(--w11e3-secondary);
}

/* Card Styles */
.w11e3-card {
    background: var(--w11e3-darker);
    border-radius: var(--w11e3-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--w11e3-shadow);
}

.w11e3-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w11e3-white);
    margin-bottom: 1rem;
}

.w11e3-card-content {
    color: var(--w11e3-gray);
    line-height: 1.8;
}

/* List Styles */
.w11e3-list {
    list-style: none;
}

.w11e3-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w11e3-list-item:last-child {
    border-bottom: none;
}

.w11e3-list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w11e3-white);
    margin-bottom: 0.5rem;
}

.w11e3-list-content {
    color: var(--w11e3-gray);
    line-height: 1.6;
}

/* Link Styles */
.w11e3-link {
    color: var(--w11e3-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.w11e3-link:hover {
    color: var(--w11e3-primary);
    text-decoration: underline;
}

/* Highlight Box */
.w11e3-highlight {
    background: var(--w11e3-gradient);
    border-radius: var(--w11e3-radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.w11e3-highlight-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w11e3-white);
    margin-bottom: 1rem;
}

.w11e3-highlight-text {
    color: var(--w11e3-light);
    margin-bottom: 1rem;
}

/* Footer */
.w11e3-footer {
    background: var(--w11e3-darker);
    padding: 2rem 0 8rem;
    margin-top: 3rem;
}

.w11e3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.w11e3-footer-link {
    color: var(--w11e3-gray);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.w11e3-footer-link:hover {
    color: var(--w11e3-secondary);
}

.w11e3-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w11e3-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.w11e3-partner-logo:hover {
    opacity: 1;
}

.w11e3-copyright {
    text-align: center;
    color: var(--w11e3-gray);
    font-size: 1.2rem;
    padding: 0 1rem;
}

/* Bottom Navigation */
.w11e3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w11e3-darker);
    box-shadow: 0 -2px 10px var(--w11e3-shadow);
    z-index: 1000;
    padding: 0.5rem 0;
}

.w11e3-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.w11e3-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--w11e3-gray);
    padding: 0.5rem;
    min-width: 60px;
    transition: all 0.3s ease;
}

.w11e3-nav-item:hover {
    color: var(--w11e3-secondary);
}

.w11e3-nav-item.w11e3-nav-active {
    color: var(--w11e3-primary);
}

.w11e3-nav-icon {
    font-size: 2rem;
}

.w11e3-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
    .w11e3-bottom-nav {
        display: none;
    }

    .w11e3-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .w11e3-menu-toggle {
        display: flex;
    }

    .w11e3-header-actions {
        gap: 0.5rem;
    }

    .w11e3-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.w11e3-text-center {
    text-align: center;
}

.w11e3-mb-1 { margin-bottom: 1rem; }
.w11e3-mb-2 { margin-bottom: 2rem; }
.w11e3-mt-1 { margin-top: 1rem; }
.w11e3-mt-2 { margin-top: 2rem; }

.w11e3-text-gradient {
    background: var(--w11e3-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
