/**
 * nustar.css - Main stylesheet for nustar.click
 * All classes use prefix "s321-" to avoid conflicts
 * Color palette: #1E1E1E | #F08080 | #B22222
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s321-bg-dark: #1E1E1E;
    --s321-primary: #F08080;
    --s321-accent: #B22222;
    --s321-text-light: #FFFFFF;
    --s321-text-muted: #CCCCCC;
    --s321-border: #333333;
    --s321-card-bg: #2A2A2A;
    --s321-gradient: linear-gradient(135deg, #B22222 0%, #F08080 100%);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--s321-bg-dark);
    color: var(--s321-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.s321-container {
    width: 100%;
    padding: 0 1.2rem;
    margin: 0 auto;
}

.s321-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.s321-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background-color: rgba(30, 30, 30, 0.98);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--s321-border);
    transition: all 0.3s ease;
}

.s321-header-scrolled {
    background-color: rgba(30, 30, 30, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.s321-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s321-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.s321-logo img {
    width: 28px;
    height: 28px;
}

.s321-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s321-primary);
    letter-spacing: 0.5px;
}

.s321-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s321-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.s321-btn-primary {
    background: var(--s321-gradient);
    color: var(--s321-text-light);
}

.s321-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 128, 128, 0.4);
}

.s321-btn-outline {
    background: transparent;
    color: var(--s321-primary);
    border: 1px solid var(--s321-primary);
}

.s321-btn-outline:hover {
    background: var(--s321-primary);
    color: var(--s321-bg-dark);
}

.s321-menu-btn {
    background: none;
    border: none;
    color: var(--s321-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
#pro73a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--s321-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--s321-border);
}

.pro73a-menu-open {
    right: 0 !important;
}

#pro73a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pro73a-overlay-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.s321-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--s321-border);
}

.s321-mobile-menu-close {
    background: none;
    border: none;
    color: var(--s321-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s321-mobile-menu-nav {
    padding: 1rem 0;
}

.s321-mobile-menu-nav a {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--s321-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--s321-border);
    transition: background 0.2s ease;
}

.s321-mobile-menu-nav a:hover {
    background-color: var(--s321-card-bg);
    color: var(--s321-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s321-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.s321-slides {
    position: relative;
    width: 100%;
}

.pro73a-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pro73a-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.s321-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pro73a-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro73a-dot-active {
    background: var(--s321-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Titles */
.s321-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s321-text-light);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--s321-primary);
}

.s321-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

/* Game Grid */
.s321-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.s321-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.s321-game-item:hover {
    transform: scale(1.05);
}

.s321-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.s321-game-name {
    font-size: 1rem;
    color: var(--s321-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Cards */
.s321-card {
    background-color: var(--s321-card-bg);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--s321-border);
}

.s321-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s321-primary);
    margin-bottom: 0.8rem;
}

.s321-card-content {
    color: var(--s321-text-muted);
    line-height: 1.6;
}

/* Promo Links */
.s321-promo-link {
    color: var(--s321-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.s321-promo-link:hover {
    color: var(--s321-text-light);
    text-decoration: underline;
}

/* Footer */
.s321-footer {
    background-color: var(--s321-card-bg);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--s321-border);
}

.s321-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.s321-footer-links a {
    color: var(--s321-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
}

.s321-footer-links a:hover {
    color: var(--s321-primary);
}

.s321-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.s321-partners img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.s321-partners img:hover {
    opacity: 1;
}

.s321-copyright {
    text-align: center;
    color: var(--s321-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s321-border);
}

/* Mobile Bottom Navigation */
.s321-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2A2A2A 0%, #1E1E1E 100%);
    border-top: 1px solid var(--s321-border);
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.s321-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--s321-text-muted);
}

.s321-bottom-nav-item:hover {
    color: var(--s321-primary);
    transform: scale(1.1);
}

.s321-bottom-nav-item.active {
    color: var(--s321-primary);
}

.s321-bottom-nav-item i,
.s321-bottom-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.s321-bottom-nav-item span.iconify {
    font-size: 22px;
    margin-bottom: 2px;
}

.s321-bottom-nav-label {
    font-size: 10px;
    text-align: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s321-bottom-nav {
        display: none;
    }
}

/* FAQ Section */
.s321-faq-item {
    background-color: var(--s321-card-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.s321-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--s321-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s321-faq-answer {
    padding: 0 1rem 1rem;
    color: var(--s321-text-muted);
    font-size: 1.2rem;
}

/* Features Grid */
.s321-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.s321-feature-item {
    background-color: var(--s321-card-bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.s321-feature-icon {
    font-size: 2.4rem;
    color: var(--s321-primary);
    margin-bottom: 0.6rem;
}

.s321-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--s321-text-light);
    margin-bottom: 0.4rem;
}

.s321-feature-desc {
    font-size: 1rem;
    color: var(--s321-text-muted);
}

/* Promotional Banner */
.s321-promo-banner {
    background: var(--s321-gradient);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    margin: 1rem;
}

.s321-promo-banner h3 {
    color: var(--s321-text-light);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.s321-promo-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .s321-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s321-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.s321-text-center { text-align: center; }
.s321-text-primary { color: var(--s321-primary); }
.s321-mb-1 { margin-bottom: 1rem; }
.s321-mb-2 { margin-bottom: 2rem; }
.s321-p-1 { padding: 1rem; }
