/**
 * Table Game - Main Stylesheet
 * Website: tablegame.click
 * Prefix: v6f8-
 */

/* CSS Variables */
:root {
    --v6f8-primary: #B03060;
    --v6f8-secondary: #CD853F;
    --v6f8-bg: #0E1621;
    --v6f8-bg-light: #1A2332;
    --v6f8-bg-card: #141E2C;
    --v6f8-text: #E8E8E8;
    --v6f8-text-muted: #9CA3AF;
    --v6f8-accent: #D4AF37;
    --v6f8-success: #10B981;
    --v6f8-gradient: linear-gradient(135deg, #B03060 0%, #CD853F 100%);
    --v6f8-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --v6f8-radius: 8px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v6f8-bg);
    color: var(--v6f8-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
}

a {
    color: var(--v6f8-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--v6f8-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v6f8-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v6f8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--v6f8-bg) 0%, rgba(14, 22, 33, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(205, 133, 63, 0.2);
}

.v6f8-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.v6f8-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v6f8-logo img {
    width: 32px;
    height: 32px;
}

.v6f8-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v6f8-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v6f8-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.v6f8-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--v6f8-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v6f8-btn-login {
    background: transparent;
    border: 2px solid var(--v6f8-secondary);
    color: var(--v6f8-secondary);
}

.v6f8-btn-login:hover {
    background: var(--v6f8-secondary);
    color: var(--v6f8-bg);
}

.v6f8-btn-register {
    background: var(--v6f8-gradient);
    color: white;
    box-shadow: var(--v6f8-shadow);
}

.v6f8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(176, 48, 96, 0.4);
}

.v6f8-menu-toggle {
    background: none;
    border: none;
    color: var(--v6f8-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v6f8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v6f8-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.v6f8-mobile-menu.v6f8-menu-active {
    right: 0;
}

.v6f8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.v6f8-menu-overlay.v6f8-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.v6f8-nav-list {
    list-style: none;
}

.v6f8-nav-item {
    margin-bottom: 0.5rem;
}

.v6f8-nav-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--v6f8-text);
    border-radius: var(--v6f8-radius);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.v6f8-nav-link:hover {
    background: var(--v6f8-bg-card);
    color: var(--v6f8-accent);
}

.v6f8-nav-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Carousel */
.v6f8-carousel {
    position: relative;
    margin-top: 6rem;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
}

.v6f8-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.v6f8-slide.v6f8-slide-active {
    display: block;
}

.v6f8-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Content */
.v6f8-main {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .v6f8-main {
        padding-bottom: 80px;
    }
}

/* Sections */
.v6f8-section {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.v6f8-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v6f8-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.v6f8-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--v6f8-gradient);
    border-radius: 2px;
}

/* Game Grid */
.v6f8-game-category {
    margin-bottom: 2.5rem;
}

.v6f8-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v6f8-secondary);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--v6f8-primary);
}

.v6f8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v6f8-game-item {
    background: var(--v6f8-bg-card);
    border-radius: var(--v6f8-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.v6f8-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(176, 48, 96, 0.3);
}

.v6f8-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v6f8-game-name {
    padding: 0.6rem 0.5rem;
    font-size: 1.1rem;
    color: var(--v6f8-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Box */
.v6f8-content-box {
    background: var(--v6f8-bg-card);
    border-radius: var(--v6f8-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(205, 133, 63, 0.1);
}

.v6f8-content-box h3 {
    color: var(--v6f8-accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.v6f8-content-box p {
    color: var(--v6f8-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Promo Link Styles */
.v6f8-promo-link {
    color: var(--v6f8-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v6f8-promo-link:hover {
    color: var(--v6f8-primary);
    text-decoration: underline;
}

.v6f8-promo-btn {
    display: inline-block;
    background: var(--v6f8-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--v6f8-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v6f8-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(176, 48, 96, 0.4);
}

/* Footer */
.v6f8-footer {
    background: var(--v6f8-bg-light);
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(205, 133, 63, 0.2);
}

.v6f8-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v6f8-footer-link {
    color: var(--v6f8-text-muted);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.v6f8-footer-link:hover {
    color: var(--v6f8-secondary);
}

.v6f8-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v6f8-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.v6f8-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.v6f8-copyright {
    text-align: center;
    color: var(--v6f8-text-muted);
    font-size: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v6f8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, var(--v6f8-bg) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid rgba(205, 133, 63, 0.2);
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .v6f8-bottom-nav {
        display: none;
    }
}

.v6f8-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--v6f8-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.v6f8-nav-btn:hover,
.v6f8-nav-btn.v6f8-active {
    color: var(--v6f8-accent);
    transform: scale(1.1);
}

.v6f8-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.v6f8-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Features Grid */
.v6f8-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.v6f8-feature-card {
    background: var(--v6f8-bg-card);
    border-radius: var(--v6f8-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(205, 133, 63, 0.1);
    transition: all 0.3s ease;
}

.v6f8-feature-card:hover {
    border-color: var(--v6f8-primary);
    transform: translateY(-4px);
}

.v6f8-feature-icon {
    font-size: 3rem;
    color: var(--v6f8-primary);
    margin-bottom: 1rem;
}

.v6f8-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v6f8-text);
    margin-bottom: 0.5rem;
}

.v6f8-feature-desc {
    font-size: 1.2rem;
    color: var(--v6f8-text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.v6f8-faq-item {
    background: var(--v6f8-bg-card);
    border-radius: var(--v6f8-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.v6f8-faq-question {
    padding: 1.5rem;
    color: var(--v6f8-text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.v6f8-faq-question:hover {
    background: var(--v6f8-bg-light);
}

.v6f8-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--v6f8-text-muted);
    line-height: 1.6;
}

/* Utility Classes */
.v6f8-text-center {
    text-align: center;
}

.v6f8-mb-1 {
    margin-bottom: 1rem;
}

.v6f8-mb-2 {
    margin-bottom: 2rem;
}

.v6f8-mb-3 {
    margin-bottom: 3rem;
}

.v6f8-hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 430px) {
    .v6f8-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .v6f8-game-name {
        font-size: 1rem;
        padding: 0.5rem 0.3rem;
    }
}
