/**
 * jili333 - Main Stylesheet
 * Class prefix: w67f8-
 * Mobile-first design with max-width 430px
 * Color palette: #9370DB (Medium Purple) | #BDB76B (Dark Khaki) | #FF8C00 (Dark Orange)
 */

/* Root variables and reset */
:root {
    --primary: #9370DB;
    --secondary: #BDB76B;
    --accent: #FF8C00;
    --gray: #999999;
    --light: #F0E68C;
    --dark: #3A3A3A;
    --white: #FFFFFF;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
}

/* 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.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

/* Container */
.w67f8-container {
    max-width: 430px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.w67f8-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.w67f8-header-container {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w67f8-logo {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.w67f8-header-buttons {
    display: flex;
    gap: 1rem;
}

.w67f8-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 44px;
    min-height: 44px;
}

.w67f8-btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255,140,0,0.3);
}

.w67f8-btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.w67f8-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.w67f8-btn:active {
    transform: translateY(0);
}

/* Mobile menu button */
.w67f8-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.w67f8-menu-btn:hover {
    opacity: 0.8;
}

/* Mobile menu overlay */
.w67f8-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.w67f8-overlay.w67f8-active {
    display: block;
}

/* Mobile menu */
.w67f8-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 6rem 0 2rem;
}

.w67f8-mobile-menu.w67f8-active {
    display: block;
    right: 0;
}

.w67f8-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.8rem;
    cursor: pointer;
}

.w67f8-menu-item {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

.w67f8-menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.w67f8-menu-item.w67f8-active-page {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Main content */
main {
    margin-top: 80px;
    padding: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero carousel */
.w67f8-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.w67f8-carousel-slide {
    width: 100%;
    height: 100%;
}

.w67f8-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section styling */
.w67f8-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.w67f8-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.w67f8-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Game grid */
.w67f8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w67f8-game-card {
    display: block;
    text-decoration: none;
    color: var(--dark);
    text-align: center;
    transition: transform 0.3s ease;
}

.w67f8-game-card:hover {
    transform: scale(1.05);
}

.w67f8-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.w67f8-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Content modules */
.w67f8-content {
    line-height: 1.8;
    color: var(--dark);
}

.w67f8-content p {
    margin-bottom: 1rem;
}

.w67f8-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.w67f8-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.w67f8-content li {
    margin-bottom: 0.5rem;
}

.w67f8-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.w67f8-content a:hover {
    text-decoration: underline;
}

/* Footer */
.w67f8-footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 3rem 2rem 8rem;
    margin-top: 3rem;
}

.w67f8-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w67f8-footer-link {
    color: var(--light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.w67f8-footer-link:hover {
    color: var(--accent);
}

.w67f8-partners {
    margin: 2rem 0;
}

.w67f8-partners-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light);
}

.w67f8-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.w67f8-partner-icon {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    transition: filter 0.3s ease;
}

.w67f8-partner-icon:hover {
    filter: grayscale(0%) brightness(100%);
}

.w67f8-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile bottom navigation */
.w67f8-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.w67f8-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    transition: background 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.w67f8-bottom-nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.w67f8-bottom-nav-item.w67f8-active {
    color: var(--accent);
}

.w67f8-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.w67f8-bottom-nav-label {
    font-size: 1rem;
    font-weight: 600;
}

/* Scroll to top button */
.w67f8-scroll-top {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255,140,0,0.3);
    transition: all 0.3s ease;
}

.w67f8-scroll-top.w67f8-visible {
    display: block;
}

.w67f8-scroll-top:hover {
    transform: translateY(-5px);
}

/* Desktop styles */
@media (min-width: 769px) {
    .w67f8-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .w67f8-menu-btn {
        display: none;
    }
}

/* Touch feedback */
.w67f8-touch-active {
    opacity: 0.7 !important;
    transform: scale(0.95);
}

/* Utility classes */
.w67f8-text-center {
    text-align: center;
}

.w67f8-mt-2 {
    margin-top: 2rem;
}

.w67f8-mb-2 {
    margin-bottom: 2rem;
}

.w67f8-highlight {
    color: var(--primary);
    font-weight: 600;
}

.w67f8-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}
