/**
 * J77 Legit Theme CSS
 * Mobile-first responsive design
 * CSS class prefix: ve2a-
 */

/* CSS Variables */
:root {
    --ve2a-primary: #FFBF00;
    --ve2a-secondary: #CD853F;
    --ve2a-dark: #1C2833;
    --ve2a-light: #F5DEB3;
    --ve2a-accent: #8A2BE2;
    --ve2a-success: #28a745;
    --ve2a-warning: #ffc107;
    --ve2a-danger: #dc3545;
    --ve2a-info: #17a2b8;
    --ve2a-text-primary: #333333;
    --ve2a-text-secondary: #666666;
    --ve2a-text-light: #999999;
    --ve2a-text-white: #FFFFFF;
    --ve2a-bg-primary: #FFFFFF;
    --ve2a-bg-secondary: #F8F9FA;
    --ve2a-bg-dark: #1C2833;
    --ve2a-border: #E9ECEF;
    --ve2a-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --ve2a-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
    --ve2a-border-radius: 8px;
    --ve2a-border-radius-sm: 4px;
    --ve2a-border-radius-lg: 12px;
    --ve2a-transition: all 0.3s ease;
    --ve2a-header-height: 64px;
    --ve2a-footer-height: 80px;
    --ve2a-mobile-nav-height: 64px;
    --vh: 1vh;
}

/* Reset and Base Styles */
* {
    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;
    color: var(--ve2a-text-primary);
    background-color: var(--ve2a-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

/* Container and Layout */
.ve2a-container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.ve2a-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ve2a-main-content {
    flex: 1;
    padding-top: var(--ve2a-header-height);
    padding-bottom: var(--ve2a-mobile-nav-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ve2a-dark);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 2.0rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--ve2a-primary);
    text-decoration: none;
    transition: var(--ve2a-transition);
}

a:hover {
    color: var(--ve2a-secondary);
    text-decoration: underline;
}

/* Header */
.ve2a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ve2a-header-height);
    background-color: var(--ve2a-dark);
    color: var(--ve2a-text-white);
    z-index: 1000;
    transition: var(--ve2a-transition);
}

.ve2a-header.scrolled {
    box-shadow: var(--ve2a-shadow);
    background-color: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
}

.ve2a-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.ve2a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ve2a-text-white);
    text-decoration: none;
}

.ve2a-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
}

.ve2a-nav-buttons {
    display: flex;
    gap: 0.8rem;
}

.ve2a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--ve2a-border-radius);
    cursor: pointer;
    transition: var(--ve2a-transition);
    text-decoration: none;
    min-height: 4.0rem;
    min-width: 8.0rem;
}

.ve2a-btn-primary {
    background-color: var(--ve2a-primary);
    color: var(--ve2a-dark);
}

.ve2a-btn-primary:hover {
    background-color: #E6AC00;
    transform: translateY(-2px);
    box-shadow: var(--ve2a-shadow);
    text-decoration: none;
    color: var(--ve2a-dark);
}

.ve2a-btn-secondary {
    background-color: transparent;
    color: var(--ve2a-text-white);
    border: 2px solid var(--ve2a-primary);
}

.ve2a-btn-secondary:hover {
    background-color: var(--ve2a-primary);
    color: var(--ve2a-dark);
    text-decoration: none;
    color: var(--ve2a-dark);
}

.ve2a-hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4.0rem;
    height: 4.0rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
}

.ve2a-hamburger-line {
    width: 2.4rem;
    height: 0.3rem;
    background-color: var(--ve2a-text-white);
    border-radius: 0.2rem;
    transition: var(--ve2a-transition);
}

.ve2a-hamburger-button.active .ve2a-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.ve2a-hamburger-button.active .ve2a-hamburger-line:nth-child(2) {
    opacity: 0;
}

.ve2a-hamburger-button.active .ve2a-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.ve2a-mobile-menu {
    position: fixed;
    top: var(--ve2a-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(28, 40, 51, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.ve2a-mobile-menu.active {
    transform: translateX(0);
}

.ve2a-mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ve2a-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    color: var(--ve2a-text-white);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--ve2a-border-radius);
    text-decoration: none;
    transition: var(--ve2a-transition);
}

.ve2a-mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--ve2a-primary);
    text-decoration: none;
}

.ve2a-mobile-menu-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel */
.ve2a-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: var(--ve2a-border-radius-lg);
    margin: 2rem 0;
    background-color: var(--ve2a-bg-secondary);
}

.ve2a-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.ve2a-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ve2a-carousel-slide.active {
    opacity: 1;
}

.ve2a-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ve2a-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: var(--ve2a-text-white);
}

.ve2a-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ve2a-carousel-description {
    font-size: 1.4rem;
    opacity: 0.9;
}

.ve2a-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.ve2a-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--ve2a-transition);
}

.ve2a-carousel-dot.active {
    background-color: var(--ve2a-primary);
    transform: scale(1.2);
}

/* Game Cards */
.ve2a-games-section {
    margin: 3rem 0;
}

.ve2a-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ve2a-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ve2a-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ve2a-section-icon {
    width: 3rem;
    height: 3rem;
    color: var(--ve2a-primary);
}

.ve2a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ve2a-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--ve2a-bg-secondary);
    border-radius: var(--ve2a-border-radius);
    transition: var(--ve2a-transition);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--ve2a-border);
}

.ve2a-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ve2a-shadow-lg);
    border-color: var(--ve2a-primary);
    text-decoration: none;
}

.ve2a-game-card.touched {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.ve2a-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ve2a-border-radius-sm);
    margin-bottom: 0.8rem;
}

.ve2a-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ve2a-text-primary);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.ve2a-content-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--ve2a-bg-secondary);
    border-radius: var(--ve2a-border-radius-lg);
    border: 1px solid var(--ve2a-border);
}

.ve2a-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ve2a-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ve2a-content-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--ve2a-text-secondary);
    margin-bottom: 1rem;
}

.ve2a-list {
    list-style: none;
    margin: 1.5rem 0;
}

.ve2a-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--ve2a-text-secondary);
}

.ve2a-list-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--ve2a-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.ve2a-list-content {
    flex: 1;
}

.ve2a-highlight {
    color: var(--ve2a-primary);
    font-weight: 600;
}

.ve2a-card {
    background-color: var(--ve2a-bg-primary);
    border-radius: var(--ve2a-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ve2a-border);
    transition: var(--ve2a-transition);
}

.ve2a-card:hover {
    box-shadow: var(--ve2a-shadow);
    border-color: var(--ve2a-primary);
}

.ve2a-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ve2a-dark);
    margin-bottom: 1rem;
}

/* Feature Boxes */
.ve2a-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.ve2a-feature-box {
    padding: 1.5rem;
    background-color: var(--ve2a-bg-primary);
    border-radius: var(--ve2a-border-radius);
    border: 1px solid var(--ve2a-border);
    transition: var(--ve2a-transition);
}

.ve2a-feature-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--ve2a-shadow);
    border-color: var(--ve2a-primary);
}

.ve2a-feature-icon {
    width: 4rem;
    height: 4rem;
    color: var(--ve2a-primary);
    margin-bottom: 1rem;
}

.ve2a-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ve2a-dark);
    margin-bottom: 0.8rem;
}

.ve2a-feature-description {
    font-size: 1.4rem;
    color: var(--ve2a-text-secondary);
    line-height: 1.5;
}

/* Bottom Navigation */
.ve2a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ve2a-mobile-nav-height);
    background: linear-gradient(135deg, var(--ve2a-dark) 0%, #2C3E50 100%);
    border-top: 1px solid var(--ve2a-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ve2a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ve2a-transition);
    position: relative;
    color: var(--ve2a-text-light);
}

.ve2a-nav-item:hover {
    color: var(--ve2a-primary);
    transform: translateY(-2px);
}

.ve2a-nav-item.active {
    color: var(--ve2a-primary);
}

.ve2a-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.8rem;
}

.ve2a-nav-label {
    font-size: 1.0rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.ve2a-nav-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background-color: var(--ve2a-danger);
    color: var(--ve2a-text-white);
    font-size: 1.0rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    min-width: 1.6rem;
    text-align: center;
}

/* Footer */
.ve2a-footer {
    background-color: var(--ve2a-bg-dark);
    color: var(--ve2a-text-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.ve2a-footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.ve2a-footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ve2a-primary);
    margin-bottom: 1rem;
}

.ve2a-footer-description {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--ve2a-text-light);
}

.ve2a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ve2a-footer-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--ve2a-text-white);
    border-radius: var(--ve2a-border-radius);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--ve2a-transition);
}

.ve2a-footer-link:hover {
    background-color: var(--ve2a-primary);
    color: var(--ve2a-dark);
    text-decoration: none;
}

.ve2a-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.ve2a-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--ve2a-transition);
}

.ve2a-partner-logo:hover {
    opacity: 1;
}

.ve2a-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    color: var(--ve2a-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ve2a-container {
        padding: 0 1rem;
    }

    .ve2a-nav-buttons {
        display: none;
    }

    .ve2a-hamburger-button {
        display: flex;
    }

    .ve2a-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .ve2a-features-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    .ve2a-content-section {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) {
    .ve2a-bottom-nav {
        display: none;
    }

    .ve2a-main-content {
        padding-bottom: 0;
    }

    .ve2a-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .ve2a-mobile-menu {
        display: none;
    }
}

/* Utility Classes */
.ve2a-text-center {
    text-align: center;
}

.ve2a-text-left {
    text-align: left;
}

.ve2a-text-right {
    text-align: right;
}

.ve2a-mt-1 { margin-top: 1rem; }
.ve2a-mt-2 { margin-top: 2rem; }
.ve2a-mt-3 { margin-top: 3rem; }
.ve2a-mb-1 { margin-bottom: 1rem; }
.ve2a-mb-2 { margin-bottom: 2rem; }
.ve2a-mb-3 { margin-bottom: 3rem; }

.ve2a-p-1 { padding: 1rem; }
.ve2a-p-2 { padding: 2rem; }
.ve2a-p-3 { padding: 3rem; }

.ve2a-d-none {
    display: none !important;
}

.ve2a-d-block {
    display: block !important;
}

.ve2a-d-flex {
    display: flex !important;
}

/* Animation Classes */
@keyframes ve2a-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ve2a-fade-in {
    animation: ve2a-fadeIn 0.6s ease forwards;
}

@keyframes ve2a-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ve2a-pulse {
    animation: ve2a-pulse 2s infinite;
}

/* Error Handling */
.ve2a-error {
    color: var(--ve2a-danger);
    font-size: 1.4rem;
    margin: 1rem 0;
}

.ve2a-success {
    color: var(--ve2a-success);
    font-size: 1.4rem;
    margin: 1rem 0;
}

/* Accessibility */
.ve2a-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.ve2a-btn:focus,
.ve2a-nav-item:focus,
.ve2a-game-card:focus,
.ve2a-mobile-menu-link:focus {
    outline: 3px solid var(--ve2a-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ve2a-header,
    .ve2a-bottom-nav,
    .ve2a-carousel,
    .ve2a-hamburger-button {
        display: none !important;
    }

    .ve2a-main-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}