/**
 * Jiljil - Main Stylesheet
 * Mobile-first responsive design
 * All classes use prefix "v5ed-" for namespace isolation
 * Color palette: #ECF0F1 | #FAFAFA | #DCDCDC | #4A4A4A | #1C2833
 */

/* CSS Variables */
:root {
    --v5ed-bg-primary: #1C2833;
    --v5ed-bg-secondary: #4A4A4A;
    --v5ed-bg-tertiary: #2C3E50;
    --v5ed-text-primary: #ECF0F1;
    --v5ed-text-secondary: #FAFAFA;
    --v5ed-text-muted: #DCDCDC;
    --v5ed-accent: #E74C3C;
    --v5ed-accent-hover: #C0392B;
    --v5ed-success: #27AE60;
    --v5ed-warning: #F39C12;
    --v5ed-border: #34495E;
    --v5ed-card-bg: #2C3E50;
    --v5ed-gradient: linear-gradient(135deg, #1C2833 0%, #4A4A4A 100%);
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--v5ed-bg-primary);
    color: var(--v5ed-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v5ed-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v5ed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v5ed-bg-primary);
    border-bottom: 1px solid var(--v5ed-border);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.v5ed-header-scrolled {
    background: rgba(28, 40, 51, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.v5ed-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v5ed-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v5ed-logo img {
    width: 32px;
    height: 32px;
}

.v5ed-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v5ed-text-primary);
}

.v5ed-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v5ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    min-width: 44px;
}

.v5ed-btn-primary {
    background: var(--v5ed-accent);
    color: var(--v5ed-text-primary);
}

.v5ed-btn-primary:hover {
    background: var(--v5ed-accent-hover);
    transform: translateY(-1px);
}

.v5ed-btn-secondary {
    background: transparent;
    color: var(--v5ed-text-primary);
    border: 1px solid var(--v5ed-border);
}

.v5ed-btn-secondary:hover {
    background: var(--v5ed-bg-secondary);
}

.v5ed-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--v5ed-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.v5ed-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v5ed-bg-primary);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v5ed-menu-active {
    right: 0;
}

.v5ed-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v5ed-border);
}

.v5ed-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v5ed-bg-secondary);
    border: none;
    border-radius: 50%;
    color: var(--v5ed-text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.v5ed-menu-nav {
    list-style: none;
}

.v5ed-menu-nav li {
    margin-bottom: 0.5rem;
}

.v5ed-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--v5ed-text-primary);
    font-size: 1.4rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.v5ed-menu-nav a:hover {
    background: var(--v5ed-bg-secondary);
}

.v5ed-menu-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--v5ed-border);
}

.v5ed-menu-section-title {
    font-size: 1.2rem;
    color: var(--v5ed-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v5ed-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v5ed-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.v5ed-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.v5ed-slider {
    position: relative;
    width: 100%;
}

.v5ed-slide {
    display: none;
    cursor: pointer;
}

.v5ed-slide:first-child {
    display: block;
}

.v5ed-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.v5ed-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v5ed-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.v5ed-dot-active {
    background: var(--v5ed-accent);
}

/* Section */
.v5ed-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.v5ed-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v5ed-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--v5ed-accent);
}

.v5ed-section-intro {
    font-size: 1.4rem;
    color: var(--v5ed-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Game Grid */
.v5ed-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v5ed-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.v5ed-game-card:hover {
    transform: scale(1.05);
}

.v5ed-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid var(--v5ed-border);
}

.v5ed-game-card:hover img {
    border-color: var(--v5ed-accent);
}

.v5ed-game-name {
    font-size: 1.1rem;
    color: var(--v5ed-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.v5ed-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.v5ed-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v5ed-text-primary);
}

.v5ed-category-icon {
    font-size: 1.8rem;
    color: var(--v5ed-accent);
    margin-right: 0.5rem;
}

/* Features Grid */
.v5ed-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.v5ed-feature-card {
    background: var(--v5ed-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--v5ed-border);
}

.v5ed-feature-icon {
    font-size: 3rem;
    color: var(--v5ed-accent);
    margin-bottom: 1rem;
}

.v5ed-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v5ed-text-primary);
    margin-bottom: 0.5rem;
}

.v5ed-feature-desc {
    font-size: 1.2rem;
    color: var(--v5ed-text-muted);
}

/* Info Box */
.v5ed-info-box {
    background: var(--v5ed-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--v5ed-accent);
}

.v5ed-info-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v5ed-text-primary);
    margin-bottom: 0.8rem;
}

.v5ed-info-text {
    font-size: 1.3rem;
    color: var(--v5ed-text-muted);
    line-height: 1.6;
}

/* CTA Section */
.v5ed-cta {
    background: var(--v5ed-gradient);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 1.5rem;
}

.v5ed-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v5ed-text-primary);
    margin-bottom: 1rem;
}

.v5ed-cta-text {
    font-size: 1.4rem;
    color: var(--v5ed-text-muted);
    margin-bottom: 1.5rem;
}

.v5ed-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--v5ed-accent);
    color: var(--v5ed-text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v5ed-cta-btn:hover {
    background: var(--v5ed-accent-hover);
    transform: translateY(-2px);
}

/* Stats Grid */
.v5ed-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v5ed-stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--v5ed-card-bg);
    border-radius: 8px;
}

.v5ed-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v5ed-accent);
}

.v5ed-stat-label {
    font-size: 1.1rem;
    color: var(--v5ed-text-muted);
}

/* Footer */
.v5ed-footer {
    background: var(--v5ed-bg-secondary);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--v5ed-border);
}

.v5ed-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v5ed-footer-links a {
    font-size: 1.2rem;
    color: var(--v5ed-text-muted);
    transition: color 0.2s ease;
}

.v5ed-footer-links a:hover {
    color: var(--v5ed-accent);
}

.v5ed-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v5ed-partners img {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.v5ed-partners img:hover {
    opacity: 1;
}

.v5ed-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v5ed-text-muted);
}

/* Bottom Navigation (Mobile) */
.v5ed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--v5ed-bg-primary);
    border-top: 1px solid var(--v5ed-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .v5ed-bottom-nav {
        display: none;
    }
}

.v5ed-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(--v5ed-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.v5ed-nav-btn:hover,
.v5ed-nav-btn-active {
    color: var(--v5ed-accent);
    transform: scale(1.1);
}

.v5ed-nav-btn i,
.v5ed-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.v5ed-nav-btn span {
    font-size: 10px;
}

/* Promo Links in Content */
.v5ed-promo-link {
    color: var(--v5ed-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.v5ed-promo-link:hover {
    color: var(--v5ed-accent-hover);
    text-decoration: underline;
}

/* List Styles */
.v5ed-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.v5ed-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.3rem;
    color: var(--v5ed-text-muted);
    border-bottom: 1px solid var(--v5ed-border);
}

.v5ed-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--v5ed-success);
}

/* FAQ Accordion */
.v5ed-faq-item {
    background: var(--v5ed-card-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.v5ed-faq-question {
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v5ed-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v5ed-faq-question:after {
    content: '+';
    font-size: 1.6rem;
    color: var(--v5ed-accent);
}

.v5ed-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.3rem;
    color: var(--v5ed-text-muted);
    line-height: 1.6;
}

/* Utilities */
.v5ed-text-center { text-align: center; }
.v5ed-mb-1 { margin-bottom: 1rem; }
.v5ed-mb-2 { margin-bottom: 2rem; }
.v5ed-mt-2 { margin-top: 2rem; }
.v5ed-hidden { display: none; }
