/**
 * Casino Plus PH - Main Stylesheet
 * Prefix: va29-
 * All classes use this prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --va29-primary: #BA55D3;
    --va29-secondary: #008B8B;
    --va29-light: #D8BFD8;
    --va29-accent: #CC99FF;
    --va29-dark: #34495E;
    --va29-bg: #1a1a2e;
    --va29-bg-light: #16213e;
    --va29-text: #ffffff;
    --va29-text-muted: #b0b0b0;
    --va29-border: rgba(186, 85, 211, 0.3);
    --va29-gradient: linear-gradient(135deg, #BA55D3 0%, #008B8B 100%);
    --va29-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset & 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: var(--va29-bg);
    color: var(--va29-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.va29-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.va29-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--va29-dark) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.va29-header-scrolled {
    background: rgba(52, 73, 94, 0.98);
    box-shadow: var(--va29-shadow);
}

.va29-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.va29-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.va29-logo img {
    width: 28px;
    height: 28px;
}

.va29-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--va29-light);
}

.va29-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.va29-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.va29-btn-primary {
    background: var(--va29-gradient);
    color: var(--va29-text);
}

.va29-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(186, 85, 211, 0.5);
}

.va29-btn-outline {
    background: transparent;
    border: 2px solid var(--va29-primary);
    color: var(--va29-light);
}

.va29-btn-outline:hover {
    background: var(--va29-primary);
}

.va29-menu-toggle {
    background: transparent;
    border: none;
    color: var(--va29-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.va29-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--va29-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.va29-menu-active {
    right: 0;
}

.va29-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--va29-light);
    font-size: 2rem;
    cursor: pointer;
}

.va29-menu-list {
    list-style: none;
    margin-top: 3rem;
}

.va29-menu-item {
    margin-bottom: 1.5rem;
}

.va29-menu-link {
    display: block;
    padding: 1rem;
    color: var(--va29-text);
    font-size: 1.4rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.va29-menu-link:hover {
    background: var(--va29-primary);
    color: var(--va29-text);
}

.va29-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;
}

.va29-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.va29-main {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .va29-main {
        padding-bottom: 8rem;
    }
}

/* Hero Slider */
.va29-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.va29-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.va29-slide-active {
    opacity: 1;
}

.va29-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.va29-section {
    padding: 2rem 0;
}

.va29-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--va29-light);
    text-align: center;
}

.va29-subtitle {
    font-size: 1.4rem;
    color: var(--va29-accent);
    margin-bottom: 1rem;
}

/* Game Grid */
.va29-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.va29-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.va29-game-item:hover {
    transform: scale(1.05);
}

.va29-game-img {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--va29-border);
}

.va29-game-name {
    font-size: 1rem;
    color: var(--va29-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.va29-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--va29-accent);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--va29-primary);
}

/* Info Card */
.va29-card {
    background: var(--va29-bg-light);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--va29-border);
}

.va29-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--va29-light);
    margin-bottom: 1rem;
}

.va29-card-text {
    font-size: 1.2rem;
    color: var(--va29-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.va29-promo-link {
    color: var(--va29-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.va29-promo-link:hover {
    color: var(--va29-primary);
    text-decoration: underline;
}

.va29-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--va29-gradient);
    color: var(--va29-text);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.va29-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(186, 85, 211, 0.6);
}

/* Bottom Navigation */
.va29-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(52, 73, 94, 0.98) 0%, var(--va29-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--va29-border);
}

@media (min-width: 769px) {
    .va29-bottom-nav {
        display: none;
    }
}

.va29-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--va29-text-muted);
}

.va29-nav-item:hover,
.va29-nav-item-active {
    color: var(--va29-primary);
    transform: scale(1.1);
}

.va29-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.va29-nav-text {
    font-size: 1rem;
}

/* Footer */
.va29-footer {
    background: var(--va29-dark);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.va29-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.va29-footer-link {
    font-size: 1.1rem;
    color: var(--va29-text-muted);
    transition: color 0.3s ease;
}

.va29-footer-link:hover {
    color: var(--va29-accent);
}

.va29-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.va29-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.va29-partner-img:hover {
    opacity: 1;
}

.va29-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--va29-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--va29-border);
}

/* FAQ Section */
.va29-faq-item {
    margin-bottom: 1rem;
}

.va29-faq-q {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--va29-light);
    margin-bottom: 0.5rem;
}

.va29-faq-a {
    font-size: 1.2rem;
    color: var(--va29-text-muted);
    line-height: 1.6;
}

/* Features Grid */
.va29-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.va29-feature-item {
    background: var(--va29-bg-light);
    padding: 1.2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--va29-border);
}

.va29-feature-icon {
    font-size: 2.4rem;
    color: var(--va29-primary);
    margin-bottom: 0.5rem;
}

.va29-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--va29-light);
}

/* RTP Table */
.va29-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.va29-rtp-table th,
.va29-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--va29-border);
}

.va29-rtp-table th {
    color: var(--va29-accent);
    font-weight: 600;
}

.va29-rtp-table td {
    color: var(--va29-text-muted);
}

/* Utility Classes */
.va29-text-center { text-align: center; }
.va29-mb-1 { margin-bottom: 1rem; }
.va29-mb-2 { margin-bottom: 2rem; }
.va29-mt-2 { margin-top: 2rem; }
.va29-hidden { display: none; }

@media (min-width: 769px) {
    .va29-desktop-only { display: block; }
    .va29-mobile-only { display: none; }
}

@media (max-width: 768px) {
    .va29-desktop-only { display: none; }
    .va29-mobile-only { display: block; }
}
