/**
 * Table Game Casino - Main Stylesheet
 * All classes use prefix "v652-" for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v652-primary: #7B68EE;
    --v652-secondary: #00695C;
    --v652-accent: #00FFFF;
    --v652-bg-dark: #212F3D;
    --v652-bg-light: #E5E5E5;
    --v652-text-light: #FFFFFF;
    --v652-text-dark: #212F3D;
    --v652-teal: #008B8B;
    --v652-gradient: linear-gradient(135deg, #7B68EE 0%, #008B8B 100%);
    --v652-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v652-radius: 8px;
}

/* Reset and Base Styles */
* {
    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-color: var(--v652-bg-dark);
    color: var(--v652-text-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v652-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v652-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98) 0%, rgba(33, 47, 61, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(123, 104, 238, 0.3);
}

.v652-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.v652-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v652-logo img {
    width: 32px;
    height: 32px;
}

.v652-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v652-primary);
    white-space: nowrap;
}

.v652-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v652-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--v652-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.v652-btn-login {
    background: transparent;
    border: 1px solid var(--v652-primary);
    color: var(--v652-primary);
}

.v652-btn-login:hover {
    background: var(--v652-primary);
    color: var(--v652-text-light);
}

.v652-btn-register {
    background: var(--v652-gradient);
    color: var(--v652-text-light);
}

.v652-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.4);
}

.v652-menu-toggle {
    background: none;
    border: none;
    color: var(--v652-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.v652-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v652-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid var(--v652-primary);
}

.v652-menu-open {
    right: 0;
}

.v652-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;
}

.v652-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.v652-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(123, 104, 238, 0.3);
}

.v652-menu-close {
    background: none;
    border: none;
    color: var(--v652-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v652-menu-nav {
    list-style: none;
}

.v652-menu-nav li {
    margin-bottom: 0.8rem;
}

.v652-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--v652-text-light);
    font-size: 1.4rem;
    border-radius: var(--v652-radius);
    transition: all 0.3s ease;
}

.v652-menu-nav a:hover {
    background: rgba(123, 104, 238, 0.2);
    color: var(--v652-primary);
}

.v652-menu-nav i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.v652-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.v652-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.v652-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v652-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.v652-slide-active {
    opacity: 1;
}

.v652-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--v652-radius);
}

.v652-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v652-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v652-dot-active {
    background: var(--v652-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.v652-section {
    padding: 2rem 0;
}

.v652-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v652-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v652-section-subtitle {
    font-size: 1.4rem;
    color: var(--v652-text-light);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.v652-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v652-game-card {
    background: rgba(123, 104, 238, 0.1);
    border-radius: var(--v652-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.2);
}

.v652-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--v652-primary);
    box-shadow: var(--v652-shadow);
}

.v652-game-card img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.v652-game-card span {
    font-size: 1rem;
    color: var(--v652-text-light);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Title */
.v652-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v652-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--v652-teal);
}

.v652-category-title i {
    font-size: 2rem;
}

/* Feature Cards */
.v652-feature-card {
    background: linear-gradient(145deg, rgba(123, 104, 238, 0.15) 0%, rgba(0, 139, 139, 0.1) 100%);
    border-radius: var(--v652-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(123, 104, 238, 0.3);
}

.v652-feature-card h3 {
    font-size: 1.6rem;
    color: var(--v652-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v652-feature-card p {
    font-size: 1.3rem;
    color: var(--v652-text-light);
    opacity: 0.9;
    line-height: 1.6;
}

/* Promo Banner */
.v652-promo-banner {
    background: var(--v652-gradient);
    border-radius: var(--v652-radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.v652-promo-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.v652-promo-banner p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.v652-promo-banner .v652-btn {
    background: var(--v652-text-light);
    color: var(--v652-primary);
    font-size: 1.4rem;
    padding: 1rem 2rem;
}

/* Footer */
.v652-footer {
    background: rgba(33, 47, 61, 0.95);
    padding: 2rem 0;
    border-top: 1px solid rgba(123, 104, 238, 0.3);
}

.v652-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v652-footer-links a {
    font-size: 1.2rem;
    color: var(--v652-text-light);
    opacity: 0.8;
    transition: color 0.3s ease;
}

.v652-footer-links a:hover {
    color: var(--v652-primary);
}

.v652-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v652-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v652-partners img:hover {
    opacity: 1;
}

.v652-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v652-text-light);
    opacity: 0.6;
}

/* Bottom Navigation */
.v652-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98) 0%, rgba(33, 47, 61, 1) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(123, 104, 238, 0.3);
    padding-bottom: env(safe-area-inset-bottom);
}

.v652-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(--v652-text-light);
    opacity: 0.7;
    text-decoration: none;
}

.v652-nav-item:hover,
.v652-nav-item.v652-nav-active {
    opacity: 1;
    color: var(--v652-accent);
    transform: scale(1.05);
}

.v652-nav-item i,
.v652-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.v652-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.v652-text-center {
    text-align: center;
}

.v652-text-primary {
    color: var(--v652-primary);
}

.v652-text-accent {
    color: var(--v652-accent);
}

.v652-mb-1 {
    margin-bottom: 1rem;
}

.v652-mb-2 {
    margin-bottom: 2rem;
}

.v652-mt-2 {
    margin-top: 2rem;
}

/* Promo Links */
.v652-promo-link {
    color: var(--v652-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v652-promo-link:hover {
    color: var(--v652-primary);
    text-decoration: underline;
}

/* H1 Title */
.v652-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--v652-text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.v652-h1 span {
    color: var(--v652-primary);
}

/* Responsive - Desktop */
@media (min-width: 769px) {
    .v652-bottom-nav {
        display: none;
    }

    .v652-main {
        padding-bottom: 2rem;
    }

    .v652-container {
        max-width: 768px;
    }

    .v652-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v652-header-inner {
        max-width: 768px;
        margin: 0 auto;
    }
}

/* Responsive - Tablet */
@media (min-width: 431px) and (max-width: 768px) {
    .v652-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
