/**
 * Table Games Casino - Main Stylesheet
 * All classes use 'w1b1a-' prefix for namespace isolation
 * Color Scheme: #FF8C00 | #EEE8AA | #4169E1 | #000080 | #2C3E50
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --w1b1a-primary: #FF8C00;
    --w1b1a-secondary: #EEE8AA;
    --w1b1a-accent: #4169E1;
    --w1b1a-dark: #000080;
    --w1b1a-darker: #2C3E50;
    --w1b1a-bg: #1a1a2e;
    --w1b1a-bg-light: #16213e;
    --w1b1a-text: #ffffff;
    --w1b1a-text-muted: #b0b0b0;
    --w1b1a-border: rgba(255, 140, 0, 0.3);
    --w1b1a-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --w1b1a-radius: 8px;
    --w1b1a-transition: all 0.3s ease;
}

/* Reset and 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: var(--w1b1a-bg);
    color: var(--w1b1a-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.w1b1a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w1b1a-wrapper {
    padding: 1rem 0;
}

/* Header */
.w1b1a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w1b1a-dark) 0%, var(--w1b1a-darker) 100%);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--w1b1a-shadow);
}

.w1b1a-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.w1b1a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w1b1a-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w1b1a-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w1b1a-primary);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.w1b1a-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.w1b1a-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--w1b1a-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w1b1a-transition);
    border: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.w1b1a-btn-primary {
    background: linear-gradient(135deg, var(--w1b1a-primary) 0%, #ff6b00 100%);
    color: var(--w1b1a-dark);
}

.w1b1a-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.w1b1a-btn-secondary {
    background: transparent;
    border: 2px solid var(--w1b1a-primary);
    color: var(--w1b1a-primary);
}

.w1b1a-btn-secondary:hover {
    background: var(--w1b1a-primary);
    color: var(--w1b1a-dark);
}

.w1b1a-menu-toggle {
    background: none;
    border: none;
    color: var(--w1b1a-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w1b1a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--w1b1a-dark) 0%, var(--w1b1a-bg) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w1b1a-menu-active {
    right: 0;
}

.w1b1a-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(--w1b1a-transition);
}

.w1b1a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w1b1a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w1b1a-border);
}

.w1b1a-menu-close {
    background: none;
    border: none;
    color: var(--w1b1a-text);
    font-size: 2rem;
    cursor: pointer;
}

.w1b1a-nav-list {
    list-style: none;
}

.w1b1a-nav-item {
    margin-bottom: 0.5rem;
}

.w1b1a-nav-link {
    display: block;
    padding: 1rem;
    color: var(--w1b1a-text);
    font-size: 1.3rem;
    border-radius: var(--w1b1a-radius);
    transition: var(--w1b1a-transition);
}

.w1b1a-nav-link:hover {
    background: rgba(255, 140, 0, 0.2);
    color: var(--w1b1a-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.w1b1a-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 1rem;
}

.w1b1a-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w1b1a-slide-active {
    opacity: 1;
}

.w1b1a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--w1b1a-radius);
}

.w1b1a-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.w1b1a-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w1b1a-transition);
}

.w1b1a-dot-active {
    background: var(--w1b1a-primary);
    transform: scale(1.2);
}

/* Section Titles */
.w1b1a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w1b1a-primary);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.w1b1a-subtitle {
    font-size: 1.4rem;
    color: var(--w1b1a-secondary);
    margin-bottom: 1.5rem;
}

/* Game Grid */
.w1b1a-game-section {
    padding: 2rem 0;
}

.w1b1a-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w1b1a-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--w1b1a-primary);
}

.w1b1a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0 0.5rem;
}

.w1b1a-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--w1b1a-transition);
    padding: 0.5rem;
    border-radius: var(--w1b1a-radius);
}

.w1b1a-game-item:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

.w1b1a-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.w1b1a-game-name {
    font-size: 1rem;
    color: var(--w1b1a-text);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.w1b1a-content-section {
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, var(--w1b1a-bg-light) 0%, var(--w1b1a-bg) 100%);
    margin: 1rem 0;
    border-radius: var(--w1b1a-radius);
}

.w1b1a-content-section p {
    margin-bottom: 1rem;
    color: var(--w1b1a-text-muted);
    line-height: 1.8;
}

.w1b1a-content-section h2 {
    color: var(--w1b1a-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.w1b1a-content-section h3 {
    color: var(--w1b1a-secondary);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.w1b1a-content-section ul {
    list-style: none;
    padding-left: 1rem;
}

.w1b1a-content-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--w1b1a-text-muted);
}

.w1b1a-content-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--w1b1a-primary);
    font-weight: bold;
}

/* Promo Link */
.w1b1a-promo-link {
    color: var(--w1b1a-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--w1b1a-transition);
}

.w1b1a-promo-link:hover {
    color: var(--w1b1a-secondary);
    text-decoration: underline;
}

.w1b1a-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--w1b1a-primary) 0%, #ff6b00 100%);
    color: var(--w1b1a-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--w1b1a-radius);
    cursor: pointer;
    transition: var(--w1b1a-transition);
    text-align: center;
}

.w1b1a-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.6);
}

/* Footer */
.w1b1a-footer {
    background: linear-gradient(180deg, var(--w1b1a-bg-light) 0%, var(--w1b1a-dark) 100%);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.w1b1a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w1b1a-footer-link {
    color: var(--w1b1a-text-muted);
    font-size: 1.2rem;
    transition: var(--w1b1a-transition);
}

.w1b1a-footer-link:hover {
    color: var(--w1b1a-primary);
}

.w1b1a-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w1b1a-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--w1b1a-transition);
    filter: grayscale(50%);
}

.w1b1a-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.w1b1a-copyright {
    text-align: center;
    color: var(--w1b1a-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--w1b1a-border);
}

/* Mobile Bottom Navigation */
.w1b1a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--w1b1a-dark) 0%, #0a0a1a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--w1b1a-border);
}

.w1b1a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--w1b1a-transition);
    color: var(--w1b1a-text-muted);
    background: none;
    border: none;
    padding: 0.5rem;
}

.w1b1a-nav-btn:hover,
.w1b1a-nav-btn-active {
    color: var(--w1b1a-primary);
    transform: scale(1.1);
}

.w1b1a-nav-btn i,
.w1b1a-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.w1b1a-nav-btn span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w1b1a-bottom-nav {
        display: none;
    }
}

/* H1 Title */
.w1b1a-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w1b1a-primary);
    text-align: center;
    margin: 1.5rem 0;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
    line-height: 1.3;
}

/* Cards */
.w1b1a-card {
    background: linear-gradient(135deg, var(--w1b1a-bg-light) 0%, var(--w1b1a-bg) 100%);
    border-radius: var(--w1b1a-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--w1b1a-border);
    transition: var(--w1b1a-transition);
}

.w1b1a-card:hover {
    border-color: var(--w1b1a-primary);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

/* RTP Analysis */
.w1b1a-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w1b1a-rtp-item {
    background: rgba(255, 140, 0, 0.1);
    padding: 1rem;
    border-radius: var(--w1b1a-radius);
    text-align: center;
}

.w1b1a-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w1b1a-primary);
}

.w1b1a-rtp-label {
    font-size: 1.1rem;
    color: var(--w1b1a-text-muted);
}

/* Achievements */
.w1b1a-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(65, 105, 225, 0.1);
    border-radius: var(--w1b1a-radius);
    margin-bottom: 0.8rem;
}

.w1b1a-achievement-icon {
    font-size: 2rem;
    color: var(--w1b1a-accent);
}

.w1b1a-achievement-text {
    font-size: 1.2rem;
    color: var(--w1b1a-text);
}

/* Security Section */
.w1b1a-security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.w1b1a-security-icon {
    color: #4CAF50;
    font-size: 1.8rem;
}

/* Tricks Section */
.w1b1a-trick {
    padding: 1rem;
    background: rgba(255, 140, 0, 0.05);
    border-left: 3px solid var(--w1b1a-primary);
    margin-bottom: 1rem;
    border-radius: 0 var(--w1b1a-radius) var(--w1b1a-radius) 0;
}

.w1b1a-trick-title {
    font-weight: 600;
    color: var(--w1b1a-primary);
    margin-bottom: 0.5rem;
}

/* Internal Links */
.w1b1a-internal-link {
    color: var(--w1b1a-accent);
    text-decoration: underline;
    transition: var(--w1b1a-transition);
}

.w1b1a-internal-link:hover {
    color: var(--w1b1a-secondary);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .w1b1a-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w1b1a-game-icon {
        width: 50px;
        height: 50px;
    }

    .w1b1a-game-name {
        font-size: 0.9rem;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .w1b1a-container {
        max-width: 800px;
    }

    .w1b1a-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w1b1a-carousel {
        height: 300px;
    }
}
