/**
 * 222jl Layout Stylesheet
 * Class prefix: v45c-
 * Color scheme: #0E1621 bg, #7B68EE accent
 * Mobile-first, max-width 430px
 */

/* === CSS Variables === */
:root {
    --v45c-primary: #7B68EE;
    --v45c-primary-dark: #6A58D0;
    --v45c-primary-light: #9B8CFF;
    --v45c-bg: #0E1621;
    --v45c-bg-card: #151E2D;
    --v45c-bg-elevated: #1A2640;
    --v45c-text: #E8ECF4;
    --v45c-text-muted: #8892A6;
    --v45c-text-dim: #5A6478;
    --v45c-border: #253045;
    --v45c-radius: 10px;
    --v45c-radius-lg: 16px;
    --v45c-shadow: 0 4px 20px rgba(0,0,0,0.3);
    --v45c-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: var(--v45c-bg);
    color: var(--v45c-text);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--v45c-primary-light);
    text-decoration: none;
    transition: var(--v45c-transition);
}
a:hover {
    color: var(--v45c-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Header === */
.v45c-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background: var(--v45c-bg);
    border-bottom: 1px solid var(--v45c-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.v45c-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--v45c-primary);
    letter-spacing: 1px;
    cursor: pointer;
}

.v45c-logo span {
    color: var(--v45c-text);
}

.v45c-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.v45c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--v45c-transition);
    gap: 4px;
}

.v45c-btn-primary {
    background: var(--v45c-primary);
    color: #fff;
}
.v45c-btn-primary:hover {
    background: var(--v45c-primary-dark);
    transform: scale(1.03);
}

.v45c-btn-outline {
    background: transparent;
    color: var(--v45c-primary);
    border: 1.5px solid var(--v45c-primary);
}
.v45c-btn-outline:hover {
    background: rgba(123, 104, 238, 0.12);
}

.v45c-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.v45c-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--v45c-text);
    border-radius: 2px;
    transition: var(--v45c-transition);
}

/* === Mobile Menu === */
.v45c-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v45c-transition);
}
.v45c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v45c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--v45c-bg-card);
    z-index: 9999;
    transition: right 0.35s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}
.v45c-menu-active {
    right: 0;
}

.v45c-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--v45c-text);
    font-size: 24px;
    cursor: pointer;
}

.v45c-menu-link {
    display: block;
    padding: 14px 0;
    color: var(--v45c-text);
    font-size: 15px;
    border-bottom: 1px solid var(--v45c-border);
    cursor: pointer;
    transition: var(--v45c-transition);
}
.v45c-menu-link:hover {
    color: var(--v45c-primary);
    padding-left: 8px;
}

/* === Main Content === */
.v45c-main {
    padding-top: 58px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* === Carousel === */
.v45c-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--v45c-radius) var(--v45c-radius);
}
.v45c-slide {
    display: none;
    width: 100%;
}
.v45c-slide:first-child {
    display: block;
}
.v45c-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.v45c-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.v45c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--v45c-transition);
    border: none;
}
.v45c-dot-active {
    background: var(--v45c-primary);
    width: 22px;
    border-radius: 4px;
}

/* === Sections === */
.v45c-section {
    padding: 20px 16px;
}
.v45c-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--v45c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.v45c-section-title i,
.v45c-section-title .material-icons {
    color: var(--v45c-primary);
    font-size: 22px;
}

/* === Game Grid === */
.v45c-game-section {
    position: relative;
    margin-bottom: 8px;
}
.v45c-game-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.v45c-game-grid::-webkit-scrollbar {
    display: none;
}

.v45c-game-card {
    flex: 0 0 110px;
    scroll-snap-align: start;
    cursor: pointer;
    text-align: center;
    transition: var(--v45c-transition);
}
.v45c-game-card:hover {
    transform: translateY(-3px);
}

.v45c-game-img {
    width: 110px;
    height: 110px;
    border-radius: var(--v45c-radius);
    object-fit: cover;
    border: 2px solid var(--v45c-border);
    transition: var(--v45c-transition);
}
.v45c-game-card:hover .v45c-game-img {
    border-color: var(--v45c-primary);
}

.v45c-game-name {
    font-size: 11px;
    color: var(--v45c-text-muted);
    margin-top: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Content Blocks === */
.v45c-content-block {
    background: var(--v45c-bg-card);
    border-radius: var(--v45c-radius-lg);
    padding: 20px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--v45c-border);
}
.v45c-content-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--v45c-primary-light);
    margin-bottom: 12px;
}
.v45c-content-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--v45c-text);
    margin: 12px 0 6px;
}
.v45c-content-block p {
    font-size: 14px;
    color: var(--v45c-text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.v45c-content-block ul {
    padding-left: 18px;
    margin-bottom: 10px;
}
.v45c-content-block li {
    font-size: 14px;
    color: var(--v45c-text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}

/* === Promo Banner === */
.v45c-promo-banner {
    background: linear-gradient(135deg, var(--v45c-primary-dark), var(--v45c-primary-light));
    border-radius: var(--v45c-radius-lg);
    padding: 20px;
    text-align: center;
    margin: 16px;
    cursor: pointer;
    transition: var(--v45c-transition);
}
.v45c-promo-banner:hover {
    transform: scale(1.02);
}
.v45c-promo-banner h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.v45c-promo-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* === Footer === */
.v45c-footer {
    background: var(--v45c-bg-card);
    padding: 30px 16px 20px;
    border-top: 1px solid var(--v45c-border);
}
.v45c-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.v45c-footer-partners img {
    height: 28px;
    opacity: 0.6;
    transition: var(--v45c-transition);
}
.v45c-footer-partners img:hover {
    opacity: 1;
}
.v45c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    margin-bottom: 16px;
}
.v45c-footer-links a {
    font-size: 13px;
    color: var(--v45c-text-muted);
}
.v45c-footer-copy {
    text-align: center;
    font-size: 12px;
    color: var(--v45c-text-dim);
    margin-top: 12px;
}

/* === Bottom Navigation === */
.v45c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 62px;
    background: var(--v45c-bg-card);
    border-top: 1px solid var(--v45c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 4px;
}

.v45c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    color: var(--v45c-text-muted);
    font-size: 10px;
    cursor: pointer;
    transition: var(--v45c-transition);
    gap: 3px;
    border-radius: 8px;
    padding: 4px 8px;
}
.v45c-nav-btn:hover,
.v45c-nav-btn:focus {
    color: var(--v45c-primary);
    background: rgba(123,104,238,0.08);
}
.v45c-nav-btn i,
.v45c-nav-btn .material-icons,
.v45c-nav-btn ion-icon,
.v45c-nav-btn bi {
    font-size: 22px;
}
.v45c-nav-btn ion-icon {
    font-size: 24px;
}
.v45c-nav-btn .material-icons {
    font-size: 24px;
}
.v45c-nav-btn-active {
    color: var(--v45c-primary);
}
.v45c-nav-btn-active::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--v45c-primary);
    border-radius: 1px;
    margin-top: 2px;
}

/* === FAQ Accordion === */
.v45c-faq-item {
    border: 1px solid var(--v45c-border);
    border-radius: var(--v45c-radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--v45c-bg-card);
}
.v45c-faq-question {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--v45c-text);
    transition: var(--v45c-transition);
}
.v45c-faq-question:hover {
    color: var(--v45c-primary);
}
.v45c-faq-icon {
    transition: transform 0.3s ease;
    color: var(--v45c-primary);
}
.v45c-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 16px;
}
.v45c-faq-answer p {
    padding: 0 0 14px;
    font-size: 13px;
    color: var(--v45c-text-muted);
    line-height: 1.7;
}

/* === Help Page === */
.v45c-help-hero {
    background: linear-gradient(135deg, var(--v45c-bg-elevated), var(--v45c-bg-card));
    padding: 30px 16px;
    text-align: center;
    border-bottom: 1px solid var(--v45c-border);
}
.v45c-help-hero h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--v45c-primary-light);
    margin-bottom: 8px;
}
.v45c-help-hero p {
    font-size: 14px;
    color: var(--v45c-text-muted);
}

.v45c-safety-card {
    background: var(--v45c-bg-card);
    border: 1px solid var(--v45c-border);
    border-radius: var(--v45c-radius-lg);
    padding: 18px 16px;
    margin-bottom: 14px;
}
.v45c-safety-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--v45c-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.v45c-safety-card h3 i,
.v45c-safety-card h3 .material-icons {
    color: var(--v45c-primary);
    font-size: 20px;
}
.v45c-safety-card p {
    font-size: 13px;
    color: var(--v45c-text-muted);
    line-height: 1.7;
}

/* === Responsive Desktop === */
@media (min-width: 769px) {
    .v45c-bottom-nav {
        display: none;
    }
    .v45c-hamburger {
        display: none;
    }
    .v45c-main {
        padding-bottom: 20px;
    }
    body {
        max-width: 480px;
    }
}

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

/* === Utility === */
.v45c-text-center { text-align: center; }
.v45c-mt-8 { margin-top: 8px; }
.v45c-mt-16 { margin-top: 16px; }
.v45c-mb-8 { margin-bottom: 8px; }
.v45c-mb-16 { margin-bottom: 16px; }
.v45c-hidden { display: none !important; }
