/**
 * EM77 Website CSS Design
 * All classes use vf1c- prefix for namespace isolation
 * Color Palette: #FFC0CB | #FAFAD2 | #FFD700 | #0F0F23 | #FFCCCB
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --vf1c-primary: #FFD700;
    --vf1c-secondary: #FFC0CB;
    --vf1c-accent: #FFCCCB;
    --vf1c-bg: #0F0F23;
    --vf1c-bg-light: #1a1a35;
    --vf1c-text: #FAFAD2;
    --vf1c-text-muted: #b8b8a8;
    --vf1c-border: #2a2a45;
    --vf1c-success: #4ade80;
    --vf1c-gradient: linear-gradient(135deg, #FFD700 0%, #FFC0CB 100%);
}

/* Reset and 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(--vf1c-bg);
    color: var(--vf1c-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
}

a {
    color: var(--vf1c-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vf1c-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.vf1c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--vf1c-bg) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--vf1c-border);
}

.vf1c-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vf1c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vf1c-logo img {
    width: 28px;
    height: 28px;
}

.vf1c-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--vf1c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vf1c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vf1c-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.vf1c-btn-primary {
    background: var(--vf1c-gradient);
    color: var(--vf1c-bg);
}

.vf1c-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.vf1c-btn-secondary {
    background: transparent;
    border: 2px solid var(--vf1c-primary);
    color: var(--vf1c-primary);
}

.vf1c-btn-secondary:hover {
    background: var(--vf1c-primary);
    color: var(--vf1c-bg);
}

.vf1c-menu-toggle {
    background: transparent;
    border: none;
    color: var(--vf1c-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.vf1c-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--vf1c-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.vf1c-menu-open {
    right: 0;
}

.vf1c-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;
}

.vf1c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vf1c-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vf1c-border);
}

.vf1c-menu-close {
    background: transparent;
    border: none;
    color: var(--vf1c-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.vf1c-menu-nav {
    list-style: none;
}

.vf1c-menu-item {
    margin-bottom: 0.5rem;
}

.vf1c-menu-link {
    display: block;
    padding: 1rem;
    color: var(--vf1c-text);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.vf1c-menu-link:hover {
    background: var(--vf1c-bg);
    color: var(--vf1c-primary);
}

/* Main Content */
.vf1c-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.vf1c-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
}

.vf1c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vf1c-slide-active {
    position: relative;
    opacity: 1;
}

.vf1c-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.vf1c-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.vf1c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* Sections */
.vf1c-section {
    padding: 2rem 1.5rem;
}

.vf1c-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--vf1c-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vf1c-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.vf1c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vf1c-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vf1c-game-item:hover {
    transform: scale(1.08);
}

.vf1c-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--vf1c-border);
    transition: border-color 0.3s ease;
}

.vf1c-game-item:hover .vf1c-game-img {
    border-color: var(--vf1c-primary);
}

.vf1c-game-name {
    font-size: 1.1rem;
    color: var(--vf1c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.vf1c-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--vf1c-bg-light);
    border-radius: 0.8rem;
    border-left: 3px solid var(--vf1c-primary);
}

/* Info Card */
.vf1c-info-card {
    background: var(--vf1c-bg-light);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--vf1c-border);
}

.vf1c-info-card h3 {
    font-size: 1.5rem;
    color: var(--vf1c-primary);
    margin-bottom: 1rem;
}

.vf1c-info-card p {
    color: var(--vf1c-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Feature List */
.vf1c-feature-list {
    list-style: none;
}

.vf1c-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--vf1c-bg);
    border-radius: 0.8rem;
}

.vf1c-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vf1c-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vf1c-feature-icon i {
    color: var(--vf1c-bg);
    font-size: 1.6rem;
}

/* FAQ */
.vf1c-faq-item {
    background: var(--vf1c-bg-light);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.vf1c-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--vf1c-primary);
    cursor: pointer;
}

.vf1c-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--vf1c-text-muted);
}

/* Footer */
.vf1c-footer {
    background: var(--vf1c-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--vf1c-border);
}

.vf1c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vf1c-footer-link {
    color: var(--vf1c-text-muted);
    font-size: 1.2rem;
}

.vf1c-footer-link:hover {
    color: var(--vf1c-primary);
}

.vf1c-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vf1c-partner-img {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vf1c-partner-img:hover {
    opacity: 1;
}

.vf1c-copyright {
    text-align: center;
    color: var(--vf1c-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.vf1c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(26, 26, 53, 0.98) 0%, var(--vf1c-bg-light) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--vf1c-border);
}

.vf1c-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.vf1c-nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.vf1c-nav-item i {
    font-size: 22px;
    color: var(--vf1c-text-muted);
    transition: color 0.3s ease;
}

.vf1c-nav-item span {
    font-size: 10px;
    color: var(--vf1c-text-muted);
    margin-top: 0.3rem;
    transition: color 0.3s ease;
}

.vf1c-nav-item:hover i,
.vf1c-nav-item:hover span,
.vf1c-nav-item.vf1c-active i,
.vf1c-nav-item.vf1c-active span {
    color: var(--vf1c-primary);
}

/* Promo Banner */
.vf1c-promo-banner {
    background: var(--vf1c-gradient);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.vf1c-promo-banner h3 {
    color: var(--vf1c-bg);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.vf1c-promo-banner p {
    color: var(--vf1c-bg);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* RTP Stats */
.vf1c-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vf1c-rtp-item {
    background: var(--vf1c-bg);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--vf1c-border);
}

.vf1c-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vf1c-primary);
}

.vf1c-rtp-label {
    font-size: 1.1rem;
    color: var(--vf1c-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
    .vf1c-bottom-nav {
        display: none;
    }

    .vf1c-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .vf1c-main {
        padding-bottom: 80px;
    }
}

/* Utilities */
.vf1c-text-center {
    text-align: center;
}

.vf1c-mb-1 {
    margin-bottom: 1rem;
}

.vf1c-mb-2 {
    margin-bottom: 2rem;
}

.vf1c-highlight {
    color: var(--vf1c-primary);
    font-weight: 600;
}
