/* Playtime Casino Theme - Mobile-First Gaming Website */

/* CSS Variables */
:root {
    --v651-primary: #4B0082;
    --v651-secondary: #CC99FF;
    --v651-bg: #F8F9FA;
    --v651-dark: #141414;
    --v651-text: #333333;
    --v651-text-light: #666666;
    --v651-white: #FFFFFF;
    --v651-accent: #9932CC;
    --v651-success: #28A745;
    --v651-warning: #FFC107;
    --v651-error: #DC3545;
    --v651-gradient: linear-gradient(135deg, #4B0082 0%, #CC99FF 100%);
    --v651-shadow: 0 4px 20px rgba(75, 0, 130, 0.15);
    --v651-radius: 12px;
    --v651-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--v651-text);
    background-color: var(--v651-bg);
    overflow-x: hidden;
    position: relative;
}

body.v651-body-lock {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--v651-primary);
}

h1 {
    font-size: 2rem;
    background: var(--v651-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--v651-text-light);
}

a {
    color: var(--v651-primary);
    text-decoration: none;
    transition: var(--v651-transition);
}

a:hover {
    color: var(--v651-accent);
}

/* Container */
.v651-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.v651-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v651-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: var(--v651-shadow);
}

.v651-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.v651-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--v651-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v651-logo::before {
    content: "🎰";
    font-size: 1.75rem;
}

.v651-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v651-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--v651-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v651-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.v651-btn-primary {
    background: var(--v651-white);
    color: var(--v651-primary);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

.v651-btn-primary:hover {
    background: var(--v651-secondary);
    color: var(--v651-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

.v651-btn-secondary {
    background: transparent;
    color: var(--v651-white);
    border: 2px solid var(--v651-white);
}

.v651-btn-secondary:hover {
    background: var(--v651-white);
    color: var(--v651-primary);
}

.v651-menu-toggle {
    background: transparent;
    border: none;
    color: var(--v651-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--v651-transition);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v651-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.v651-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v651-white);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.v651-mobile-menu.v651-menu-open {
    right: 0;
}

.v651-menu-header {
    background: var(--v651-gradient);
    padding: 20px;
    color: var(--v651-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v651-menu-close {
    background: transparent;
    border: none;
    color: var(--v651-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--v651-transition);
}

.v651-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.v651-menu-nav {
    padding: 20px 0;
}

.v651-menu-item {
    display: block;
    padding: 16px 20px;
    color: var(--v651-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--v651-transition);
    border-left: 4px solid transparent;
}

.v651-menu-item:hover,
.v651-menu-item.v651-menu-active {
    background: rgba(75, 0, 130, 0.05);
    color: var(--v651-primary);
    border-left-color: var(--v651-primary);
}

.v651-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v651-transition);
}

.v651-menu-overlay.v651-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 80px;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Carousel */
.v651-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v651-radius);
    margin-bottom: 24px;
    box-shadow: var(--v651-shadow);
}

.v651-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.v651-carousel-slide.v651-slide-active {
    opacity: 1;
}

.v651-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v651-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--v651-white);
    padding: 20px;
}

.v651-carousel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.v651-carousel-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.v651-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.v651-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v651-transition);
    border: 2px solid transparent;
}

.v651-carousel-dot.v651-dot-active {
    background: var(--v651-white);
    border-color: var(--v651-primary);
    transform: scale(1.2);
}

/* Game Sections */
.v651-section {
    margin-bottom: 32px;
}

.v651-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.v651-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v651-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.v651-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--v651-gradient);
    border-radius: 2px;
}

.v651-section-more {
    color: var(--v651-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--v651-transition);
}

.v651-section-more:hover {
    color: var(--v651-accent);
    gap: 8px;
}

/* Game Grid */
.v651-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.v651-game-card {
    background: var(--v651-white);
    border-radius: var(--v651-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--v651-transition);
    cursor: pointer;
    position: relative;
}

.v651-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(75, 0, 130, 0.2);
}

.v651-game-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: var(--v651-transition);
}

.v651-game-card:hover .v651-game-image {
    transform: scale(1.05);
}

.v651-game-info {
    padding: 8px;
    text-align: center;
}

.v651-game-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--v651-text);
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.v651-content-section {
    background: var(--v651-white);
    border-radius: var(--v651-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--v651-shadow);
}

.v651-content-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v651-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v651-content-text {
    color: var(--v651-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Partner Icons */
.v651-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

.v651-partner-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v651-transition);
}

.v651-partner-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Bottom Navigation */
.v651-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v651-white);
    border-top: 1px solid rgba(75, 0, 130, 0.1);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.v651-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v651-bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--v651-text-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--v651-radius);
    transition: var(--v651-transition);
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
}

.v651-bottom-nav-item:hover,
.v651-bottom-nav-item.v651-nav-active {
    color: var(--v651-primary);
    background: rgba(75, 0, 130, 0.05);
    transform: translateY(-2px);
}

.v651-bottom-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Footer */
.v651-footer {
    background: var(--v651-dark);
    color: var(--v651-white);
    padding: 32px 0 100px; /* Extra padding for bottom nav */
    text-align: center;
}

.v651-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.v651-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.v651-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--v651-transition);
}

.v651-footer-link:hover {
    color: var(--v651-secondary);
}

.v651-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.6;
}

/* Loading States */
.v651-loading {
    position: relative;
    pointer-events: none;
}

.v651-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--v651-primary);
    border-radius: 50%;
    animation: v651-spin 1s linear infinite;
}

@keyframes v651-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy Loading */
.v651-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v651-loaded {
    opacity: 1;
}

/* Utility Classes */
.v651-text-center {
    text-align: center;
}

.v651-text-left {
    text-align: left;
}

.v651-text-right {
    text-align: right;
}

.v651-mb-0 {
    margin-bottom: 0;
}

.v651-mb-1 {
    margin-bottom: 8px;
}

.v651-mb-2 {
    margin-bottom: 16px;
}

.v651-mb-3 {
    margin-bottom: 24px;
}

.v651-mb-4 {
    margin-bottom: 32px;
}

.v651-mt-0 {
    margin-top: 0;
}

.v651-mt-1 {
    margin-top: 8px;
}

.v651-mt-2 {
    margin-top: 16px;
}

.v651-mt-3 {
    margin-top: 24px;
}

.v651-mt-4 {
    margin-top: 32px;
}

.v651-hidden {
    display: none !important;
}

.v651-visible {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }

    .v651-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .v651-game-image {
        height: 70px;
    }

    .v651-game-name {
        font-size: 0.7rem;
    }

    .v651-carousel {
        height: 180px;
    }

    .v651-section-title {
        font-size: 1.125rem;
    }

    .v651-content-section {
        padding: 20px;
    }
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .v651-container {
        max-width: 1200px;
    }

    .v651-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 32px;
    }

    .v651-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .v651-carousel {
        height: 300px;
    }

    .v651-carousel-content {
        padding: 30px;
    }

    .v651-carousel-title {
        font-size: 2rem;
    }

    .v651-carousel-text {
        font-size: 1rem;
    }

    .v651-footer {
        padding-bottom: 32px;
    }
}

/* Print Styles */
@media print {
    .v651-header,
    .v651-bottom-nav,
    .v651-mobile-menu,
    .v651-menu-overlay {
        display: none !important;
    }

    main {
        padding-top: 0;
        padding-bottom: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --v651-primary: #000080;
        --v651-secondary: #FFFFFF;
        --v651-text: #000000;
        --v651-text-light: #333333;
        --v651-bg: #FFFFFF;
        --v651-dark: #000000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --v651-bg: #1a1a1a;
        --v651-text: #e0e0e0;
        --v651-text-light: #b0b0b0;
        --v651-white: #2a2a2a;
        --v651-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    body {
        background: var(--v651-dark);
    }

    .v651-content-section,
    .v651-game-card {
        background: var(--v651-white);
    }

    .v651-bottom-nav {
        background: var(--v651-white);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}