/**
 * X777 Live - Design Stylesheet
 * Class Prefix: w0642-
 * Color Theme: Crimson Red & Coral (#DC143C, #FF7F50, #FF0000)
 */

/* CSS Variables */
:root {
    --w0642-primary: #DC143C;
    --w0642-secondary: #FF7F50;
    --w0642-accent: #FF0000;
    --w0642-dark: #212F3D;
    --w0642-light: #F0F0F0;
    --w0642-gradient: linear-gradient(135deg, #DC143C 0%, #FF7F50 100%);
    --w0642-gradient-hover: linear-gradient(135deg, #FF0000 0%, #FF7F50 100%);
    --w0642-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
    --w0642-shadow-lg: 0 8px 24px rgba(220, 20, 60, 0.25);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--w0642-dark);
    color: var(--w0642-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.w0642-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--w0642-primary);
    box-shadow: var(--w0642-shadow);
}

.w0642-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w0642-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: var(--w0642-light);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.w0642-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--w0642-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.w0642-logo-text {
    background: var(--w0642-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w0642-nav-desktop {
    display: none;
    gap: 8px;
}

.w0642-nav-link {
    padding: 10px 18px;
    color: var(--w0642-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.w0642-nav-link:hover {
    background-color: rgba(220, 20, 60, 0.1);
    color: var(--w0642-secondary);
}

.w0642-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.w0642-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.w0642-btn-primary {
    background: var(--w0642-gradient);
    color: #ffffff;
    box-shadow: var(--w0642-shadow);
}

.w0642-btn-primary:hover {
    background: var(--w0642-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--w0642-shadow-lg);
}

.w0642-btn-outline {
    background: transparent;
    color: var(--w0642-secondary);
    border: 2px solid var(--w0642-secondary);
}

.w0642-btn-outline:hover {
    background: var(--w0642-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

.w0642-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--w0642-light);
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.w0642-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--w0642-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 3px solid var(--w0642-primary);
}

.w0642-mobile-menu.active {
    right: 0;
}

.w0642-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w0642-menu-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--w0642-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w0642-close-btn {
    background: transparent;
    border: none;
    color: var(--w0642-light);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

.w0642-menu-nav {
    padding: 20px 0;
}

.w0642-menu-link {
    display: block;
    padding: 14px 24px;
    color: var(--w0642-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.w0642-menu-link:hover {
    background-color: rgba(220, 20, 60, 0.1);
    border-left-color: var(--w0642-primary);
    color: var(--w0642-secondary);
}

.w0642-menu-overlay {
    position: fixed;
    top: 0;
    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;
}

.w0642-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.w0642-main {
    padding-top: 70px;
    min-height: 100vh;
}

/* Hero Section */
.w0642-hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(255, 127, 80, 0.1) 100%);
    border-bottom: 2px solid rgba(220, 20, 60, 0.2);
}

.w0642-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.w0642-hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--w0642-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.w0642-hero-subtitle {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.w0642-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Section */
.w0642-game-section {
    padding: 50px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.w0642-section-header {
    max-width: 1400px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.w0642-section-icon {
    font-size: 32px;
    color: var(--w0642-secondary);
}

.w0642-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--w0642-light);
}

.w0642-game-carousel {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.w0642-carousel-container {
    overflow: hidden;
    padding: 10px 50px;
}

.w0642-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.w0642-game-card {
    min-width: calc((100% - 16px) / 2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.w0642-game-card:hover {
    transform: translateY(-8px);
    border-color: var(--w0642-secondary);
    box-shadow: var(--w0642-shadow-lg);
}

.w0642-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.w0642-game-info {
    padding: 14px;
}

.w0642-game-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--w0642-light);
    text-align: center;
}

.w0642-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--w0642-gradient);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w0642-carousel-btn:hover:not(:disabled) {
    background: var(--w0642-gradient-hover);
    transform: translateY(-50%) scale(1.1);
}

.w0642-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.w0642-carousel-prev {
    left: 0;
}

.w0642-carousel-next {
    right: 0;
}

/* Mobile Bottom Navigation */
.w0642-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(33, 47, 61, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--w0642-primary);
    box-shadow: 0 -4px 12px rgba(220, 20, 60, 0.15);
    padding: 8px 0;
}

.w0642-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.w0642-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 8px;
}

.w0642-bottom-nav-btn:hover,
.w0642-bottom-nav-btn.active {
    color: var(--w0642-secondary);
    background: rgba(255, 127, 80, 0.1);
}

.w0642-bottom-nav-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.w0642-bottom-nav-btn:hover .w0642-bottom-nav-icon {
    transform: scale(1.1);
}

.w0642-bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Footer */
.w0642-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 20px 20px;
    border-top: 2px solid rgba(220, 20, 60, 0.3);
}

.w0642-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.w0642-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.w0642-footer-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--w0642-secondary);
}

.w0642-footer-links {
    list-style: none;
}

.w0642-footer-link {
    display: block;
    padding: 8px 0;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.w0642-footer-link:hover {
    color: var(--w0642-secondary);
}

.w0642-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* Content Page Styles */
.w0642-content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.w0642-page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--w0642-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w0642-content p {
    margin-bottom: 16px;
    color: #cccccc;
    line-height: 1.8;
}

.w0642-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--w0642-secondary);
}

.w0642-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--w0642-light);
}

.w0642-content ul,
.w0642-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: #cccccc;
}

.w0642-content li {
    margin-bottom: 8px;
}

.w0642-content a {
    color: var(--w0642-secondary);
    text-decoration: underline;
}

.w0642-content a:hover {
    color: var(--w0642-primary);
}

/* Accordion Styles */
.w0642-accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.w0642-accordion-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--w0642-light);
    transition: all 0.3s ease;
}

.w0642-accordion-header:hover {
    background-color: rgba(220, 20, 60, 0.1);
}

.w0642-accordion-icon {
    font-size: 20px;
    color: var(--w0642-secondary);
    transition: transform 0.3s ease;
}

.w0642-accordion-item.active .w0642-accordion-icon {
    transform: rotate(180deg);
}

.w0642-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.w0642-accordion-body {
    padding: 0 20px 18px;
    color: #cccccc;
    line-height: 1.8;
}

/* Toast Notification */
.w0642-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--w0642-gradient);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: var(--w0642-shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.w0642-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (min-width: 769px) {
    .w0642-nav-desktop {
        display: flex;
    }

    .w0642-menu-btn {
        display: none;
    }

    .w0642-bottom-nav {
        display: none;
    }

    .w0642-main {
        padding-bottom: 0;
    }

    .w0642-game-card {
        min-width: calc((100% - 64px) / 5);
    }
}

@media (max-width: 768px) {
    .w0642-main {
        padding-bottom: 80px;
    }

    .w0642-hero-title {
        font-size: 36px;
    }

    .w0642-hero-subtitle {
        font-size: 16px;
    }

    .w0642-section-title {
        font-size: 24px;
    }

    .w0642-page-title {
        font-size: 28px;
    }

    .w0642-game-card {
        min-width: calc((100% - 32px) / 3);
    }
}

@media (max-width: 480px) {
    .w0642-logo {
        font-size: 20px;
    }

    .w0642-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .w0642-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .w0642-hero {
        padding: 40px 16px;
    }

    .w0642-hero-title {
        font-size: 28px;
    }

    .w0642-carousel-container {
        padding: 10px 40px;
    }

    .w0642-game-card {
        min-width: calc((100% - 16px) / 2);
    }
}
