/**
 * Super Ace 2016 - Main Stylesheet
 * All classes use prefix 'w19f4-' for namespace isolation
 * Color Palette: #FFA500 | #FFAA00 | #2C2C2C | #FAFAD2 | #F0E68C
 * @version 1.0.0
 */

/* Root Variables */
:root {
    --w19f4-primary: #FFA500;
    --w19f4-secondary: #FFAA00;
    --w19f4-bg-dark: #2C2C2C;
    --w19f4-text-light: #FAFAD2;
    --w19f4-accent: #F0E68C;
    --w19f4-gradient: linear-gradient(135deg, #FFA500 0%, #FFAA00 100%);
    --w19f4-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    --w19f4-radius: 12px;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w19f4-bg-dark);
    color: var(--w19f4-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.w19f4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w19f4-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header Styles */
.w19f4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w19f4-bg-dark) 0%, rgba(44, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.w19f4-header-scrolled {
    box-shadow: var(--w19f4-shadow);
}

.w19f4-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.w19f4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.w19f4-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w19f4-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w19f4-primary);
    white-space: nowrap;
}

.w19f4-header-actions {
    display: flex;
    gap: 0.6rem;
}

.w19f4-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.w19f4-btn-primary {
    background: var(--w19f4-gradient);
    color: var(--w19f4-bg-dark);
}

.w19f4-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--w19f4-shadow);
}

.w19f4-btn-secondary {
    background: transparent;
    border: 2px solid var(--w19f4-primary);
    color: var(--w19f4-primary);
}

.w19f4-btn-secondary:hover {
    background: var(--w19f4-primary);
    color: var(--w19f4-bg-dark);
}

.w19f4-menu-toggle {
    background: transparent;
    border: none;
    color: var(--w19f4-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.w19f4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w19f4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.x19f4-menu-open {
    right: 0;
}

.w19f4-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--w19f4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.w19f4-nav-links {
    list-style: none;
    margin-top: 3rem;
}

.w19f4-nav-links li {
    margin-bottom: 1.2rem;
}

.w19f4-nav-links a {
    color: var(--w19f4-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w19f4-nav-links a:hover {
    background: rgba(255, 165, 0, 0.1);
    color: var(--w19f4-primary);
}

.w19f4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.x19f4-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.w19f4-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.w19f4-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.x19f4-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.x19f4-slide.x19f4-active {
    opacity: 1;
}

.x19f4-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.w19f4-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w19f4-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w19f4-dot.w19f4-active {
    background: var(--w19f4-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.w19f4-section {
    padding: 1.5rem 0;
}

.w19f4-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w19f4-primary);
    margin-bottom: 1.2rem;
    text-align: center;
    position: relative;
}

.w19f4-section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--w19f4-gradient);
    border-radius: 2px;
}

/* Game Grid */
.w19f4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w19f4-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w19f4-game-item:hover {
    transform: scale(1.05);
}

.w19f4-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.w19f4-game-name {
    font-size: 1rem;
    color: var(--w19f4-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Category Title */
.w19f4-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w19f4-accent);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--w19f4-primary);
}

/* Cards */
.w19f4-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--w19f4-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.w19f4-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w19f4-primary);
    margin-bottom: 0.8rem;
}

.w19f4-card-text {
    font-size: 1.2rem;
    color: var(--w19f4-text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Promo Link */
.w19f4-promo-link {
    color: var(--w19f4-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w19f4-promo-link:hover {
    color: var(--w19f4-accent);
}

/* Features List */
.w19f4-features {
    list-style: none;
}

.w19f4-features li {
    padding: 0.6rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.w19f4-features li i {
    color: var(--w19f4-primary);
    margin-top: 2px;
}

/* Stats Grid */
.w19f4-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.w19f4-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
}

.w19f4-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w19f4-primary);
}

.w19f4-stat-label {
    font-size: 1rem;
    color: var(--w19f4-text-light);
    margin-top: 0.3rem;
}

/* FAQ Section */
.w19f4-faq-item {
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.w19f4-faq-question {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w19f4-accent);
    cursor: pointer;
}

.w19f4-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.1rem;
    color: var(--w19f4-text-light);
    line-height: 1.5;
}

/* Footer */
.w19f4-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.w19f4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w19f4-footer-links a {
    color: var(--w19f4-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w19f4-footer-links a:hover {
    background: rgba(255, 165, 0, 0.2);
    color: var(--w19f4-primary);
}

.w19f4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.w19f4-partners img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.w19f4-partners img:hover {
    opacity: 1;
}

.w19f4-copyright {
    text-align: center;
    font-size: 1rem;
    color: rgba(250, 250, 210, 0.7);
}

/* Bottom Navigation */
.w19f4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(44, 44, 44, 0.98) 0%, var(--w19f4-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.w19f4-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--w19f4-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.w19f4-nav-btn:hover,
.w19f4-nav-btn.w19f4-active {
    color: var(--w19f4-primary);
    transform: scale(1.1);
}

.w19f4-nav-btn i,
.w19f4-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.w19f4-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w19f4-bottom-nav {
        display: none;
    }
}

/* Responsive */
@media (max-width: 430px) {
    .w19f4-container {
        padding: 0 1rem;
    }

    .w19f4-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .w19f4-game-icon {
        width: 55px;
        height: 55px;
    }
}

/* Utilities */
.w19f4-text-center {
    text-align: center;
}

.w19f4-mb-1 {
    margin-bottom: 1rem;
}

.w19f4-mb-2 {
    margin-bottom: 2rem;
}

.w19f4-highlight {
    color: var(--w19f4-primary);
    font-weight: 600;
}

/* CTA Section */
.w19f4-cta {
    background: var(--w19f4-gradient);
    padding: 1.5rem;
    border-radius: var(--w19f4-radius);
    text-align: center;
    margin: 1.5rem 0;
}

.w19f4-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w19f4-bg-dark);
    margin-bottom: 0.8rem;
}

.w19f4-cta-text {
    font-size: 1.2rem;
    color: var(--w19f4-bg-dark);
    margin-bottom: 1rem;
}

.w19f4-cta .w19f4-btn {
    background: var(--w19f4-bg-dark);
    color: var(--w19f4-primary);
    padding: 0.8rem 2rem;
}

.w19f4-cta .w19f4-btn:hover {
    background: #000;
}

/* Achievements */
.w19f4-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.w19f4-achievement-icon {
    font-size: 2rem;
    color: var(--w19f4-primary);
}

.w19f4-achievement-text {
    font-size: 1.1rem;
    color: var(--w19f4-text-light);
}

/* Tricks Component */
.w19f4-trick {
    padding: 0.8rem;
    border-left: 3px solid var(--w19f4-primary);
    background: rgba(255, 165, 0, 0.05);
    margin-bottom: 0.6rem;
    border-radius: 0 8px 8px 0;
}

.w19f4-trick-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w19f4-accent);
    margin-bottom: 0.4rem;
}

.w19f4-trick-text {
    font-size: 1.1rem;
    color: var(--w19f4-text-light);
    line-height: 1.4;
}
