/**
 * NuStar Online App - Main Stylesheet
 * Website: nustaronlineapp.cfd
 * Prefix: w4788-
 * Colors: #141414 | #CED4DA | #3CB371 | #8B4513 | #9AFF9A | #00FA9A
 */

/* CSS Variables */
:root {
    --w4788-bg-dark: #141414;
    --w4788-text-light: #CED4DA;
    --w4788-primary: #3CB371;
    --w4788-accent: #8B4513;
    --w4788-highlight: #9AFF9A;
    --w4788-glow: #00FA9A;
    --w4788-bg-card: #1a1a1a;
    --w4788-bg-hover: #252525;
    --w4788-border: #2a2a2a;
    --w4788-shadow: rgba(0, 250, 154, 0.1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w4788-bg-dark);
    color: var(--w4788-text-light);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.w4788-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 15px; }

/* Header */
.w4788-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w4788-bg-dark) 0%, rgba(20,20,20,0.95) 100%);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.w4788-header.w4788-scrolled { box-shadow: 0 2px 20px var(--w4788-shadow); }
.w4788-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.w4788-logo { font-size: 1.4rem; font-weight: 700; color: var(--w4788-glow); letter-spacing: 1px; }
.w4788-logo span { color: var(--w4788-primary); }
.w4788-header-actions { display: flex; gap: 10px; }
.w4788-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.w4788-btn-primary {
    background: linear-gradient(135deg, var(--w4788-primary) 0%, var(--w4788-glow) 100%);
    color: var(--w4788-bg-dark);
}
.w4788-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 15px var(--w4788-shadow); }
.w4788-btn-outline {
    background: transparent;
    border: 1px solid var(--w4788-primary);
    color: var(--w4788-primary);
}
.w4788-btn-outline:hover { background: var(--w4788-primary); color: var(--w4788-bg-dark); }
.w4788-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--w4788-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.w4788-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}
.w4788-menu-overlay.w4788-active { display: block; opacity: 1; }
.w4788-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--w4788-bg-card);
    z-index: 9999;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.w4788-mobile-menu.w4788-active { right: 0; }
.w4788-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--w4788-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}
.w4788-mobile-menu a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--w4788-border);
    color: var(--w4788-text-light);
    font-size: 1rem;
    transition: color 0.3s;
}
.w4788-mobile-menu a:hover { color: var(--w4788-glow); }

/* Main Content */
.w4788-main { padding-top: 70px; }
@media (max-width: 768px) {
    .w4788-main { padding-bottom: 80px; }
}

/* Hero Section */
.w4788-hero {
    background: linear-gradient(135deg, rgba(60,179,113,0.15) 0%, rgba(0,250,154,0.1) 100%);
    padding: 40px 15px;
    text-align: center;
}
.w4788-hero h1 {
    font-size: 1.8rem;
    color: var(--w4788-glow);
    margin-bottom: 15px;
    line-height: 1.3;
}
.w4788-hero p {
    font-size: 0.95rem;
    color: var(--w4788-text-light);
    margin-bottom: 25px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.w4788-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.w4788-hero-buttons .w4788-btn { padding: 12px 28px; font-size: 0.9rem; }

/* Carousel */
.w4788-carousel { position: relative; overflow: hidden; border-radius: 12px; margin: 20px 0; }
.w4788-carousel-slides { display: flex; transition: transform 0.5s ease; }
.w4788-slide { min-width: 100%; opacity: 0; transition: opacity 0.5s; position: absolute; top: 0; left: 0; }
.w4788-slide.w4788-active { opacity: 1; position: relative; }
.w4788-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.w4788-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.w4788-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--w4788-border);
    cursor: pointer;
    transition: background 0.3s;
}
.w4788-dot.w4788-active { background: var(--w4788-primary); }

/* Section Titles */
.w4788-section-title {
    font-size: 1.3rem;
    color: var(--w4788-glow);
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--w4788-primary);
}

/* Category Tabs */
.w4788-category-tabs { display: flex; gap: 8px; padding: 0 15px; overflow-x: auto; margin-bottom: 20px; }
.w4788-category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--w4788-bg-card);
    border: 1px solid var(--w4788-border);
    color: var(--w4788-text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}
.w4788-category-btn.w4788-active, .w4788-category-btn:hover {
    background: var(--w4788-primary);
    color: var(--w4788-bg-dark);
    border-color: var(--w4788-primary);
}

/* Game Grid */
.w4788-games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 15px; }
.w4788-game-card {
    background: var(--w4788-bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.w4788-game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--w4788-shadow); }
.w4788-game-card img { width: 100%; height: 100px; object-fit: cover; }
.w4788-game-card-title {
    padding: 8px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--w4788-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.w4788-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px 15px; }
.w4788-feature-card {
    background: var(--w4788-bg-card);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid var(--w4788-border);
    transition: border-color 0.3s;
}
.w4788-feature-card:hover { border-color: var(--w4788-primary); }
.w4788-feature-card i, .w4788-feature-card .material-icons {
    font-size: 2rem;
    color: var(--w4788-glow);
    margin-bottom: 10px;
}
.w4788-feature-card h3 { font-size: 1rem; color: var(--w4788-text-light); margin-bottom: 8px; }
.w4788-feature-card p { font-size: 0.8rem; color: var(--w4788-text-light); opacity: 0.8; }

/* CTA Section */
.w4788-cta {
    background: linear-gradient(135deg, var(--w4788-primary) 0%, var(--w4788-glow) 100%);
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 0;
}
.w4788-cta h2 { font-size: 1.5rem; color: var(--w4788-bg-dark); margin-bottom: 15px; }
.w4788-cta p { font-size: 0.95rem; color: var(--w4788-bg-dark); margin-bottom: 20px; opacity: 0.9; }
.w4788-cta .w4788-btn {
    background: var(--w4788-bg-dark);
    color: var(--w4788-glow);
    padding: 14px 35px;
    font-size: 1rem;
}

/* Footer */
.w4788-footer {
    background: var(--w4788-bg-card);
    padding: 40px 15px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--w4788-border);
}
.w4788-footer-logo { font-size: 1.3rem; color: var(--w4788-glow); margin-bottom: 15px; }
.w4788-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 25px; }
.w4788-footer-links h4 { color: var(--w4788-primary); font-size: 0.9rem; margin-bottom: 10px; }
.w4788-footer-links a { color: var(--w4788-text-light); font-size: 0.8rem; display: block; padding: 5px 0; opacity: 0.8; }
.w4788-footer-links a:hover { opacity: 1; color: var(--w4788-glow); }
.w4788-footer-partners { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 20px; padding: 15px 0; border-top: 1px solid var(--w4788-border); border-bottom: 1px solid var(--w4788-border); }
.w4788-footer-partners img { height: 25px; opacity: 0.7; filter: grayscale(1); transition: all 0.3s; }
.w4788-footer-partners img:hover { opacity: 1; filter: grayscale(0); }
.w4788-footer-copyright { text-align: center; font-size: 0.75rem; color: var(--w4788-text-light); opacity: 0.6; }

/* Bottom Navigation */
.w4788-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26,26,26,0.98) 0%, var(--w4788-bg-dark) 100%);
    border-top: 1px solid var(--w4788-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}
@media (min-width: 769px) { .w4788-bottom-nav { display: none; } }
.w4788-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--w4788-text-light);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
    min-height: 60px;
}
.w4788-nav-btn i, .w4788-nav-btn .material-icons, .w4788-nav-btn .bi {
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}
.w4788-nav-btn span { font-size: 10px; }
.w4788-nav-btn:hover, .w4788-nav-btn.w4788-active {
    color: var(--w4788-glow);
}
.w4788-nav-btn:hover i, .w4788-nav-btn:hover .material-icons, .w4788-nav-btn:hover .bi {
    transform: scale(1.15);
    color: var(--w4788-glow);
}

/* Toast */
.w4788-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--w4788-primary);
    color: var(--w4788-bg-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}
.w4788-toast.w4788-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Animations */
@keyframes w4788fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.w4788-fade-in { animation: w4788fadeIn 0.4s ease forwards; }

/* Responsive */
@media (max-width: 430px) {
    .w4788-games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .w4788-game-card img { height: 90px; }
}
@media (min-width: 769px) {
    .w4788-container { max-width: 768px; }
    .w4788-hero { padding: 60px 20px; }
    .w4788-hero h1 { font-size: 2.5rem; }
    .w4788-games-grid { grid-template-columns: repeat(5, 1fr); }
    .w4788-features { grid-template-columns: repeat(4, 1fr); }
    .w4788-footer-links { grid-template-columns: repeat(4, 1fr); }
}
