/**
 * Super Ace 2016 - Theme Stylesheet
 * All classes use wc7e4- prefix for namespace isolation
 * Color Palette: #B8860B (Dark Goldenrod) | #1E1E1E (Dark) | #FFCC33 (Golden Yellow)
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --wc7e4-primary: #B8860B;
    --wc7e4-secondary: #FFCC33;
    --wc7e4-bg: #1E1E1E;
    --wc7e4-bg-light: #2a2a2a;
    --wc7e4-bg-card: #333333;
    --wc7e4-text: #FFFFFF;
    --wc7e4-text-muted: #AAAAAA;
    --wc7e4-accent: #FFD700;
    --wc7e4-border: #444444;
    --wc7e4-success: #28a745;
    --wc7e4-gradient: linear-gradient(135deg, #B8860B 0%, #FFCC33 100%);
    --wc7e4-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wc7e4-bg);
    color: var(--wc7e4-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.wc7e4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.wc7e4-wrapper {
    padding: 1rem;
}

/* Header Styles */
.wc7e4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--wc7e4-bg) 0%, rgba(30, 30, 30, 0.95) 100%);
    border-bottom: 2px solid var(--wc7e4-primary);
    z-index: 1000;
    padding: 0.8rem 0;
}

.wc7e4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wc7e4-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.wc7e4-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.wc7e4-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc7e4-secondary);
    text-shadow: 0 0 10px rgba(255, 204, 51, 0.5);
}

.wc7e4-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wc7e4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    min-height: 36px;
}

.wc7e4-btn-primary {
    background: var(--wc7e4-gradient);
    color: var(--wc7e4-bg);
    box-shadow: var(--wc7e4-shadow);
}

.wc7e4-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.wc7e4-btn-outline {
    background: transparent;
    color: var(--wc7e4-secondary);
    border: 2px solid var(--wc7e4-primary);
}

.wc7e4-btn-outline:hover {
    background: var(--wc7e4-primary);
    color: var(--wc7e4-text);
}

.wc7e4-menu-btn {
    background: transparent;
    border: none;
    color: var(--wc7e4-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.wc7e4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wc7e4-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.wc7e4-menu-active {
    right: 0;
}

.wc7e4-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wc7e4-mobile-menu a {
    color: var(--wc7e4-text);
    text-decoration: none;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.wc7e4-mobile-menu a:hover {
    background: rgba(184, 134, 11, 0.2);
    border-left-color: var(--wc7e4-primary);
    color: var(--wc7e4-secondary);
}

.wc7e4-mobile-menu a i {
    width: 20px;
    text-align: center;
    color: var(--wc7e4-primary);
}

/* Overlay */
.wc7e4-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;
}

.wc7e4-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.wc7e4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.wc7e4-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.wc7e4-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.wc7e4-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.wc7e4-slide-active {
    opacity: 1;
    position: relative;
}

.wc7e4-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.wc7e4-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wc7e4-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc7e4-dot-active {
    background: var(--wc7e4-secondary);
    transform: scale(1.3);
}

/* Section Titles */
.wc7e4-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wc7e4-secondary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wc7e4-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wc7e4-section-title i {
    color: var(--wc7e4-primary);
}

/* Game Grid */
.wc7e4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.wc7e4-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

.wc7e4-game-item:hover {
    transform: translateY(-3px);
}

.wc7e4-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px solid var(--wc7e4-border);
    transition: border-color 0.3s ease;
}

.wc7e4-game-item:hover img {
    border-color: var(--wc7e4-primary);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.wc7e4-game-name {
    font-size: 1rem;
    color: var(--wc7e4-text);
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards */
.wc7e4-card {
    background: var(--wc7e4-bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wc7e4-border);
}

.wc7e4-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wc7e4-secondary);
    margin-bottom: 0.8rem;
}

.wc7e4-card-text {
    color: var(--wc7e4-text-muted);
    line-height: 1.6;
}

/* Footer */
.wc7e4-footer {
    background: var(--wc7e4-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--wc7e4-primary);
}

.wc7e4-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wc7e4-footer-brand p {
    color: var(--wc7e4-text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 0.8rem;
}

.wc7e4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.wc7e4-footer-links a {
    color: var(--wc7e4-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--wc7e4-bg-card);
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.wc7e4-footer-links a:hover {
    background: var(--wc7e4-primary);
    color: var(--wc7e4-bg);
}

.wc7e4-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wc7e4-footer-nav a {
    color: var(--wc7e4-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    transition: color 0.3s ease;
}

.wc7e4-footer-nav a:hover {
    color: var(--wc7e4-secondary);
}

.wc7e4-copyright {
    text-align: center;
    color: var(--wc7e4-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--wc7e4-border);
}

/* Bottom Navigation */
.wc7e4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, var(--wc7e4-bg) 100%);
    border-top: 2px solid var(--wc7e4-primary);
    z-index: 1000;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (min-width: 769px) {
    .wc7e4-bottom-nav {
        display: none;
    }
}

.wc7e4-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    text-decoration: none;
    color: var(--wc7e4-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.wc7e4-nav-item:hover,
.wc7e4-nav-item-active {
    color: var(--wc7e4-secondary);
    transform: scale(1.1);
}

.wc7e4-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.wc7e4-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Links */
.wc7e4-promo-link {
    color: var(--wc7e4-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc7e4-promo-link:hover {
    color: var(--wc7e4-accent);
    text-decoration: underline;
}

/* List Styles */
.wc7e4-list {
    list-style: none;
    padding: 0;
}

.wc7e4-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--wc7e4-text);
    border-bottom: 1px solid var(--wc7e4-border);
}

.wc7e4-list li:last-child {
    border-bottom: none;
}

.wc7e4-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--wc7e4-primary);
}

/* Grid Layout */
.wc7e4-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wc7e4-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

/* Text Utilities */
.wc7e4-text-center { text-align: center; }
.wc7e4-text-gold { color: var(--wc7e4-secondary); }
.wc7e4-text-muted { color: var(--wc7e4-text-muted); }
.wc7e4-text-primary { color: var(--wc7e4-primary); }
.wc7e4-fw-bold { font-weight: 700; }
.wc7e4-mt-1 { margin-top: 0.5rem; }
.wc7e4-mt-2 { margin-top: 1rem; }
.wc7e4-mb-1 { margin-bottom: 0.5rem; }
.wc7e4-mb-2 { margin-bottom: 1rem; }
.wc7e4-py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.wc7e4-py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* Responsive */
@media (max-width: 380px) {
    .wc7e4-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wc7e4-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes wc7e4pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wc7e4-animate-pulse {
    animation: wc7e4pulse 2s infinite;
}

@keyframes wc7e4fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wc7e4-fade-in {
    animation: wc7e4fadeIn 0.5s ease forwards;
}
