/**
 * Tables Game - Layout Stylesheet
 * Website: tablesgame.click
 * Prefix: uif3-
 * Color Palette: #0097A7 | #FAFAFA | #2D2D2D | #B2DFDB | #48D1CC | #36454F
 */

/* CSS Variables */
:root {
    --uif3-primary: #0097A7;
    --uif3-secondary: #48D1CC;
    --uif3-accent: #B2DFDB;
    --uif3-bg: #2D2D2D;
    --uif3-bg-light: #36454F;
    --uif3-text: #FAFAFA;
    --uif3-text-muted: rgba(250, 250, 250, 0.7);
    --uif3-border: rgba(0, 151, 167, 0.3);
    --uif3-gradient: linear-gradient(135deg, #0097A7 0%, #48D1CC 100%);
    --uif3-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --uif3-radius: 8px;
    --uif3-radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--uif3-bg);
    color: var(--uif3-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--uif3-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--uif3-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.uif3-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.uif3-wrapper {
    padding: 1rem 0;
}

/* Header */
.uif3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--uif3-bg) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--uif3-border);
    transition: all 0.3s ease;
}

.uif3-header-scrolled {
    box-shadow: var(--uif3-shadow);
}

.uif3-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.uif3-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uif3-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.uif3-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--uif3-text);
    background: var(--uif3-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uif3-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.uif3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--uif3-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.uif3-btn-primary {
    background: var(--uif3-gradient);
    color: var(--uif3-text);
}

.uif3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 151, 167, 0.4);
}

.uif3-btn-outline {
    background: transparent;
    color: var(--uif3-secondary);
    border: 2px solid var(--uif3-secondary);
}

.uif3-btn-outline:hover {
    background: var(--uif3-secondary);
    color: var(--uif3-bg);
}

.uif3-menu-toggle {
    background: none;
    border: none;
    color: var(--uif3-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.uif3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--uif3-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.uif3-menu-active {
    right: 0;
}

.uif3-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;
}

.uif3-overlay-active {
    opacity: 1;
    visibility: visible;
}

.uif3-nav-list {
    list-style: none;
}

.uif3-nav-item {
    border-bottom: 1px solid var(--uif3-border);
}

.uif3-nav-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--uif3-text);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.uif3-nav-link:hover {
    color: var(--uif3-secondary);
    padding-left: 0.5rem;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Carousel */
.uif3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--uif3-radius-lg);
    margin-bottom: 2rem;
}

.uif3-slides {
    position: relative;
    width: 100%;
}

.uif3-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.uif3-slide-active {
    display: block;
}

.uif3-slide img {
    width: 100%;
    border-radius: var(--uif3-radius-lg);
}

.uif3-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.uif3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.uif3-dot-active {
    background: var(--uif3-primary);
    transform: scale(1.2);
}

/* Section Titles */
.uif3-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uif3-text);
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--uif3-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uif3-section-subtitle {
    font-size: 1.4rem;
    color: var(--uif3-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.uif3-game-section {
    margin-bottom: 3rem;
}

.uif3-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uif3-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uif3-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uif3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.uif3-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--uif3-bg-light);
    border-radius: var(--uif3-radius);
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.uif3-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--uif3-primary);
    box-shadow: var(--uif3-shadow);
}

.uif3-game-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.uif3-game-name {
    font-size: 1rem;
    color: var(--uif3-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Content Sections */
.uif3-content-section {
    background: var(--uif3-bg-light);
    border-radius: var(--uif3-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.uif3-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uif3-secondary);
    margin-bottom: 1rem;
}

.uif3-content-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--uif3-text-muted);
    margin-bottom: 1rem;
}

.uif3-content-text:last-child {
    margin-bottom: 0;
}

/* Feature List */
.uif3-feature-list {
    list-style: none;
}

.uif3-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--uif3-border);
}

.uif3-feature-item:last-child {
    border-bottom: none;
}

.uif3-feature-icon {
    font-size: 2rem;
    color: var(--uif3-primary);
    flex-shrink: 0;
}

.uif3-feature-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--uif3-text);
    margin-bottom: 0.3rem;
}

.uif3-feature-content p {
    font-size: 1.2rem;
    color: var(--uif3-text-muted);
}

/* Promo Link Styles */
.uif3-promo-link {
    color: var(--uif3-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uif3-promo-link:hover {
    color: var(--uif3-primary);
    text-decoration: underline;
}

.uif3-promo-btn {
    display: inline-block;
    background: var(--uif3-gradient);
    color: var(--uif3-text);
    padding: 1rem 2rem;
    border-radius: var(--uif3-radius);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.uif3-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 151, 167, 0.4);
}

/* Footer */
.uif3-footer {
    background: var(--uif3-bg-light);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--uif3-border);
}

.uif3-footer-content {
    text-align: center;
}

.uif3-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.uif3-footer-link {
    color: var(--uif3-text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.uif3-footer-link:hover {
    color: var(--uif3-secondary);
}

.uif3-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.uif3-partner-logo {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uif3-partner-logo:hover {
    opacity: 1;
}

.uif3-copyright {
    font-size: 1.2rem;
    color: var(--uif3-text-muted);
}

/* Mobile Bottom Navigation */
.uif3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(54, 69, 79, 0.98) 0%, rgba(45, 45, 45, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--uif3-border);
    display: none;
}

@media (max-width: 768px) {
    .uif3-bottom-nav {
        display: block;
    }
}

.uif3-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
}

.uif3-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(--uif3-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.3rem;
}

.uif3-nav-btn:hover,
.uif3-nav-btn-active {
    color: var(--uif3-secondary);
    transform: scale(1.05);
}

.uif3-nav-btn-icon {
    font-size: 2.2rem;
}

.uif3-nav-btn-text {
    font-size: 1rem;
}

/* Utility Classes */
.uif3-text-center {
    text-align: center;
}

.uif3-mb-1 {
    margin-bottom: 1rem;
}

.uif3-mb-2 {
    margin-bottom: 2rem;
}

.uif3-mb-3 {
    margin-bottom: 3rem;
}

.uif3-hidden {
    display: none !important;
}

/* Responsive */
@media (min-width: 769px) {
    .uif3-bottom-nav {
        display: none !important;
    }

    main {
        padding-bottom: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uif3-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* FAQ Accordion */
.uif3-faq-item {
    background: var(--uif3-bg-light);
    border-radius: var(--uif3-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.uif3-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--uif3-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uif3-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--uif3-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* RTP Stats */
.uif3-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.uif3-rtp-item {
    background: var(--uif3-bg);
    border-radius: var(--uif3-radius);
    padding: 1rem;
    text-align: center;
}

.uif3-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uif3-secondary);
}

.uif3-rtp-label {
    font-size: 1.1rem;
    color: var(--uif3-text-muted);
}
