/**
 * Nustar Casino - Design Stylesheet
 * Version: 1.0.0
 * All classes use prefix: uif5-
 * Color Palette: #2E4057 | #00695C | #B2DFDB | #00FFFF
 */

/* CSS Variables */
:root {
    --uif5-primary: #00695C;
    --uif5-secondary: #2E4057;
    --uif5-accent: #00FFFF;
    --uif5-light: #B2DFDB;
    --uif5-bg: #1a2a3a;
    --uif5-bg-dark: #0f1922;
    --uif5-text: #ffffff;
    --uif5-text-muted: #a0b0c0;
    --uif5-border: rgba(0, 255, 255, 0.2);
    --uif5-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --uif5-gradient: linear-gradient(135deg, #00695C 0%, #2E4057 100%);
}

/* Reset & Base */
* {
    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;
    background: var(--uif5-bg);
    color: var(--uif5-text);
    line-height: 1.5;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.uif5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.uif5-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Header */
.uif5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--uif5-secondary) 0%, rgba(46, 64, 87, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--uif5-border);
}

.uif5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.uif5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uif5-logo img {
    width: 32px;
    height: 32px;
}

.uif5-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--uif5-accent), var(--uif5-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uif5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uif5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.uif5-btn-login {
    background: transparent;
    border: 2px solid var(--uif5-accent);
    color: var(--uif5-accent);
}

.uif5-btn-login:hover {
    background: var(--uif5-accent);
    color: var(--uif5-secondary);
}

.uif5-btn-register {
    background: linear-gradient(135deg, var(--uif5-accent) 0%, var(--uif5-light) 100%);
    color: var(--uif5-secondary);
}

.uif5-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Menu Toggle */
.uif5-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.uif5-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--uif5-accent);
    transition: all 0.3s ease;
}

.uif5-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.uif5-toggle-active span:nth-child(2) {
    opacity: 0;
}

.uif5-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.uif5-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--uif5-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.uif5-menu-active {
    right: 0;
}

.uif5-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.uif5-overlay-active {
    opacity: 1;
    visibility: visible;
}

.uif5-nav-list {
    list-style: none;
}

.uif5-nav-item {
    border-bottom: 1px solid var(--uif5-border);
}

.uif5-nav-link {
    display: block;
    padding: 1.5rem 1rem;
    font-size: 1.4rem;
    color: var(--uif5-text);
    transition: all 0.3s ease;
}

.uif5-nav-link:hover {
    color: var(--uif5-accent);
    padding-left: 1.5rem;
}

/* Main Content */
.uif5-main {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Carousel */
.uif5-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.uif5-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.uif5-slide-active {
    opacity: 1;
}

.uif5-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Title */
.uif5-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--uif5-accent);
    text-align: center;
}

.uif5-section-subtitle {
    font-size: 1.4rem;
    color: var(--uif5-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.uif5-game-section {
    margin-bottom: 3rem;
}

.uif5-game-category {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uif5-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uif5-primary);
}

.uif5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.uif5-game-card {
    background: var(--uif5-secondary);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--uif5-border);
}

.uif5-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    border-color: var(--uif5-accent);
}

.uif5-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.uif5-game-name {
    font-size: 1rem;
    color: var(--uif5-text);
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Section */
.uif5-content-section {
    background: linear-gradient(135deg, var(--uif5-secondary) 0%, rgba(0, 105, 92, 0.3) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--uif5-border);
}

.uif5-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uif5-accent);
    margin-bottom: 1rem;
}

.uif5-content-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--uif5-text-muted);
    margin-bottom: 1rem;
}

.uif5-content-text a {
    color: var(--uif5-accent);
    font-weight: 600;
}

.uif5-content-text a:hover {
    text-decoration: underline;
}

/* Promo Link */
.uif5-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--uif5-accent);
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uif5-promo-link:hover {
    color: var(--uif5-light);
    text-shadow: 0 0 10px var(--uif5-accent);
}

/* Features List */
.uif5-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.uif5-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0.8rem;
    border: 1px solid var(--uif5-border);
}

.uif5-feature-icon {
    font-size: 2rem;
    color: var(--uif5-accent);
}

.uif5-feature-text {
    font-size: 1.2rem;
    color: var(--uif5-text);
}

/* Footer */
.uif5-footer {
    background: var(--uif5-bg-dark);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--uif5-border);
}

.uif5-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.uif5-footer-link {
    font-size: 1.2rem;
    color: var(--uif5-text-muted);
    transition: color 0.3s ease;
}

.uif5-footer-link:hover {
    color: var(--uif5-accent);
}

.uif5-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.uif5-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uif5-partner-img:hover {
    opacity: 1;
}

.uif5-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--uif5-text-muted);
}

/* Bottom Navigation */
.uif5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(46, 64, 87, 0.98) 0%, var(--uif5-bg-dark) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--uif5-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.uif5-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.uif5-nav-btn:hover {
    transform: scale(1.1);
}

.uif5-nav-btn:active {
    transform: scale(0.95);
}

.uif5-nav-btn-icon {
    font-size: 24px;
    color: var(--uif5-text-muted);
    transition: all 0.3s ease;
}

.uif5-nav-btn:hover .uif5-nav-btn-icon {
    color: var(--uif5-accent);
}

.uif5-nav-btn-text {
    font-size: 10px;
    color: var(--uif5-text-muted);
    margin-top: 2px;
    transition: color 0.3s ease;
}

.uif5-nav-btn:hover .uif5-nav-btn-text {
    color: var(--uif5-accent);
}

.uif5-nav-btn-active .uif5-nav-btn-icon,
.uif5-nav-btn-active .uif5-nav-btn-text {
    color: var(--uif5-accent);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .uif5-bottom-nav {
        display: none;
    }

    .uif5-main {
        padding-bottom: 2rem;
    }
}

/* Mobile Padding */
@media (max-width: 768px) {
    .uif5-main {
        padding-bottom: 80px;
    }
}

/* Responsive */
@media (max-width: 430px) {
    .uif5-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .uif5-game-name {
        font-size: 0.9rem;
    }
}

/* CTA Button */
.uif5-cta-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--uif5-accent) 0%, var(--uif5-light) 100%);
    color: var(--uif5-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.uif5-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* List Styles */
.uif5-list {
    list-style: none;
    padding: 0;
}

.uif5-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--uif5-border);
    font-size: 1.3rem;
    color: var(--uif5-text-muted);
}

.uif5-list-item:last-child {
    border-bottom: none;
}

/* Badge */
.uif5-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--uif5-primary);
    color: var(--uif5-text);
    font-size: 1rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Highlight Text */
.uif5-highlight {
    color: var(--uif5-accent);
    font-weight: 600;
}
