/* 1plus ph casino Theme Styles */
/* All classes use v4c8- prefix for namespace isolation */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #AFEEEE;
    background-color: #0F0F23;
    overflow-x: hidden;
}

/* Color Palette Variables */
:root {
    --v4c8-primary: #CD853F;
    --v4c8-secondary: #AFEEEE;
    --v4c8-dark: #0F0F23;
    --v4c8-accent: #C71585;
    --v4c8-highlight: #00CED1;
    --v4c8-text-light: #ffffff;
    --v4c8-text-muted: #b0b0b0;
    --v4c8-bg-card: rgba(255, 255, 255, 0.05);
    --v4c8-border: rgba(255, 255, 255, 0.1);
    --v4c8-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Utility Classes */
.v4c8-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v4c8-wrapper {
    width: 100%;
    overflow: hidden;
}

.v4c8-grid {
    display: grid;
    gap: 1.5rem;
}

.v4c8-flex {
    display: flex;
}

.v4c8-flex-col {
    flex-direction: column;
}

.v4c8-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v4c8-space-between {
    justify-content: space-between;
}

.v4c8-text-center {
    text-align: center;
}

.v4c8-text-primary {
    color: var(--v4c8-primary);
}

.v4c8-text-secondary {
    color: var(--v4c8-secondary);
}

.v4c8-text-accent {
    color: var(--v4c8-accent);
}

.v4c8-text-highlight {
    color: var(--v4c8-highlight);
}

/* Header Styles */
.v4c8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v4c8-dark) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v4c8-border);
    transition: all 0.3s ease;
}

.v4c8-header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--v4c8-shadow);
}

.v4c8-header.hide-header {
    transform: translateY(-100%);
}

.v4c8-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: 6rem;
}

.v4c8-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--v4c8-text-light);
    text-decoration: none;
}

.v4c8-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: linear-gradient(135deg, var(--v4c8-primary) 0%, var(--v4c8-accent) 100%);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v4c8-text-light);
    font-size: 1.8rem;
    font-weight: bold;
}

.v4c8-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v4c8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    min-width: 8rem;
}

.v4c8-btn-primary {
    background: linear-gradient(135deg, var(--v4c8-primary) 0%, #D2691E 100%);
    color: var(--v4c8-text-light);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.3);
}

.v4c8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

.v4c8-btn-secondary {
    background: transparent;
    color: var(--v4c8-secondary);
    border: 2px solid var(--v4c8-secondary);
}

.v4c8-btn-secondary:hover {
    background: var(--v4c8-secondary);
    color: var(--v4c8-dark);
}

.v4c8-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.v4c8-menu-toggle span {
    width: 2.4rem;
    height: 0.2rem;
    background: var(--v4c8-text-light);
    transition: all 0.3s ease;
}

.v4c8-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v4c8-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.v4c8-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.7rem, -0.7rem);
}

/* Mobile Menu */
.v4c8-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v4c8-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.v4c8-mobile-menu.active {
    right: 0;
}

.v4c8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v4c8-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v4c8-nav-list {
    list-style: none;
}

.v4c8-nav-item {
    margin-bottom: 1.5rem;
}

.v4c8-nav-link {
    display: block;
    padding: 1rem;
    color: var(--v4c8-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.v4c8-nav-link:hover {
    background: var(--v4c8-bg-card);
    color: var(--v4c8-primary);
}

/* Main Content */
.v4c8-main {
    padding-top: 6rem;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .v4c8-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }
}

/* Carousel Styles */
.v4c8-carousel {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: 1.2rem;
    margin-bottom: 3rem;
}

.v4c8-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v4c8-carousel-item.active {
    opacity: 1;
}

.v4c8-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4c8-carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v4c8-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v4c8-carousel-indicator.active {
    background: var(--v4c8-primary);
    transform: scale(1.2);
}

/* Section Styles */
.v4c8-section {
    margin-bottom: 4rem;
}

.v4c8-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.v4c8-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--v4c8-primary) 0%, var(--v4c8-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v4c8-section-subtitle {
    font-size: 1.4rem;
    color: var(--v4c8-text-muted);
}

/* Game Categories */
.v4c8-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.v4c8-category-btn {
    flex-shrink: 0;
    padding: 0.8rem 1.6rem;
    background: var(--v4c8-bg-card);
    color: var(--v4c8-text-light);
    border: 1px solid var(--v4c8-border);
    border-radius: 2rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.v4c8-category-btn.active,
.v4c8-category-btn:hover {
    background: var(--v4c8-primary);
    color: var(--v4c8-text-light);
    border-color: var(--v4c8-primary);
}

/* Game Grid */
.v4c8-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v4c8-game-item {
    background: var(--v4c8-bg-card);
    border: 1px solid var(--v4c8-border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.v4c8-game-item:hover {
    transform: translateY(-0.5rem);
    border-color: var(--v4c8-primary);
    box-shadow: 0 8px 25px rgba(205, 133, 63, 0.3);
}

.v4c8-game-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.v4c8-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--v4c8-text-light);
    line-height: 1.3;
}

/* Card Styles */
.v4c8-card {
    background: var(--v4c8-bg-card);
    border: 1px solid var(--v4c8-border);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.v4c8-card:hover {
    border-color: var(--v4c8-primary);
    box-shadow: var(--v4c8-shadow);
}

.v4c8-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v4c8-primary);
}

.v4c8-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v4c8-text-muted);
    margin-bottom: 1.5rem;
}

/* Bottom Navigation */
.v4c8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v4c8-dark) 0%, rgba(15, 15, 35, 0.98) 100%);
    border-top: 1px solid var(--v4c8-border);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

.v4c8-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v4c8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    color: var(--v4c8-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 1rem;
    border: none;
    background: transparent;
}

.v4c8-bottom-nav-item:hover,
.v4c8-bottom-nav-item.active {
    color: var(--v4c8-primary);
    background: rgba(205, 133, 63, 0.1);
    transform: translateY(-0.2rem);
}

.v4c8-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.v4c8-bottom-nav-item.active .v4c8-bottom-nav-icon {
    transform: scale(1.1);
}

.v4c8-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.v4c8-footer {
    background: linear-gradient(135deg, #0a0a1a 0%, var(--v4c8-dark) 100%);
    border-top: 1px solid var(--v4c8-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.v4c8-footer-content {
    text-align: center;
}

.v4c8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.v4c8-partner-logo {
    width: 6rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v4c8-partner-logo:hover {
    opacity: 1;
}

.v4c8-footer-text {
    font-size: 1.2rem;
    color: var(--v4c8-text-muted);
    margin-top: 2rem;
}

.v4c8-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.v4c8-footer-link {
    color: var(--v4c8-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.v4c8-footer-link:hover {
    color: var(--v4c8-primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .v4c8-menu-toggle {
        display: flex;
    }

    .v4c8-header-actions .v4c8-btn:not(.v4c8-btn-icon) {
        display: none;
    }

    .v4c8-bottom-nav {
        display: block;
    }

    .v4c8-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v4c8-carousel {
        height: 20rem;
    }

    .v4c8-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .v4c8-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v4c8-card {
        padding: 1.5rem;
    }

    .v4c8-carousel {
        height: 18rem;
    }
}

/* Touch Active State */
.v4c8-btn.touch-active,
.v4c8-game-item.touch-active,
.v4c8-bottom-nav-item.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Loading Animation */
@keyframes v4c8-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.v4c8-loading {
    animation: v4c8-pulse 1.5s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes v4c8-fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v4c8-fade-in {
    animation: v4c8-fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.v4c8-btn:focus,
.v4c8-nav-link:focus,
.v4c8-game-item:focus {
    outline: 2px solid var(--v4c8-primary);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.6rem;
}

::-webkit-scrollbar-track {
    background: var(--v4c8-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--v4c8-primary);
    border-radius: 0.3rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #D2691E;
}