/**
 * WK7 Layout Styles
 * Version: 1.0.0
 * All classes use 'v6bb-' prefix for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --v6bb-primary: #006400;
    --v6bb-secondary: #FFFFFF;
    --v6bb-bg: #2C2C2C;
    --v6bb-accent: #228B22;
    --v6bb-light: #98FB98;
    --v6bb-gold: #CD853F;
    --v6bb-text: #FFFFFF;
    --v6bb-text-dark: #2C2C2C;
    --v6bb-shadow: rgba(0, 0, 0, 0.3);
    --v6bb-radius: 8px;
    --v6bb-radius-lg: 12px;
    --v6bb-transition: all 0.3s ease;
}

/* Base Reset */
* {
    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;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v6bb-text);
    background-color: var(--v6bb-bg);
    min-height: 100vh;
}

a {
    color: var(--v6bb-light);
    text-decoration: none;
    transition: var(--v6bb-transition);
}

a:hover {
    color: var(--v6bb-gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v6bb-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v6bb-wrapper {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Header */
.v6bb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v6bb-primary) 0%, var(--v6bb-accent) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--v6bb-shadow);
}

.v6bb-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v6bb-logo img {
    width: 32px;
    height: 32px;
}

.v6bb-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v6bb-secondary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.v6bb-header-actions {
    display: flex;
    gap: 0.8rem;
}

.v6bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--v6bb-radius);
    cursor: pointer;
    transition: var(--v6bb-transition);
    min-height: 44px;
    min-width: 44px;
}

.v6bb-btn-primary {
    background: var(--v6bb-gold);
    color: var(--v6bb-text-dark);
}

.v6bb-btn-primary:hover {
    background: #D4943D;
    transform: scale(1.05);
}

.v6bb-btn-secondary {
    background: transparent;
    color: var(--v6bb-secondary);
    border: 2px solid var(--v6bb-secondary);
}

.v6bb-btn-secondary:hover {
    background: var(--v6bb-secondary);
    color: var(--v6bb-primary);
}

.v6bb-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--v6bb-secondary);
    font-size: 2.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.v6bb-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(--v6bb-transition);
}

.v6bb-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v6bb-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v6bb-bg);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v6bb-menu-active {
    right: 0;
}

.v6bb-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v6bb-accent);
}

.v6bb-menu-close {
    font-size: 2.4rem;
    color: var(--v6bb-secondary);
    cursor: pointer;
}

.v6bb-nav-list {
    list-style: none;
}

.v6bb-nav-item {
    margin-bottom: 1rem;
}

.v6bb-nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--v6bb-secondary);
    border-radius: var(--v6bb-radius);
    transition: var(--v6bb-transition);
}

.v6bb-nav-link:hover {
    background: var(--v6bb-accent);
    color: var(--v6bb-secondary);
}

/* Carousel */
.v6bb-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v6bb-radius-lg);
    margin-bottom: 2rem;
}

.v6bb-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v6bb-slide-active {
    opacity: 1;
}

.v6bb-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.v6bb-section {
    margin-bottom: 3rem;
}

.v6bb-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--v6bb-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--v6bb-accent);
}

.v6bb-section-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--v6bb-secondary);
}

/* Game Grid */
.v6bb-game-category {
    margin-bottom: 3rem;
}

.v6bb-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v6bb-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v6bb-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v6bb-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--v6bb-transition);
}

.v6bb-game-item:hover {
    transform: scale(1.05);
}

.v6bb-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v6bb-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--v6bb-accent);
}

.v6bb-game-name {
    font-size: 1.2rem;
    color: var(--v6bb-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.v6bb-card {
    background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
    border-radius: var(--v6bb-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--v6bb-accent);
}

.v6bb-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v6bb-gold);
    margin-bottom: 1rem;
}

.v6bb-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v6bb-secondary);
    margin-bottom: 1rem;
}

/* Promo Link Styles */
.v6bb-promo-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--v6bb-gold);
    color: var(--v6bb-text-dark);
    font-weight: 600;
    border-radius: var(--v6bb-radius);
    cursor: pointer;
    transition: var(--v6bb-transition);
}

.v6bb-promo-link:hover {
    background: #D4943D;
    transform: scale(1.05);
}

.v6bb-text-link {
    color: var(--v6bb-light);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.v6bb-text-link:hover {
    color: var(--v6bb-gold);
}

/* Footer */
.v6bb-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.v6bb-footer-section {
    margin-bottom: 2rem;
}

.v6bb-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v6bb-gold);
    margin-bottom: 1rem;
}

.v6bb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.v6bb-footer-link {
    font-size: 1.3rem;
    color: var(--v6bb-secondary);
}

.v6bb-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.v6bb-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.8;
    transition: var(--v6bb-transition);
}

.v6bb-partner-logo:hover {
    opacity: 1;
}

.v6bb-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

/* Bottom Navigation */
.v6bb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v6bb-primary) 0%, #004d00 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
    box-shadow: 0 -2px 10px var(--v6bb-shadow);
}

.v6bb-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    color: var(--v6bb-secondary);
    cursor: pointer;
    transition: var(--v6bb-transition);
    border: none;
    background: transparent;
}

.v6bb-nav-btn:hover {
    transform: scale(1.1);
    color: var(--v6bb-gold);
}

.v6bb-nav-btn-active {
    color: var(--v6bb-gold);
}

.v6bb-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.v6bb-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* FAQ Section */
.v6bb-faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--v6bb-accent);
    border-radius: var(--v6bb-radius);
    overflow: hidden;
}

.v6bb-faq-question {
    padding: 1rem 1.5rem;
    background: var(--v6bb-primary);
    color: var(--v6bb-secondary);
    font-weight: 600;
    cursor: pointer;
}

.v6bb-faq-answer {
    padding: 1rem 1.5rem;
    background: #1a1a1a;
    font-size: 1.4rem;
}

/* Features List */
.v6bb-features-list {
    list-style: none;
}

.v6bb-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.v6bb-feature-icon {
    font-size: 2rem;
    color: var(--v6bb-gold);
    flex-shrink: 0;
}

.v6bb-feature-text {
    font-size: 1.4rem;
    line-height: 1.5;
}

/* RTP Stats */
.v6bb-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v6bb-rtp-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: var(--v6bb-radius);
    text-align: center;
    border: 1px solid var(--v6bb-accent);
}

.v6bb-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v6bb-gold);
}

.v6bb-rtp-label {
    font-size: 1.2rem;
    color: var(--v6bb-secondary);
}

/* Responsive */
@media (min-width: 769px) {
    .v6bb-bottom-nav {
        display: none;
    }

    .v6bb-wrapper {
        padding-bottom: 2rem;
    }

    .v6bb-container {
        max-width: 768px;
    }

    .v6bb-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .v6bb-wrapper {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.v6bb-text-center {
    text-align: center;
}

.v6bb-mb-1 {
    margin-bottom: 1rem;
}

.v6bb-mb-2 {
    margin-bottom: 2rem;
}

.v6bb-mt-2 {
    margin-top: 2rem;
}

.v6bb-hidden {
    display: none;
}

.v6bb-flex {
    display: flex;
}

.v6bb-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
