/**
 * slo878.club - Main Stylesheet
 * All classes use prefix "uif9-" for namespace isolation
 * Color Palette: #273746 (dark bg), #D3D3D3 (light text), #00FFFF (accent)
 * @version 1.0.0
 */

/* CSS Reset and Base Styles */
:root {
    --uif9-primary: #00FFFF;
    --uif9-bg: #273746;
    --uif9-bg-light: #2c3e50;
    --uif9-bg-dark: #1a252f;
    --uif9-text: #D3D3D3;
    --uif9-text-light: #ffffff;
    --uif9-text-muted: #95a5a6;
    --uif9-accent: #00FFFF;
    --uif9-accent-hover: #00d4d4;
    --uif9-success: #27ae60;
    --uif9-warning: #f39c12;
    --uif9-danger: #e74c3c;
    --uif9-card-bg: #34495e;
    --uif9-border: #4a6278;
    --uif9-shadow: rgba(0, 0, 0, 0.3);
    --uif9-gradient-start: #273746;
    --uif9-gradient-end: #1a252f;
}

/* Root font size for rem units */
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(--uif9-text);
    background: linear-gradient(135deg, var(--uif9-gradient-start), var(--uif9-gradient-end));
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container */
.uif9-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.uif9-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--uif9-bg) 0%, var(--uif9-bg-dark) 100%);
    border-bottom: 1px solid var(--uif9-border);
    padding: 0.8rem 1.5rem;
    transition: box-shadow 0.3s ease;
}

.uif9-header-scrolled {
    box-shadow: 0 4px 20px var(--uif9-shadow);
}

.uif9-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.uif9-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.uif9-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.uif9-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uif9-accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.uif9-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uif9-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: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.uif9-btn-primary {
    background: linear-gradient(135deg, var(--uif9-accent), var(--uif9-accent-hover));
    color: var(--uif9-bg-dark);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.uif9-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.uif9-btn-secondary {
    background: transparent;
    color: var(--uif9-text-light);
    border: 2px solid var(--uif9-accent);
}

.uif9-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

.uif9-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.uif9-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--uif9-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.uif9-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--uif9-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.uif9-menu-active {
    right: 0;
}

.uif9-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.4rem;
    color: var(--uif9-text);
    background: none;
    border: none;
    cursor: pointer;
}

.uif9-menu-nav {
    margin-top: 4rem;
}

.uif9-menu-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.5rem;
    color: var(--uif9-text);
    text-decoration: none;
    border-bottom: 1px solid var(--uif9-border);
    transition: color 0.3s ease;
}

.uif9-menu-link:hover {
    color: var(--uif9-accent);
}

/* Menu Overlay */
.uif9-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;
}

.uif9-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.uif9-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.uif9-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.uif9-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.uif9-slide-active {
    opacity: 1;
    position: relative;
}

.uif9-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
}

.uif9-slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.uif9-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--uif9-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.uif9-dot-active {
    background: var(--uif9-accent);
    transform: scale(1.2);
}

/* Section Styles */
.uif9-section {
    padding: 2rem 1.5rem;
}

.uif9-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uif9-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Game Grid */
.uif9-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.uif9-game-card {
    background: var(--uif9-card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.uif9-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--uif9-shadow);
}

.uif9-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.uif9-game-name {
    font-size: 1.1rem;
    color: var(--uif9-text-light);
    text-align: center;
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Title */
.uif9-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uif9-accent);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uif9-border);
}

/* Content Cards */
.uif9-card {
    background: var(--uif9-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--uif9-border);
}

.uif9-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uif9-accent);
    margin-bottom: 1rem;
}

.uif9-card-text {
    font-size: 1.4rem;
    color: var(--uif9-text);
    line-height: 1.6;
}

/* Features List */
.uif9-features {
    display: grid;
    gap: 1rem;
}

.uif9-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--uif9-bg-light);
    border-radius: 8px;
}

.uif9-feature-icon {
    font-size: 2.4rem;
    color: var(--uif9-accent);
    min-width: 40px;
}

.uif9-feature-content h4 {
    font-size: 1.4rem;
    color: var(--uif9-text-light);
    margin: 0 0 0.5rem 0;
}

.uif9-feature-content p {
    font-size: 1.2rem;
    color: var(--uif9-text-muted);
    margin: 0;
}

/* RTP Stats */
.uif9-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.uif9-rtp-item {
    background: var(--uif9-bg-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.uif9-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uif9-accent);
}

.uif9-rtp-label {
    font-size: 1.2rem;
    color: var(--uif9-text-muted);
}

/* Promo Link Styles */
.uif9-promo-link {
    color: var(--uif9-accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.uif9-promo-link:hover {
    color: var(--uif9-accent-hover);
}

/* Footer */
.uif9-footer {
    background: var(--uif9-bg-dark);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--uif9-border);
}

.uif9-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.uif9-footer-link {
    font-size: 1.3rem;
    color: var(--uif9-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.uif9-footer-link:hover {
    color: var(--uif9-accent);
}

.uif9-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.uif9-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uif9-partner-logo:hover {
    opacity: 1;
}

.uif9-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--uif9-text-muted);
}

/* Bottom Navigation (Mobile) */
.uif9-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--uif9-bg) 0%, var(--uif9-bg-dark) 100%);
    border-top: 1px solid var(--uif9-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.uif9-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.uif9-nav-item:hover,
.uif9-nav-item.uif9-active {
    transform: scale(1.1);
}

.uif9-nav-icon {
    font-size: 24px;
    color: var(--uif9-text);
    transition: color 0.3s ease;
}

.uif9-nav-item:hover .uif9-nav-icon,
.uif9-nav-item.uif9-active .uif9-nav-icon {
    color: var(--uif9-accent);
}

.uif9-nav-text {
    font-size: 11px;
    color: var(--uif9-text-muted);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.uif9-nav-item:hover .uif9-nav-text,
.uif9-nav-item.uif9-active .uif9-nav-text {
    color: var(--uif9-accent);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .uif9-bottom-nav {
        display: none;
    }
}

/* Utilities */
.uif9-text-center {
    text-align: center;
}

.uif9-mb-1 {
    margin-bottom: 1rem;
}

.uif9-mb-2 {
    margin-bottom: 2rem;
}

.uif9-hidden {
    display: none;
}

/* Promo Buttons in Content */
.uif9-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--uif9-accent), var(--uif9-accent-hover));
    color: var(--uif9-bg-dark);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.uif9-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

/* List Styles */
.uif9-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.uif9-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
    color: var(--uif9-text);
    border-bottom: 1px solid var(--uif9-border);
}

.uif9-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--uif9-accent);
    font-weight: bold;
}

/* FAQ Accordion */
.uif9-faq-item {
    background: var(--uif9-card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.uif9-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--uif9-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--uif9-bg-light);
}

.uif9-faq-answer {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    color: var(--uif9-text);
    line-height: 1.6;
}

/* Achievement Badge */
.uif9-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--uif9-bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--uif9-accent);
}

/* Loading State */
.uif9-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.uif9-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid var(--uif9-border);
    border-top-color: var(--uif9-accent);
    border-radius: 50%;
    animation: uif9-spin 1s linear infinite;
}

@keyframes uif9-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    .uif9-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .uif9-game-name {
        font-size: 1rem;
    }
}

/* H1 Title Style */
h1 {
    font-size: 2.2rem;
    color: var(--uif9-accent);
    text-align: center;
    margin: 1.5rem 0;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Paragraph */
p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--uif9-text);
    margin-bottom: 1rem;
}

/* Strong/Bold */
strong, b {
    color: var(--uif9-accent);
    font-weight: 600;
}

/* Links */
a {
    color: var(--uif9-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--uif9-accent-hover);
}
