/**
 * IronPlay Design System
 * Prefix: vcf1-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --vcf1-primary: #D4AF37;
    --vcf1-primary-light: #E8C860;
    --vcf1-primary-dark: #B8962E;
    --vcf1-bg-dark: #273746;
    --vcf1-bg-darker: #1A252F;
    --vcf1-bg-light: #34495E;
    --vcf1-text: #ECF0F1;
    --vcf1-text-muted: #BDC3C7;
    --vcf1-accent: #E74C3C;
    --vcf1-success: #27AE60;
    --vcf1-border: #3D566E;
    --vcf1-shadow: rgba(0, 0, 0, 0.3);
    --vcf1-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--vcf1-font);
    background-color: var(--vcf1-bg-dark);
    color: var(--vcf1-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.vcf1-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
    position: relative;
}

/* Header */
.vcf1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--vcf1-bg-darker) 0%, var(--vcf1-bg-dark) 100%);
    border-bottom: 1px solid var(--vcf1-border);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vcf1-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vcf1-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.vcf1-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vcf1-primary);
    letter-spacing: -0.5px;
}

.vcf1-header-right {
    display: flex;
    gap: 0.6rem;
}

.vcf1-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--vcf1-font);
}

.vcf1-btn-register {
    background: var(--vcf1-primary);
    color: var(--vcf1-bg-darker);
}

.vcf1-btn-register:hover {
    background: var(--vcf1-primary-light);
    transform: translateY(-1px);
}

.vcf1-btn-login {
    background: transparent;
    color: var(--vcf1-primary);
    border: 1px solid var(--vcf1-primary);
}

.vcf1-btn-login:hover {
    background: var(--vcf1-primary);
    color: var(--vcf1-bg-darker);
}

/* Menu Toggle */
.vcf1-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vcf1-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

@media (max-width: 768px) {
    .vcf1-menu-toggle {
        display: block;
    }

    .vcf1-desktop-nav {
        display: none;
    }
}

/* Mobile Menu */
.vcf1-mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--vcf1-bg-darker);
    border-bottom: 1px solid var(--vcf1-border);
    z-index: 999;
    padding: 1rem;
}

.vcf1-mobile-menu.vcf1-menu-active {
    display: block;
}

.vcf1-mobile-menu a {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--vcf1-text);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--vcf1-border);
    transition: background 0.2s ease;
}

.vcf1-mobile-menu a:hover {
    background: var(--vcf1-bg-light);
    color: var(--vcf1-primary);
}

/* Main Content */
.vcf1-main {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero Section */
.vcf1-hero {
    padding: 1.5rem 0;
}

.vcf1-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--vcf1-primary);
    margin-bottom: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.vcf1-hero-subtitle {
    font-size: 1.2rem;
    color: var(--vcf1-text-muted);
    text-align: center;
}

/* Carousel */
.vcf1-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin: 1.5rem 0;
    background: var(--vcf1-bg-light);
}

.vcf1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.vcf1-slide.vcf1-slide-active {
    opacity: 1;
}

.vcf1-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.vcf1-slide-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.vcf1-slide-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* Section */
.vcf1-section {
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.vcf1-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vcf1-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vcf1-primary);
}

/* Game Grid */
.vcf1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.vcf1-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vcf1-game-item:hover {
    transform: scale(1.05);
}

.vcf1-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--vcf1-bg-light);
}

.vcf1-game-name {
    font-size: 0.85rem;
    color: var(--vcf1-text);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card */
.vcf1-card {
    background: var(--vcf1-bg-light);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--vcf1-border);
}

.vcf1-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vcf1-primary);
    margin-bottom: 0.8rem;
}

.vcf1-card-text {
    font-size: 1rem;
    color: var(--vcf1-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.vcf1-promo-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--vcf1-primary);
    color: var(--vcf1-bg-darker);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    margin: 0.3rem 0;
}

.vcf1-promo-link:hover {
    background: var(--vcf1-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--vcf1-shadow);
}

.vcf1-text-link {
    color: var(--vcf1-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.vcf1-text-link:hover {
    color: var(--vcf1-primary-light);
}

/* Features */
.vcf1-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.vcf1-feature {
    text-align: center;
    padding: 1rem;
    background: var(--vcf1-bg-light);
    border-radius: 6px;
}

.vcf1-feature-icon {
    font-size: 2rem;
    color: var(--vcf1-primary);
    margin-bottom: 0.5rem;
}

.vcf1-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vcf1-text);
    margin-bottom: 0.3rem;
}

.vcf1-feature-desc {
    font-size: 0.85rem;
    color: var(--vcf1-text-muted);
}

/* Stats */
.vcf1-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: var(--vcf1-bg-light);
    border-radius: 8px;
    margin: 1rem 0;
}

.vcf1-stat {
    text-align: center;
}

.vcf1-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--vcf1-primary);
}

.vcf1-stat-label {
    font-size: 0.85rem;
    color: var(--vcf1-text-muted);
}

/* FAQ */
.vcf1-faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--vcf1-border);
    border-radius: 6px;
    overflow: hidden;
}

.vcf1-faq-question {
    padding: 1rem;
    background: var(--vcf1-bg-light);
    font-weight: 600;
    color: var(--vcf1-text);
    cursor: pointer;
}

.vcf1-faq-answer {
    padding: 1rem;
    background: var(--vcf1-bg-dark);
    font-size: 0.95rem;
    color: var(--vcf1-text-muted);
    display: none;
}

.vcf1-faq-item.vcf1-faq-active .vcf1-faq-answer {
    display: block;
}

/* Bottom Navigation */
.vcf1-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--vcf1-bg-darker) 0%, var(--vcf1-bg-dark) 100%);
    border-top: 1px solid var(--vcf1-border);
    z-index: 1000;
    padding: 0.6rem 0;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 768px) {
    .vcf1-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .vcf1-main {
        padding-bottom: 80px;
    }
}

.vcf1-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    color: var(--vcf1-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vcf1-bottom-nav-item:hover,
.vcf1-bottom-nav-item.vcf1-nav-active {
    color: var(--vcf1-primary);
}

.vcf1-bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.vcf1-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.vcf1-footer {
    background: var(--vcf1-bg-darker);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--vcf1-border);
}

.vcf1-footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vcf1-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.vcf1-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vcf1-footer-link {
    color: var(--vcf1-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.vcf1-footer-link:hover {
    color: var(--vcf1-primary);
}

.vcf1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.vcf1-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--vcf1-bg-light);
    object-fit: contain;
    padding: 4px;
}

.vcf1-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--vcf1-text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vcf1-border);
}

/* RTP Section */
.vcf1-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.vcf1-rtp-item {
    background: var(--vcf1-bg-light);
    border-radius: 6px;
    padding: 0.8rem;
    text-align: center;
}

.vcf1-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vcf1-success);
}

.vcf1-rtp-label {
    font-size: 0.75rem;
    color: var(--vcf1-text-muted);
    margin-top: 0.2rem;
}

/* Internal Links */
.vcf1-internal-link {
    color: var(--vcf1-primary);
    text-decoration: underline;
    font-weight: 500;
}

.vcf1-internal-link:hover {
    color: var(--vcf1-primary-light);
}

/* Utility Classes */
.vcf1-text-center {
    text-align: center;
}

.vcf1-mt-1 { margin-top: 0.5rem; }
.vcf1-mt-2 { margin-top: 1rem; }
.vcf1-mt-3 { margin-top: 1.5rem; }
.vcf1-mb-1 { margin-bottom: 0.5rem; }
.vcf1-mb-2 { margin-bottom: 1rem; }
.vcf1-mb-3 { margin-bottom: 1.5rem; }

/* Responsive Adjustments */
@media (max-width: 430px) {
    .vcf1-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vcf1-features {
        grid-template-columns: 1fr;
    }

    .vcf1-header {
        padding: 0.6rem 1rem;
    }

    .vcf1-site-name {
        font-size: 1.5rem;
    }

    .vcf1-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1rem;
    }
}
