/**
 * FilBet Layout Stylesheet
 * All classes use uifc- prefix for namespace isolation
 */

/* Root Variables */
:root {
    --uifc-primary: #00695C;
    --uifc-primary-light: #26A69A;
    --uifc-primary-dark: #004D40;
    --uifc-secondary: #FF8C00;
    --uifc-accent: #FFEF94;
    --uifc-bg: #0D1117;
    --uifc-bg-light: #1A2128;
    --uifc-bg-lighter: #252D36;
    --uifc-text: #FAFAD2;
    --uifc-text-muted: #D3D3D3;
    --uifc-text-dark: #0D1117;
    --uifc-border: #3A444D;
    --uifc-shadow: rgba(0, 0, 0, 0.3);
    --uifc-gradient: linear-gradient(135deg, #00695C 0%, #FF8C00 100%);
    --uifc-gradient-reverse: linear-gradient(135deg, #FF8C00 0%, #00695C 100%);
    --uifc-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--uifc-font-family);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--uifc-text);
    background-color: var(--uifc-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--uifc-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--uifc-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.uifc-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.uifc-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Header */
.uifc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--uifc-bg-light);
    border-bottom: 1px solid var(--uifc-border);
    transition: all 0.3s ease;
}

.uifc-header-scrolled {
    background: rgba(26, 33, 40, 0.98);
    box-shadow: 0 2px 10px var(--uifc-shadow);
}

.uifc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.uifc-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--uifc-accent);
}

.uifc-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
}

.uifc-header-actions {
    display: flex;
    gap: 1rem;
}

.uifc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uifc-btn-primary {
    background: var(--uifc-primary);
    color: var(--uifc-accent);
}

.uifc-btn-primary:hover {
    background: var(--uifc-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 92, 0.4);
}

.uifc-btn-secondary {
    background: var(--uifc-secondary);
    color: var(--uifc-text-dark);
}

.uifc-btn-secondary:hover {
    background: #FFA726;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.uifc-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--uifc-accent);
    font-size: 2.4rem;
}

/* Mobile Menu */
.uifc-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--uifc-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px var(--uifc-shadow);
}

.uifc-menu-open {
    right: 0;
}

.uifc-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--uifc-border);
}

.uifc-menu-close {
    width: 4rem;
    height: 4rem;
    background: none;
    border: none;
    color: var(--uifc-accent);
    font-size: 2.4rem;
    cursor: pointer;
}

.uifc-menu-nav {
    padding: 1rem 0;
}

.uifc-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: var(--uifc-text);
    font-size: 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.uifc-menu-link:hover {
    background: var(--uifc-bg-lighter);
    border-left-color: var(--uifc-secondary);
    color: var(--uifc-accent);
}

.uifc-menu-icon {
    font-size: 1.8rem;
    color: var(--uifc-primary-light);
}

/* Overlay */
.uifc-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;
}

.uifc-menu-open ~ .uifc-overlay {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.uifc-main {
    margin-top: 7rem;
    min-height: calc(100vh - 14rem);
}

/* Carousel */
.uifc-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.uifc-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.uifc-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.uifc-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uifc-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: var(--uifc-accent);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.uifc-carousel-btn:hover {
    background: var(--uifc-primary);
    transform: translateY(-50%) scale(1.1);
}

.uifc-carousel-prev {
    left: 1rem;
}

.uifc-carousel-next {
    right: 1rem;
}

/* Section */
.uifc-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--uifc-border);
}

.uifc-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--uifc-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uifc-section-title span {
    color: var(--uifc-secondary);
}

/* Game Grid */
.uifc-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.uifc-game-item {
    background: var(--uifc-bg-light);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.uifc-game-item:hover {
    transform: translateY(-5px);
    border-color: var(--uifc-secondary);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.uifc-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.uifc-game-name {
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--uifc-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uifc-game-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Card */
.uifc-card {
    background: var(--uifc-bg-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--uifc-border);
}

.uifc-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uifc-accent);
    margin-bottom: 1rem;
}

.uifc-card-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--uifc-text-muted);
}

.uifc-card-content a {
    color: var(--uifc-secondary);
    font-weight: 600;
}

/* Feature List */
.uifc-feature-list {
    list-style: none;
    margin: 1rem 0;
}

.uifc-feature-list li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.5rem;
    color: var(--uifc-text-muted);
}

.uifc-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--uifc-primary-light);
    font-weight: bold;
}

/* Footer */
.uifc-footer {
    background: var(--uifc-bg-light);
    border-top: 1px solid var(--uifc-border);
    padding: 3rem 0;
    margin-top: 3rem;
}

.uifc-footer-content {
    text-align: center;
}

.uifc-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.uifc-footer-link {
    color: var(--uifc-primary-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.uifc-footer-link:hover {
    color: var(--uifc-secondary);
    text-decoration: underline;
}

.uifc-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.uifc-partner-logo {
    width: 5rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.uifc-partner-logo:hover {
    opacity: 1;
}

.uifc-copyright {
    font-size: 1.2rem;
    color: var(--uifc-text-muted);
    margin-top: 2rem;
}

/* Bottom Navigation */
.uifc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--uifc-bg-light);
    border-top: 2px solid var(--uifc-primary);
    box-shadow: 0 -2px 10px var(--uifc-shadow);
}

.uifc-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.uifc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    padding: 0.5rem;
    color: var(--uifc-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    gap: 0.3rem;
}

.uifc-nav-item:hover {
    color: var(--uifc-accent);
    transform: scale(1.05);
}

.uifc-nav-item.uifc-nav-active {
    color: var(--uifc-secondary);
}

.uifc-nav-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.uifc-nav-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .uifc-bottom-nav {
        display: none;
    }

    .uifc-main {
        padding-bottom: 0;
    }
}

/* Add padding for mobile bottom nav */
@media (max-width: 768px) {
    .uifc-main {
        padding-bottom: 8rem;
    }
}

/* Utility Classes */
.uifc-text-center {
    text-align: center;
}

.uifc-mt-1 {
    margin-top: 1rem;
}

.uifc-mt-2 {
    margin-top: 2rem;
}

.uifc-mb-1 {
    margin-bottom: 1rem;
}

.uifc-mb-2 {
    margin-bottom: 2rem;
}

.uifc-hidden {
    display: none;
}

/* Loading State */
body:not(.uifc-loaded) {
    visibility: hidden;
}

.uifc-loaded {
    visibility: visible;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
