/**
 * WJPESO APK - Core Stylesheet
 * Website: wjpesoapk.click
 * Prefix: ve52-
 * Color Palette: #2E4057 (dark bg), #A0522D (accent), #FF4500 (highlight), #008B8B (secondary), #FF6347 (warm), #E9ECEF (light text)
 */

/* CSS Variables */
:root {
    --ve52-primary: #A0522D;
    --ve52-secondary: #008B8B;
    --ve52-accent: #FF4500;
    --ve52-warm: #FF6347;
    --ve52-dark: #2E4057;
    --ve52-light: #E9ECEF;
    --ve52-white: #FFFFFF;
    --ve52-black: #1a1a2e;
    --ve52-gray: #6c757d;
    --ve52-header-height: 60px;
    --ve52-bottom-nav-height: 60px;
    --ve52-border-radius: 8px;
    --ve52-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 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;
    background-color: var(--ve52-dark);
    color: var(--ve52-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--ve52-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ve52-warm);
}

/* Container */
.ve52-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ve52-wrapper {
    padding: 1.5rem 0;
}

/* Header */
.ve52-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ve52-header-height);
    background: linear-gradient(135deg, var(--ve52-dark) 0%, var(--ve52-black) 100%);
    border-bottom: 2px solid var(--ve52-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    transition: box-shadow 0.3s ease;
}

.ve52-header-shadow {
    box-shadow: var(--ve52-shadow);
}

.ve52-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ve52-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.ve52-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ve52-accent);
}

.ve52-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ve52-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--ve52-border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
    min-width: 44px;
}

.ve52-btn-primary {
    background: linear-gradient(135deg, var(--ve52-accent) 0%, var(--ve52-warm) 100%);
    color: var(--ve52-white);
}

.ve52-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.ve52-btn-secondary {
    background: transparent;
    border: 2px solid var(--ve52-secondary);
    color: var(--ve52-secondary);
}

.ve52-btn-secondary:hover {
    background: var(--ve52-secondary);
    color: var(--ve52-white);
}

.ve52-menu-toggle {
    background: transparent;
    border: none;
    color: var(--ve52-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.ve52-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--ve52-black);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.ve52-menu-active {
    right: 0;
}

.ve52-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ve52-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ve52-mobile-menu .ve52-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--ve52-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.ve52-mobile-menu ul {
    list-style: none;
    margin-top: 4rem;
}

.ve52-mobile-menu li {
    margin-bottom: 1.5rem;
}

.ve52-mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--ve52-light);
    font-size: 1.5rem;
    border-radius: var(--ve52-border-radius);
    transition: all 0.3s ease;
}

.ve52-mobile-menu a:hover {
    background: var(--ve52-primary);
    color: var(--ve52-white);
}

/* Main Content */
.ve52-main {
    padding-top: var(--ve52-header-height);
    min-height: 100vh;
}

/* Carousel */
.ve52-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--ve52-border-radius);
    margin-bottom: 2rem;
}

.ve52-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ve52-slide-active {
    opacity: 1;
}

.ve52-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.ve52-section {
    padding: 2rem 0;
}

.ve52-section-title {
    color: var(--ve52-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ve52-primary);
}

/* Game Grid */
.ve52-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ve52-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ve52-game-item:hover {
    transform: scale(1.05);
}

.ve52-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--ve52-border-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--ve52-primary);
}

.ve52-game-name {
    font-size: 1.1rem;
    color: var(--ve52-light);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Title */
.ve52-category-title {
    background: linear-gradient(90deg, var(--ve52-primary) 0%, transparent 100%);
    padding: 1rem 1.5rem;
    margin: 1.5rem -1.5rem;
    font-size: 1.6rem;
    color: var(--ve52-white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ve52-category-title i {
    font-size: 2rem;
}

/* Cards */
.ve52-card {
    background: var(--ve52-black);
    border-radius: var(--ve52-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ve52-primary);
}

.ve52-card-title {
    color: var(--ve52-accent);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Feature List */
.ve52-feature-list {
    list-style: none;
}

.ve52-feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(160, 82, 45, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ve52-feature-list li:last-child {
    border-bottom: none;
}

.ve52-feature-list i {
    color: var(--ve52-accent);
    font-size: 1.6rem;
    margin-top: 0.2rem;
}

/* Promo Links */
.ve52-promo-text {
    color: var(--ve52-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ve52-promo-text:hover {
    color: var(--ve52-warm);
    text-decoration: underline;
}

.ve52-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--ve52-accent) 0%, var(--ve52-warm) 100%);
    color: var(--ve52-white);
    border-radius: var(--ve52-border-radius);
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.ve52-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

/* Footer */
.ve52-footer {
    background: var(--ve52-black);
    padding: 3rem 0;
    border-top: 2px solid var(--ve52-primary);
}

.ve52-footer-brand {
    margin-bottom: 2rem;
}

.ve52-footer-brand p {
    color: var(--ve52-gray);
    font-size: 1.3rem;
    line-height: 1.6;
}

.ve52-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ve52-footer-links a {
    padding: 0.5rem 1rem;
    background: var(--ve52-dark);
    border-radius: var(--ve52-border-radius);
    font-size: 1.2rem;
    color: var(--ve52-light);
    transition: all 0.3s ease;
}

.ve52-footer-links a:hover {
    background: var(--ve52-primary);
}

.ve52-footer-partners {
    margin-bottom: 2rem;
}

.ve52-footer-partners h4 {
    color: var(--ve52-accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.ve52-partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ve52-partner-logos img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ve52-partner-logos img:hover {
    opacity: 1;
}

.ve52-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--ve52-primary);
    color: var(--ve52-gray);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.ve52-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ve52-bottom-nav-height);
    background: linear-gradient(180deg, var(--ve52-dark) 0%, var(--ve52-black) 100%);
    border-top: 2px solid var(--ve52-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0.5rem 0;
}

.ve52-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    color: var(--ve52-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
}

.ve52-nav-item:hover,
.ve52-nav-item-active {
    color: var(--ve52-accent);
    transform: scale(1.1);
}

.ve52-nav-item i,
.ve52-nav-item .material-icons-outlined {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.ve52-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Desktop - Hide bottom nav */
@media (min-width: 769px) {
    .ve52-bottom-nav {
        display: none;
    }
}

/* Mobile - Add bottom padding to main content */
@media (max-width: 768px) {
    .ve52-main {
        padding-bottom: calc(var(--ve52-bottom-nav-height) + 2rem);
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    .ve52-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .ve52-game-name {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
}

/* Utilities */
.ve52-text-center { text-align: center; }
.ve52-mb-1 { margin-bottom: 1rem; }
.ve52-mb-2 { margin-bottom: 2rem; }
.ve52-mb-3 { margin-bottom: 3rem; }
.ve52-mt-2 { margin-top: 2rem; }
.ve52-hidden { display: none; }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ve52-animate-in {
    animation: fadeIn 0.5s ease forwards;
}
