/**
 * Table Game Casino - Layout Stylesheet
 * File: css/layout.css
 * Prefix: v5b0-
 */

/* CSS Variables */
:root {
    --v5b0-primary: #B22222;
    --v5b0-secondary: #FF0000;
    --v5b0-bg-dark: #0A0A0A;
    --v5b0-bg-medium: #5D5D5D;
    --v5b0-text-light: #ECF0F1;
    --v5b0-text-muted: #A9A9A9;
    --v5b0-accent: #B22222;
    --v5b0-gradient: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    --v5b0-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v5b0-radius: 8px;
    --v5b0-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v5b0-bg-dark);
    color: var(--v5b0-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    color: var(--v5b0-text-light);
    text-decoration: none;
    transition: var(--v5b0-transition);
}

a:hover {
    color: var(--v5b0-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v5b0-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5b0-wrapper {
    padding: 2rem 0;
}

/* Header */
.v5b0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v5b0-bg-dark) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(178, 34, 34, 0.3);
    backdrop-filter: blur(10px);
}

.v5b0-header-scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--v5b0-shadow);
}

.v5b0-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v5b0-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.v5b0-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v5b0-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v5b0-logo-text span {
    color: var(--v5b0-primary);
}

.v5b0-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.v5b0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--v5b0-radius);
    cursor: pointer;
    transition: var(--v5b0-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v5b0-btn-primary {
    background: var(--v5b0-gradient);
    color: var(--v5b0-text-light);
    box-shadow: 0 2px 10px rgba(178, 34, 34, 0.4);
}

.v5b0-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(178, 34, 34, 0.6);
}

.v5b0-btn-outline {
    background: transparent;
    border: 2px solid var(--v5b0-primary);
    color: var(--v5b0-text-light);
}

.v5b0-btn-outline:hover {
    background: var(--v5b0-primary);
}

.v5b0-menu-btn {
    background: none;
    border: none;
    color: var(--v5b0-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v5b0-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v5b0-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(178, 34, 34, 0.3);
    overflow-y: auto;
}

.v5b0-menu-active {
    right: 0;
}

.v5b0-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: var(--v5b0-transition);
}

.v5b0-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v5b0-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--v5b0-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v5b0-menu-list {
    list-style: none;
    margin-top: 4rem;
}

.v5b0-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v5b0-menu-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.5rem;
    color: var(--v5b0-text-light);
    transition: var(--v5b0-transition);
}

.v5b0-menu-link:hover {
    color: var(--v5b0-primary);
    padding-left: 1rem;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Slider/Carousel */
.v5b0-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.v5b0-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v5b0-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.v5b0-slide-active {
    opacity: 1;
    position: relative;
}

.v5b0-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.v5b0-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v5b0-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v5b0-transition);
}

.v5b0-dot-active {
    background: var(--v5b0-primary);
}

/* Section Styles */
.v5b0-section {
    padding: 2.5rem 1.5rem;
}

.v5b0-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--v5b0-text-light);
    text-align: center;
    position: relative;
}

.v5b0-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--v5b0-gradient);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.v5b0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v5b0-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--v5b0-transition);
}

.v5b0-game-item:hover {
    transform: scale(1.05);
}

.v5b0-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v5b0-radius);
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--v5b0-transition);
}

.v5b0-game-item:hover .v5b0-game-img {
    border-color: var(--v5b0-primary);
}

.v5b0-game-name {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: var(--v5b0-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.v5b0-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v5b0-primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--v5b0-primary);
}

/* Cards */
.v5b0-card {
    background: rgba(93, 93, 93, 0.2);
    border-radius: var(--v5b0-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(178, 34, 34, 0.2);
}

.v5b0-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v5b0-text-light);
}

.v5b0-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--v5b0-text-muted);
}

/* Features List */
.v5b0-features {
    display: grid;
    gap: 1rem;
}

.v5b0-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(93, 93, 93, 0.15);
    border-radius: var(--v5b0-radius);
}

.v5b0-feature-icon {
    font-size: 2.4rem;
    color: var(--v5b0-primary);
    flex-shrink: 0;
}

.v5b0-feature-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.v5b0-feature-content p {
    font-size: 1.2rem;
    color: var(--v5b0-text-muted);
}

/* FAQ */
.v5b0-faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(178, 34, 34, 0.2);
    border-radius: var(--v5b0-radius);
    overflow: hidden;
}

.v5b0-faq-question {
    padding: 1.2rem;
    background: rgba(93, 93, 93, 0.2);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v5b0-faq-answer {
    padding: 1.2rem;
    background: rgba(10, 10, 10, 0.5);
    font-size: 1.3rem;
    color: var(--v5b0-text-muted);
}

/* Footer */
.v5b0-footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, var(--v5b0-bg-dark) 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(178, 34, 34, 0.3);
}

.v5b0-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.v5b0-footer-brand p {
    font-size: 1.3rem;
    color: var(--v5b0-text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.v5b0-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v5b0-footer-link {
    font-size: 1.2rem;
    color: var(--v5b0-text-muted);
    padding: 0.5rem 1rem;
    background: rgba(93, 93, 93, 0.2);
    border-radius: var(--v5b0-radius);
}

.v5b0-footer-link:hover {
    background: var(--v5b0-primary);
    color: var(--v5b0-text-light);
}

.v5b0-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v5b0-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v5b0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, var(--v5b0-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(178, 34, 34, 0.4);
}

@media (min-width: 769px) {
    .v5b0-bottom-nav {
        display: none;
    }
}

.v5b0-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(--v5b0-text-muted);
    cursor: pointer;
    transition: var(--v5b0-transition);
}

.v5b0-nav-btn:hover,
.v5b0-nav-btn-active {
    color: var(--v5b0-primary);
    transform: scale(1.1);
}

.v5b0-nav-btn i,
.v5b0-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.v5b0-nav-btn span {
    font-size: 10px;
    text-transform: uppercase;
}

/* Promo Links */
.v5b0-promo-link {
    color: var(--v5b0-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--v5b0-transition);
}

.v5b0-promo-link:hover {
    text-decoration: underline;
}

/* Utility Classes */
.v5b0-text-center {
    text-align: center;
}

.v5b0-mb-1 {
    margin-bottom: 1rem;
}

.v5b0-mb-2 {
    margin-bottom: 2rem;
}

.v5b0-mt-2 {
    margin-top: 2rem;
}

.v5b0-hidden {
    display: none;
}

/* Responsive Grid */
@media (min-width: 431px) {
    .v5b0-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
