/* PHCash APK - Core Stylesheet */
/* All classes prefixed with v512- */

:root {
    --v512-primary: #FFAA00;
    --v512-bg: #2C3E50;
    --v512-bg-dark: #1a252f;
    --v512-text: #ffffff;
    --v512-accent: #FF5722;
    --v512-card-bg: #34495e;
    --v512-border: #3d566e;
    --v512-gold-light: #ffd54f;
    --v512-font-size: 62.5%;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--v512-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--v512-bg);
    color: var(--v512-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--v512-primary);
    text-decoration: none;
}

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

/* ===== HEADER ===== */
.v512-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, var(--v512-bg-dark), var(--v512-bg));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    border-bottom: 2px solid var(--v512-primary);
    max-width: 430px;
    margin: 0 auto;
}

.v512-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v512-header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.v512-header-logo span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--v512-primary);
    letter-spacing: 0.5px;
}

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

.v512-btn-register {
    background: linear-gradient(135deg, var(--v512-accent), #ff7043);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    min-width: 44px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.v512-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 87, 34, 0.5);
}

.v512-btn-login {
    background: transparent;
    color: var(--v512-primary);
    border: 2px solid var(--v512-primary);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    min-width: 44px;
    transition: background 0.2s, color 0.2s;
}

.v512-btn-login:hover {
    background: var(--v512-primary);
    color: var(--v512-bg-dark);
}

.v512-hamburger {
    background: none;
    border: none;
    color: var(--v512-primary);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE MENU ===== */
.v512-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.v512-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--v512-bg-dark);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.v512-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--v512-border);
}

.v512-mobile-menu-header h3 {
    color: var(--v512-primary);
    font-size: 2rem;
}

.v512-mobile-menu-close {
    background: none;
    border: none;
    color: var(--v512-text);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v512-mobile-menu a {
    display: block;
    color: var(--v512-text);
    padding: 12px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--v512-border);
    transition: color 0.2s, padding-left 0.2s;
}

.v512-mobile-menu a:hover {
    color: var(--v512-primary);
    padding-left: 8px;
}

/* ===== CAROUSEL / SLIDER ===== */
.v512-slider {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.v512-slides-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 430 / 200;
}

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

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

.v512-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.v512-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.v512-slider-dot-active {
    background: var(--v512-primary);
    width: 24px;
    border-radius: 5px;
}

/* ===== MAIN CONTENT ===== */
.v512-main {
    max-width: 430px;
    margin: 56px auto 0;
    padding: 0 12px 80px;
}

.v512-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--v512-primary);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--v512-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v512-section-title i,
.v512-section-title .material-icons {
    font-size: 2.2rem;
}

/* ===== GAME GRID ===== */
.v512-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0 20px;
}

.v512-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: var(--v512-card-bg);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--v512-border);
}

.v512-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 170, 0, 0.3);
}

.v512-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v512-game-item span {
    font-size: 1.1rem;
    color: var(--v512-text);
    text-align: center;
    padding: 4px 2px;
    line-height: 1.2;
    max-height: 3em;
    overflow: hidden;
    width: 100%;
}

/* ===== CONTENT CARDS ===== */
.v512-card {
    background: var(--v512-card-bg);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid var(--v512-border);
}

.v512-card h2 {
    font-size: 1.8rem;
    color: var(--v512-primary);
    margin-bottom: 10px;
}

.v512-card h3 {
    font-size: 1.5rem;
    color: var(--v512-gold-light);
    margin: 12px 0 6px;
}

.v512-card p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 8px;
}

.v512-card ul {
    padding-left: 20px;
    margin: 8px 0;
}

.v512-card li {
    font-size: 1.3rem;
    color: #bbb;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===== PROMO CTA ===== */
.v512-cta-box {
    background: linear-gradient(135deg, var(--v512-accent), #ff7043);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    margin: 20px 0;
}

.v512-cta-box h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.v512-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.v512-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--v512-accent);
    font-weight: 800;
    font-size: 1.5rem;
    padding: 12px 32px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 48px;
}

.v512-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== BOTTOM NAVIGATION ===== */
.v512-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--v512-bg-dark), #0d1520);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--v512-primary);
    max-width: 430px;
    margin: 0 auto;
}

.v512-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: #8899aa;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 4px 0;
    gap: 2px;
}

.v512-bottom-nav-btn:hover,
.v512-bottom-nav-active {
    color: var(--v512-primary);
    transform: scale(1.08);
}

.v512-bottom-nav-btn i,
.v512-bottom-nav-btn .material-icons {
    font-size: 22px;
}

.v512-bottom-nav-btn span {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.v512-footer {
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 12px 20px;
    background: var(--v512-bg-dark);
    border-top: 1px solid var(--v512-border);
}

.v512-footer-brand {
    text-align: center;
    margin-bottom: 16px;
}

.v512-footer-brand p {
    font-size: 1.3rem;
    color: #999;
    line-height: 1.6;
}

.v512-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.v512-footer-partners img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.v512-footer-partners img:hover {
    opacity: 1;
}

.v512-footer-promos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.v512-footer-promo-btn {
    background: linear-gradient(135deg, var(--v512-accent), #e64a19);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    min-height: 36px;
}

.v512-footer-promo-btn:hover {
    transform: scale(1.05);
}

.v512-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin: 16px 0;
}

.v512-footer-links a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.v512-footer-links a:hover {
    color: var(--v512-primary);
}

.v512-footer-copy {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 12px;
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
    .v512-bottom-nav {
        display: none;
    }
    .v512-main {
        padding-bottom: 20px;
    }
    .v512-header {
        max-width: 430px;
    }
    .v512-footer {
        max-width: 430px;
    }
}

/* ===== MOBILE PADDING ===== */
@media (max-width: 768px) {
    .v512-main {
        padding-bottom: 80px;
    }
}

/* ===== UTILITIES ===== */
.v512-text-center { text-align: center; }
.v512-text-gold { color: var(--v512-primary); }
.v512-text-accent { color: var(--v512-accent); }
.v512-mt-12 { margin-top: 12px; }
.v512-mb-12 { margin-bottom: 12px; }
.v512-hidden { display: none; }

/* ===== FAQ SECTION ===== */
.v512-faq-item {
    background: var(--v512-card-bg);
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid var(--v512-border);
}

.v512-faq-q {
    padding: 14px 16px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v512-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v512-faq-a {
    padding: 0 16px 14px;
    font-size: 1.3rem;
    color: #bbb;
    line-height: 1.6;
}

/* ===== SAFETY FEATURES ===== */
.v512-safety-icon {
    font-size: 3rem;
    color: var(--v512-primary);
    margin-bottom: 8px;
}

.v512-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.v512-safety-card {
    background: var(--v512-card-bg);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--v512-border);
}

.v512-safety-card h4 {
    color: var(--v512-gold-light);
    font-size: 1.3rem;
    margin: 8px 0 4px;
}

.v512-safety-card p {
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.v512-testimonial {
    background: var(--v512-card-bg);
    border-radius: 10px;
    padding: 14px;
    margin: 8px 0;
    border-left: 3px solid var(--v512-primary);
}

.v512-testimonial p {
    font-size: 1.3rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 6px;
}

.v512-testimonial strong {
    color: var(--v512-primary);
    font-size: 1.2rem;
}
