/**
 * FastPay Casino Theme CSS
 * All classes use prefix 'v633-' for namespace isolation
 * Mobile-first responsive design with max-width 430px
 * Color scheme: #F0F0F0, #34495E, #FF6347, #FFBF00
 */

/* CSS Variables */
:root {
    --v633-primary: #FF6347;
    --v633-secondary: #FFBF00;
    --v633-bg-light: #F0F0F0;
    --v633-bg-dark: #34495E;
    --v633-text-light: #F0F0F0;
    --v633-text-dark: #34495E;
    --v633-text-muted: #7f8c8d;
    --v633-border: #bdc3c7;
    --v633-shadow: rgba(0, 0, 0, 0.1);
    --v633-shadow-hover: rgba(0, 0, 0, 0.15);
    --v633-radius: 8px;
    --v633-radius-lg: 12px;
    --v633-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v633-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

body.loaded {
    opacity: 1;
}

/* Typography */
.v633-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--v633-text-dark);
}

.v633-h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--v633-text-dark);
}

.v633-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--v633-text-dark);
}

.v633-p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--v633-text-muted);
}

/* Layout Utilities */
.v633-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v633-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for fixed bottom nav */
}

.v633-grid {
    display: grid;
    gap: 1.5rem;
}

.v633-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v633-flex-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v633-space-between {
    justify-content: space-between;
}

.v633-center {
    justify-content: center;
    text-align: center;
}

/* Header */
.v633-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v633-bg-dark) 0%, #2c3e50 100%);
    color: var(--v633-text-light);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--v633-shadow);
    backdrop-filter: blur(10px);
}

.v633-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v633-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v633-text-light);
    text-decoration: none;
}

.v633-logo-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--v633-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

/* Navigation */
.v633-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v633-nav-btn {
    background: linear-gradient(135deg, var(--v633-primary) 0%, #e74c3c 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--v633-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v633-transition);
    box-shadow: 0 2px 8px rgba(255, 99, 71, 0.3);
    min-width: 6rem;
    text-align: center;
}

.v633-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4);
}

.v633-nav-btn:active {
    transform: translateY(0);
}

.v633-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.4rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.v633-hamburger span {
    display: block;
    width: 100%;
    height: 0.2rem;
    background: var(--v633-text-light);
    border-radius: 0.1rem;
    transition: var(--v633-transition);
}

.v633-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v633-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.v633-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v633-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v633-bg-dark);
    color: var(--v633-text-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
}

.v633-mobile-menu.active {
    right: 0;
}

.v633-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v633-transition);
}

.v633-mobile-menu.active + .v633-mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.v633-mobile-menu-list {
    list-style: none;
}

.v633-mobile-menu-item {
    margin-bottom: 0.5rem;
}

.v633-mobile-menu-link {
    display: block;
    padding: 1rem 0;
    color: var(--v633-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--v633-transition);
}

.v633-mobile-menu-link:hover {
    color: var(--v633-secondary);
    padding-left: 0.5rem;
}

/* Main Content */
.v633-main {
    padding-top: 6rem; /* Space for fixed header */
    min-height: calc(100vh - 6rem);
}

/* Carousel */
.v633-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: var(--v633-radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--v633-shadow);
}

.v633-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    cursor: pointer;
}

.v633-carousel-slide.active {
    display: block;
}

.v633-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v633-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.v633-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--v633-transition);
}

.v633-carousel-indicator.active {
    background: var(--v633-secondary);
    transform: scale(1.2);
}

/* Game Grid */
.v633-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v633-game-card {
    background: white;
    border-radius: var(--v633-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--v633-shadow);
    transition: var(--v633-transition);
    cursor: pointer;
}

.v633-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--v633-shadow-hover);
}

.v633-game-image {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    background: linear-gradient(135deg, var(--v633-bg-light) 0%, #e9ecef 100%);
}

.v633-game-title {
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: var(--v633-text-dark);
    line-height: 1.2;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Cards */
.v633-card {
    background: white;
    border-radius: var(--v633-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--v633-shadow);
    transition: var(--v633-transition);
}

.v633-card:hover {
    box-shadow: 0 4px 20px var(--v633-shadow-hover);
}

.v633-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--v633-text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.v633-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--v633-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v633-transition);
    text-decoration: none;
    text-align: center;
    min-height: 4.4rem; /* Touch-friendly minimum height */
}

.v633-btn-primary {
    background: linear-gradient(135deg, var(--v633-primary) 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 99, 71, 0.3);
}

.v633-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4);
}

.v633-btn-secondary {
    background: linear-gradient(135deg, var(--v633-secondary) 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.3);
}

.v633-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 191, 0, 0.4);
}

.v633-btn-outline {
    background: transparent;
    color: var(--v633-primary);
    border: 2px solid var(--v633-primary);
}

.v633-btn-outline:hover {
    background: var(--v633-primary);
    color: white;
    transform: translateY(-2px);
}

/* Bottom Navigation */
.v633-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v633-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 6rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
}

.v633-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
    min-width: 6rem;
    min-height: 5rem;
    cursor: pointer;
    transition: var(--v633-transition);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--v633-radius);
}

.v633-bottom-nav-item:hover,
.v633-bottom-nav-item.active {
    color: var(--v633-secondary);
    background: rgba(255, 191, 0, 0.1);
    transform: translateY(-2px);
}

.v633-bottom-nav-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.v633-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

/* Footer */
.v633-footer {
    background: var(--v633-bg-dark);
    color: var(--v633-text-light);
    padding: 3rem 1.5rem 8rem; /* Extra padding for bottom nav */
    margin-top: 4rem;
}

.v633-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.v633-footer-section {
    margin-bottom: 2rem;
}

.v633-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v633-secondary);
}

.v633-footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.v633-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--v633-transition);
}

.v633-footer-link:hover {
    color: var(--v633-secondary);
}

.v633-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.v633-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.8;
    transition: var(--v633-transition);
}

.v633-partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.v633-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.v633-text-center { text-align: center; }
.v633-text-left { text-align: left; }
.v633-text-right { text-align: right; }

.v633-mb-0 { margin-bottom: 0; }
.v633-mb-1 { margin-bottom: 1rem; }
.v633-mb-2 { margin-bottom: 2rem; }
.v633-mb-3 { margin-bottom: 3rem; }

.v633-mt-0 { margin-top: 0; }
.v633-mt-1 { margin-top: 1rem; }
.v633-mt-2 { margin-top: 2rem; }
.v633-mt-3 { margin-top: 3rem; }

.v633-hidden { display: none; }
.v633-visible { display: block; }

/* Responsive Design */
@media (max-width: 768px) {
    .v633-bottom-nav {
        display: flex;
    }

    .v633-wrapper {
        padding-bottom: 8rem;
    }
}

@media (min-width: 769px) {
    .v633-bottom-nav {
        display: none;
    }

    .v633-wrapper {
        padding-bottom: 0;
    }

    .v633-container {
        max-width: 1200px;
    }

    .v633-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v633-carousel {
        height: 25rem;
    }
}

/* Animations */
@keyframes v633-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes v633-slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes v633-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.v633-fade-in {
    animation: v633-fadeIn 0.6s ease-out;
}

.v633-slide-in-right {
    animation: v633-slideInRight 0.3s ease-out;
}

.v633-bounce {
    animation: v633-bounce 0.6s ease-in-out;
}

/* Loading States */
.v633-loading {
    position: relative;
    overflow: hidden;
}

.v633-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.v633-btn:focus,
.v633-nav-btn:focus,
.v633-mobile-menu-link:focus,
.v633-bottom-nav-item:focus {
    outline: 2px solid var(--v633-secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --v633-shadow: rgba(0, 0, 0, 0.3);
        --v633-shadow-hover: rgba(0, 0, 0, 0.4);
    }
}