/**
 * Superace Jili - Theme Stylesheet
 * CSS Class Prefix: v58f-
 * Color Scheme: #1E1E1E (bg) | #CC99FF (accent) | #CCCCCC (text)
 * Website: superacejili.club
 */

/* CSS Variables */
:root {
    --v58f-bg-primary: #1E1E1E;
    --v58f-bg-secondary: #2a2a2a;
    --v58f-bg-tertiary: #333333;
    --v58f-accent: #CC99FF;
    --v58f-accent-hover: #b380ff;
    --v58f-accent-dark: #9966cc;
    --v58f-text-primary: #CCCCCC;
    --v58f-text-secondary: #999999;
    --v58f-text-light: #ffffff;
    --v58f-border: #444444;
    --v58f-success: #4CAF50;
    --v58f-warning: #FFC107;
    --v58f-gradient: linear-gradient(135deg, #CC99FF 0%, #9966cc 100%);
    --v58f-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --v58f-radius: 8px;
    --v58f-radius-lg: 16px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v58f-bg-primary);
    color: var(--v58f-text-primary);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--v58f-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--v58f-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v58f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v58f-wrapper {
    padding: 2rem 0;
}

/* Header */
.v58f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v58f-bg-primary);
    border-bottom: 1px solid var(--v58f-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.v58f-header-scrolled {
    background: rgba(30, 30, 30, 0.98);
    box-shadow: var(--v58f-shadow);
}

.v58f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.v58f-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v58f-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v58f-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v58f-text-light);
}

.v58f-logo-text span {
    color: var(--v58f-accent);
}

/* Header Actions */
.v58f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v58f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--v58f-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.v58f-btn-primary {
    background: var(--v58f-gradient);
    color: var(--v58f-text-light);
}

.v58f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(204, 153, 255, 0.3);
}

.v58f-btn-outline {
    background: transparent;
    color: var(--v58f-accent);
    border: 2px solid var(--v58f-accent);
}

.v58f-btn-outline:hover {
    background: var(--v58f-accent);
    color: var(--v58f-text-light);
}

/* Mobile Menu Toggle */
.v58f-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.v58f-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--v58f-text-light);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v58f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v58f-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v58f-menu-open {
    right: 0;
}

.v58f-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v58f-bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--v58f-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.v58f-nav-list {
    list-style: none;
    margin-top: 3rem;
}

.v58f-nav-item {
    margin-bottom: 1rem;
}

.v58f-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--v58f-text-primary);
    font-size: 1.4rem;
    border-radius: var(--v58f-radius);
    transition: all 0.3s ease;
}

.v58f-nav-link:hover {
    background: var(--v58f-bg-tertiary);
    color: var(--v58f-accent);
}

/* Menu Overlay */
.v58f-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;
}

.v58f-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v58f-main {
    padding-top: 60px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .v58f-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.v58f-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v58f-radius-lg);
    margin: 1.5rem 0;
}

.v58f-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v58f-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.v58f-slide-active {
    opacity: 1;
    position: relative;
}

.v58f-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.v58f-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v58f-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v58f-dot-active {
    background: var(--v58f-accent);
    transform: scale(1.2);
}

/* Section Titles */
.v58f-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v58f-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v58f-section-title span {
    color: var(--v58f-accent);
}

.v58f-subtitle {
    font-size: 1.4rem;
    color: var(--v58f-text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.v58f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v58f-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v58f-game-item:hover {
    transform: scale(1.05);
}

.v58f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v58f-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.v58f-game-name {
    font-size: 1.1rem;
    color: var(--v58f-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.v58f-category-section {
    margin-bottom: 2.5rem;
}

.v58f-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v58f-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--v58f-accent);
}

/* Content Sections */
.v58f-content-section {
    background: var(--v58f-bg-secondary);
    border-radius: var(--v58f-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.v58f-content-section h2 {
    font-size: 1.8rem;
    color: var(--v58f-text-light);
    margin-bottom: 1.5rem;
}

.v58f-content-section p {
    color: var(--v58f-text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.v58f-content-section ul {
    list-style: none;
    padding-left: 0;
}

.v58f-content-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--v58f-border);
    color: var(--v58f-text-primary);
}

.v58f-content-section li:last-child {
    border-bottom: none;
}

/* Features Grid */
.v58f-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v58f-feature-item {
    background: var(--v58f-bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--v58f-radius);
    text-align: center;
}

.v58f-feature-icon {
    font-size: 2.4rem;
    color: var(--v58f-accent);
    margin-bottom: 1rem;
}

.v58f-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v58f-text-light);
    margin-bottom: 0.5rem;
}

.v58f-feature-desc {
    font-size: 1.2rem;
    color: var(--v58f-text-secondary);
}

/* Footer */
.v58f-footer {
    background: var(--v58f-bg-secondary);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.v58f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.v58f-footer-link {
    color: var(--v58f-text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.v58f-footer-link:hover {
    color: var(--v58f-accent);
}

.v58f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v58f-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v58f-partner-logo:hover {
    opacity: 1;
}

.v58f-copyright {
    text-align: center;
    color: var(--v58f-text-secondary);
    font-size: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--v58f-border);
}

/* Mobile Bottom Navigation */
.v58f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v58f-bg-secondary);
    border-top: 1px solid var(--v58f-border);
    z-index: 1000;
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .v58f-bottom-nav {
        display: none;
    }
}

.v58f-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--v58f-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.v58f-nav-btn:hover,
.v58f-nav-btn-active {
    color: var(--v58f-accent);
    background: rgba(204, 153, 255, 0.1);
    transform: scale(1.1);
}

.v58f-nav-btn-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.v58f-nav-btn-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Promotional Links */
.v58f-promo-text {
    color: var(--v58f-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v58f-promo-text:hover {
    color: var(--v58f-accent-hover);
    text-decoration: underline;
}

.v58f-promo-btn {
    display: inline-block;
    background: var(--v58f-gradient);
    color: var(--v58f-text-light);
    padding: 1rem 2rem;
    border-radius: var(--v58f-radius);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.v58f-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(204, 153, 255, 0.3);
}

/* Cards */
.v58f-card {
    background: var(--v58f-bg-secondary);
    border-radius: var(--v58f-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v58f-border);
    transition: border-color 0.3s ease;
}

.v58f-card:hover {
    border-color: var(--v58f-accent);
}

.v58f-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v58f-text-light);
    margin-bottom: 1rem;
}

.v58f-card-content {
    color: var(--v58f-text-primary);
    line-height: 1.6;
}

/* Lists */
.v58f-list {
    list-style: none;
    padding: 0;
}

.v58f-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--v58f-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v58f-list-item:last-child {
    border-bottom: none;
}

.v58f-list-icon {
    color: var(--v58f-accent);
    font-size: 1.6rem;
}

/* Tags */
.v58f-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(204, 153, 255, 0.2);
    color: var(--v58f-accent);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Utility Classes */
.v58f-text-center {
    text-align: center;
}

.v58f-mt-1 {
    margin-top: 1rem;
}

.v58f-mt-2 {
    margin-top: 2rem;
}

.v58f-mb-1 {
    margin-bottom: 1rem;
}

.v58f-mb-2 {
    margin-bottom: 2rem;
}

.v58f-hidden {
    display: none;
}

/* Animations */
@keyframes v58f-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v58f-animate {
    animation: v58f-fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 380px) {
    .v58f-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v58f-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Touch Device */
.v58f-touch-device .v58f-btn,
.v58f-touch-device .v58f-nav-btn,
.v58f-touch-device .v58f-game-item {
    min-height: 44px;
}
