/**
 * G Perya Pagcor - Layout Stylesheet
 * Website: gperyapagcor.click
 * All classes use prefix 'v3bd-' for namespace isolation
 * Color palette: #FAFAD2 | #1C2833 | #FFA500 | #6C757D | #EEE8AA
 */

/* CSS Variables */
:root {
    --v3bd-primary: #FFA500;
    --v3bd-secondary: #EEE8AA;
    --v3bd-bg-dark: #1C2833;
    --v3bd-bg-light: #FAFAD2;
    --v3bd-text-light: #FAFAD2;
    --v3bd-text-dark: #1C2833;
    --v3bd-accent: #FFA500;
    --v3bd-muted: #6C757D;
    --v3bd-gold: #EEE8AA;
    --v3bd-orange: #FFA500;
    --v3bd-navy: #1C2833;
    --v3bd-cream: #FAFAD2;
    --v3bd-gray: #6C757D;
    --v3bd-gradient: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
    --v3bd-gradient-gold: linear-gradient(135deg, #EEE8AA 0%, #FFA500 100%);
    --v3bd-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v3bd-radius: 8px;
    --v3bd-radius-lg: 12px;
    --v3bd-transition: all 0.3s ease;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--v3bd-bg-dark);
    color: var(--v3bd-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--v3bd-transition);
}

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

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

.v3bd-wrapper {
    padding: 1rem;
}

/* Header */
.v3bd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1C2833 0%, #2C3E50 100%);
    padding: 1rem 1.5rem;
    box-shadow: var(--v3bd-shadow);
}

.v3bd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v3bd-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v3bd-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v3bd-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v3bd-primary);
    white-space: nowrap;
}

.v3bd-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v3bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--v3bd-radius);
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: var(--v3bd-transition);
    position: relative;
    overflow: hidden;
}

.v3bd-btn-primary {
    background: var(--v3bd-gradient-gold);
    color: var(--v3bd-text-dark);
}

.v3bd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.v3bd-btn-outline {
    background: transparent;
    border: 2px solid var(--v3bd-primary);
    color: var(--v3bd-primary);
}

.v3bd-btn-outline:hover {
    background: var(--v3bd-primary);
    color: var(--v3bd-text-dark);
}

.v3bd-menu-toggle {
    background: none;
    border: none;
    color: var(--v3bd-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v3bd-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v3bd-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

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

.v3bd-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v3bd-transition);
}

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

.v3bd-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.v3bd-menu-close {
    background: none;
    border: none;
    color: var(--v3bd-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v3bd-menu-nav {
    list-style: none;
}

.v3bd-menu-nav li {
    margin-bottom: 1rem;
}

.v3bd-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--v3bd-text-light);
    border-radius: var(--v3bd-radius);
    transition: var(--v3bd-transition);
    font-size: 1.5rem;
}

.v3bd-menu-nav a:hover {
    background: rgba(255, 165, 0, 0.2);
    color: var(--v3bd-primary);
}

/* Main Content */
.v3bd-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .v3bd-main {
        padding-bottom: 80px;
    }
}

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

.v3bd-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

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

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

.v3bd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--v3bd-radius-lg);
}

.v3bd-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.v3bd-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v3bd-transition);
}

.v3bd-carousel-dot:hover,
.v3bd-carousel-dot-active {
    background: var(--v3bd-primary);
}

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

.v3bd-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v3bd-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v3bd-section-subtitle {
    font-size: 1.4rem;
    color: var(--v3bd-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

.v3bd-game-card {
    background: linear-gradient(145deg, #2C3E50 0%, #1C2833 100%);
    border-radius: var(--v3bd-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--v3bd-transition);
    border: 1px solid rgba(255, 165, 0, 0.1);
}

.v3bd-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--v3bd-primary);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.v3bd-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.v3bd-game-name {
    font-size: 1.1rem;
    color: var(--v3bd-text-light);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.v3bd-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v3bd-category-icon {
    width: 36px;
    height: 36px;
    background: var(--v3bd-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.v3bd-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v3bd-primary);
}

/* Cards */
.v3bd-card {
    background: linear-gradient(145deg, #2C3E50 0%, #1C2833 100%);
    border-radius: var(--v3bd-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 165, 0, 0.1);
}

.v3bd-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v3bd-primary);
    margin-bottom: 1rem;
}

.v3bd-card-text {
    font-size: 1.3rem;
    color: var(--v3bd-text-light);
    line-height: 1.6;
}

/* Features Grid */
.v3bd-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v3bd-feature-item {
    background: rgba(255, 165, 0, 0.1);
    border-radius: var(--v3bd-radius);
    padding: 1.2rem;
    text-align: center;
}

.v3bd-feature-icon {
    font-size: 2.4rem;
    color: var(--v3bd-primary);
    margin-bottom: 0.8rem;
}

.v3bd-feature-text {
    font-size: 1.2rem;
    color: var(--v3bd-text-light);
}

/* Testimonials */
.v3bd-testimonial {
    background: linear-gradient(145deg, #2C3E50 0%, #1C2833 100%);
    border-radius: var(--v3bd-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--v3bd-primary);
}

.v3bd-testimonial-text {
    font-size: 1.3rem;
    color: var(--v3bd-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.v3bd-testimonial-author {
    font-size: 1.2rem;
    color: var(--v3bd-primary);
    font-weight: 600;
}

/* CTA Button */
.v3bd-cta {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--v3bd-gradient-gold);
    color: var(--v3bd-text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--v3bd-radius-lg);
    margin: 2rem 0;
    cursor: pointer;
    border: none;
    transition: var(--v3bd-transition);
}

.v3bd-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

/* Promo Link */
.v3bd-promo-link {
    color: var(--v3bd-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.v3bd-promo-link:hover {
    color: var(--v3bd-secondary);
}

/* Footer */
.v3bd-footer {
    background: linear-gradient(180deg, #1C2833 0%, #0F1419 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.v3bd-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.v3bd-footer-desc {
    font-size: 1.3rem;
    color: var(--v3bd-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v3bd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v3bd-footer-link {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: var(--v3bd-radius);
    font-size: 1.2rem;
    color: var(--v3bd-text-light);
    transition: var(--v3bd-transition);
}

.v3bd-footer-link:hover {
    background: var(--v3bd-primary);
    color: var(--v3bd-text-dark);
}

.v3bd-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v3bd-muted);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 165, 0, 0.1);
}

/* Mobile Bottom Navigation */
.v3bd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #2C3E50 0%, #1C2833 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.v3bd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--v3bd-transition);
    border-radius: 8px;
}

.v3bd-nav-item:hover {
    background: rgba(255, 165, 0, 0.15);
}

.v3bd-nav-item-active {
    background: rgba(255, 165, 0, 0.2);
}

.v3bd-nav-icon {
    font-size: 24px;
    color: var(--v3bd-text-light);
    margin-bottom: 4px;
    transition: var(--v3bd-transition);
}

.v3bd-nav-item:hover .v3bd-nav-icon,
.v3bd-nav-item-active .v3bd-nav-icon {
    color: var(--v3bd-primary);
    transform: scale(1.1);
}

.v3bd-nav-text {
    font-size: 11px;
    color: var(--v3bd-muted);
    transition: var(--v3bd-transition);
}

.v3bd-nav-item:hover .v3bd-nav-text,
.v3bd-nav-item-active .v3bd-nav-text {
    color: var(--v3bd-primary);
}

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

/* Desktop Header Adjustments */
@media (min-width: 769px) {
    .v3bd-header-inner {
        max-width: 1200px;
    }

    .v3bd-container {
        max-width: 1200px;
    }

    .v3bd-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Ripple Effect */
.v3bd-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: v3bd-ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes v3bd-ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Payment Methods */
.v3bd-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.v3bd-payment-item {
    background: rgba(255, 165, 0, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--v3bd-radius);
    font-size: 1.3rem;
    color: var(--v3bd-text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Winners Section */
.v3bd-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.05);
    border-radius: var(--v3bd-radius);
    margin-bottom: 0.8rem;
}

.v3bd-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v3bd-winner-amount {
    color: var(--v3bd-primary);
    font-weight: 700;
    font-size: 1.4rem;
}

/* Utility Classes */
.v3bd-text-center { text-align: center; }
.v3bd-text-gold { color: var(--v3bd-primary); }
.v3bd-mb-1 { margin-bottom: 1rem; }
.v3bd-mb-2 { margin-bottom: 2rem; }
.v3bd-mt-2 { margin-top: 2rem; }
