/**
 * Scatter Link - Main Stylesheet
 * All classes use w65c1- prefix for namespace isolation
 * Version: 1.0.0
 */

/* CSS Variables with w65c1 prefix */
:root {
    --w65c1-primary: #00FF7F;
    --w65c1-secondary: #8FBC8F;
    --w65c1-bg: #141414;
    --w65c1-bg-light: #1a1a1a;
    --w65c1-text: #ffffff;
    --w65c1-text-muted: #b0b0b0;
    --w65c1-accent: #00c8ff;
    --w65c1-dark: #2C3E50;
    --w65c1-success: #00FF7F;
    --w65c1-warning: #FFD700;
    --w65c1-gradient: linear-gradient(135deg, #00FF7F 0%, #00c8ff 100%);
    --w65c1-shadow: 0 4px 20px rgba(0, 255, 127, 0.2);
    --w65c1-radius: 8px;
    --w65c1-transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--w65c1-bg);
    color: var(--w65c1-text);
    line-height: 1.5;
    font-size: 1.6rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.w65c1-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w65c1-wrapper {
    padding: 2rem 1.5rem;
}

/* Header */
.w65c1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    transition: var(--w65c1-transition);
}

.w65c1-header.w65c1-scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: var(--w65c1-shadow);
}

.w65c1-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.w65c1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w65c1-logo img {
    width: 32px;
    height: 32px;
}

.w65c1-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--w65c1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w65c1-header-actions {
    display: flex;
    gap: 0.8rem;
}

.w65c1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--w65c1-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w65c1-transition);
    border: none;
    min-height: 44px;
}

.w65c1-btn-primary {
    background: var(--w65c1-gradient);
    color: var(--w65c1-bg);
}

.w65c1-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--w65c1-shadow);
}

.w65c1-btn-secondary {
    background: transparent;
    color: var(--w65c1-primary);
    border: 2px solid var(--w65c1-primary);
}

.w65c1-btn-secondary:hover {
    background: var(--w65c1-primary);
    color: var(--w65c1-bg);
}

/* Hamburger Menu */
.w65c1-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.w65c1-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--w65c1-primary);
    transition: var(--w65c1-transition);
}

.w65c1-hamburger.w65c1-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.w65c1-hamburger.w65c1-active span:nth-child(2) {
    opacity: 0;
}

.w65c1-hamburger.w65c1-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.w65c1-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.w65c1-mobile-menu.w65c1-active {
    transform: translateX(0);
}

.w65c1-mobile-menu a {
    font-size: 2rem;
    font-weight: 600;
    color: var(--w65c1-text);
    padding: 1rem 2rem;
    transition: var(--w65c1-transition);
}

.w65c1-mobile-menu a:hover {
    color: var(--w65c1-primary);
}

/* Carousel */
.w65c1-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.w65c1-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w65c1-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.w65c1-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.w65c1-slide.w65c1-active {
    display: block;
}

.w65c1-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.w65c1-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w65c1-transition);
}

.w65c1-dot.w65c1-active {
    background: var(--w65c1-primary);
    transform: scale(1.2);
}

/* Sections */
.w65c1-section {
    padding: 3rem 1.5rem;
}

.w65c1-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--w65c1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.w65c1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w65c1-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--w65c1-transition);
}

.w65c1-game-item:hover {
    transform: scale(1.05);
}

.w65c1-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--w65c1-radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(0, 255, 127, 0.2);
}

.w65c1-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w65c1-game-name {
    font-size: 1.1rem;
    text-align: center;
    color: var(--w65c1-text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.w65c1-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w65c1-primary);
    color: var(--w65c1-text);
}

/* Content Cards */
.w65c1-card {
    background: var(--w65c1-bg-light);
    border-radius: var(--w65c1-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.w65c1-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--w65c1-primary);
}

.w65c1-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--w65c1-text-muted);
}

/* Features List */
.w65c1-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.w65c1-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.w65c1-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 127, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w65c1-primary);
    font-size: 1.8rem;
}

.w65c1-feature-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--w65c1-text);
}

.w65c1-feature-content p {
    font-size: 1.3rem;
    color: var(--w65c1-text-muted);
}

/* Promotional Link Styles */
.w65c1-promo-link {
    color: var(--w65c1-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--w65c1-transition);
}

.w65c1-promo-link:hover {
    color: var(--w65c1-accent);
    text-decoration: underline;
}

.w65c1-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--w65c1-gradient);
    color: var(--w65c1-bg);
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--w65c1-transition);
}

.w65c1-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--w65c1-shadow);
}

/* Footer */
.w65c1-footer {
    background: var(--w65c1-bg-light);
    padding: 3rem 1.5rem 8rem;
    border-top: 1px solid rgba(0, 255, 127, 0.1);
}

.w65c1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w65c1-footer-link {
    font-size: 1.3rem;
    color: var(--w65c1-text-muted);
    transition: var(--w65c1-transition);
}

.w65c1-footer-link:hover {
    color: var(--w65c1-primary);
}

.w65c1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w65c1-partner {
    width: 50px;
    height: 30px;
    opacity: 0.6;
    transition: var(--w65c1-transition);
}

.w65c1-partner:hover {
    opacity: 1;
}

.w65c1-partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.w65c1-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w65c1-text-muted);
}

/* Bottom Navigation */
.w65c1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 127, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.w65c1-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--w65c1-transition);
    color: var(--w65c1-text-muted);
}

.w65c1-nav-item:hover,
.w65c1-nav-item.w65c1-active {
    color: var(--w65c1-primary);
    transform: scale(1.1);
}

.w65c1-nav-item i,
.w65c1-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.w65c1-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* FAQ Section */
.w65c1-faq-item {
    background: var(--w65c1-bg-light);
    border-radius: var(--w65c1-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.w65c1-faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w65c1-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w65c1-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.3rem;
    color: var(--w65c1-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .w65c1-bottom-nav {
        display: none;
    }

    .w65c1-hamburger {
        display: none;
    }

    .w65c1-container {
        max-width: 1200px;
    }

    .w65c1-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animations */
@keyframes w65c1-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes w65c1-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w65c1-animate-pulse {
    animation: w65c1-pulse 2s infinite;
}

.w65c1-animate-fadeIn {
    animation: w65c1-fadeIn 0.5s ease-out;
}

/* Utility Classes */
.w65c1-text-center {
    text-align: center;
}

.w65c1-mb-1 {
    margin-bottom: 1rem;
}

.w65c1-mb-2 {
    margin-bottom: 2rem;
}

.w65c1-mt-2 {
    margin-top: 2rem;
}

.w65c1-hidden {
    display: none;
}
