/**
 * JL5 Platform Styles - Mobile First Design
 * CSS prefix: vce1-
 * Color Palette: #BF360C | #1A1A1A | #C71585 | #FFCCCB | #FFC0CB
 */

/* ===== CSS Variables ===== */
:root {
    --vce1-primary: #BF360C;
    --vce1-dark: #1A1A1A;
    --vce1-accent: #C71585;
    --vce1-light-pink: #FFCCCB;
    --vce1-pink: #FFC0CB;
    --vce1-white: #FFFFFF;
    --vce1-gray: #666666;
    --vce1-light-gray: #F5F5F5;
    --vce1-border: #E0E0E0;
    --vce1-shadow: rgba(0, 0, 0, 0.1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--vce1-dark);
    background: var(--vce1-light-gray);
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

body.vce1-loaded {
    opacity: 1;
}

/* ===== Header ===== */
.vce1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    background: linear-gradient(135deg, var(--vce1-primary) 0%, #D84315 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--vce1-shadow);
}

.vce1-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--vce1-white);
    text-decoration: none;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vce1-header-buttons {
    display: flex;
    gap: 10px;
}

.vce1-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid var(--vce1-white);
    background: transparent;
    color: var(--vce1-white);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.vce1-btn:hover {
    background: var(--vce1-white);
    color: var(--vce1-primary);
    transform: scale(1.05);
}

.vce1-btn.vce1-btn-primary {
    background: var(--vce1-accent);
    border-color: var(--vce1-accent);
}

.vce1-btn.vce1-btn-primary:hover {
    background: #D81B60;
    border-color: #D81B60;
    color: var(--vce1-white);
}

/* ===== Mobile Menu ===== */
.vce1-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--vce1-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 769px) {
    .vce1-menu-toggle {
        display: none;
    }
}

.vce1-mobile-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    max-width: 430px;
    height: calc(100vh - 60px);
    background: var(--vce1-dark);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.vce1-mobile-menu.vce1-menu-active {
    left: 0;
}

.vce1-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--vce1-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    transition: background 0.3s ease;
}

.vce1-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero Banner ===== */
.vce1-hero {
    margin-top: 60px;
    height: 200px;
    background: linear-gradient(135deg, var(--vce1-accent) 0%, var(--vce1-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--vce1-white);
}

.vce1-hero h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vce1-hero p {
    font-size: 16px;
    opacity: 0.95;
}

/* ===== Main Content ===== */
.vce1-main {
    padding: 20px 15px 80px;
    min-height: calc(100vh - 60px - 60px);
}

@media (min-width: 769px) {
    .vce1-main {
        padding-bottom: 20px;
    }
}

/* ===== Section Titles ===== */
.vce1-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--vce1-primary);
    margin: 30px 0 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Category Tabs ===== */
.vce1-category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.vce1-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--vce1-white);
    border: 2px solid var(--vce1-border);
    border-radius: 25px;
    color: var(--vce1-dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vce1-category-tab.vce1-active,
.vce1-category-tab:hover {
    background: var(--vce1-primary);
    border-color: var(--vce1-primary);
    color: var(--vce1-white);
}

/* ===== Game Grid ===== */
.vce1-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.vce1-game-item {
    background: var(--vce1-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--vce1-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.vce1-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--vce1-shadow);
}

.vce1-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--vce1-light-gray);
}

.vce1-game-name {
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--vce1-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Mobile Bottom Navigation ===== */
.vce1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    background: linear-gradient(to top, var(--vce1-dark) 0%, #2D2D2D 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px var(--vce1-shadow);
    z-index: 1000;
}

@media (min-width: 769px) {
    .vce1-bottom-nav {
        display: none;
    }
}

.vce1-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--vce1-light-pink);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vce1-nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
}

.vce1-nav-item span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.vce1-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--vce1-accent);
    transition: width 0.3s ease;
}

.vce1-nav-item:hover::after,
.vce1-nav-item.vce1-active::after {
    width: 30px;
}

.vce1-nav-item:hover,
.vce1-nav-item.vce1-active {
    color: var(--vce1-pink);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.vce1-footer {
    background: var(--vce1-dark);
    color: var(--vce1-white);
    padding: 30px 15px 80px;
    text-align: center;
}

@media (min-width: 769px) {
    .vce1-footer {
        padding-bottom: 30px;
    }
}

.vce1-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vce1-footer-link {
    color: var(--vce1-light-pink);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.vce1-footer-link:hover {
    color: var(--vce1-accent);
}

.vce1-footer-copy {
    font-size: 12px;
    opacity: 0.7;
}

.vce1-partner-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.vce1-partner-logo {
    width: 60px;
    height: 30px;
    background: var(--vce1-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--vce1-dark);
    font-weight: 700;
}

/* ===== Accordion ===== */
.vce1-accordion-item {
    background: var(--vce1-white);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--vce1-shadow);
}

.vce1-accordion-header {
    padding: 15px;
    background: var(--vce1-white);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--vce1-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vce1-accordion-icon {
    transition: transform 0.3s ease;
}

.vce1-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vce1-accordion-content p {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--vce1-gray);
    border-top: 1px solid var(--vce1-border);
}

/* ===== Content Boxes ===== */
.vce1-content-box {
    background: var(--vce1-white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--vce1-shadow);
}

.vce1-content-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--vce1-primary);
    margin-bottom: 10px;
}

.vce1-content-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--vce1-gray);
    margin-bottom: 10px;
}

.vce1-content-box p:last-child {
    margin-bottom: 0;
}

/* ===== Link Styling ===== */
.vce1-link {
    color: var(--vce1-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vce1-link:hover {
    color: var(--vce1-primary);
    text-decoration: underline;
}

/* ===== List Styling ===== */
.vce1-list {
    list-style: none;
    padding: 0;
}

.vce1-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--vce1-border);
    font-size: 14px;
    color: var(--vce1-gray);
}

.vce1-list li:last-child {
    border-bottom: none;
}

.vce1-list li::before {
    content: '•';
    color: var(--vce1-accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.vce1-list {
    padding-left: 1em;
}
