/**
 * Nustar Gaming Platform - Main Stylesheet
 * Website: nustar.sbs
 * Prefix: g049-
 * Colors: #3A3A3A (Dark Gray), #FFCC02 (Yellow/Gold), #E5E5E5 (Light Gray), #FFA500 (Orange)
 */

/* CSS Variables */
:root {
    --g049-primary: #3A3A3A;
    --g049-accent-1: #FFCC02;
    --g049-accent-2: #E5E5E5;
    --g049-accent-3: #FFA500;
    --g049-white: #FFFFFF;
    --g049-black: #1A1A1A;
    --g049-text-dark: #2D2D2D;
    --g049-text-light: #F5F5F5;
    --g049-bg-dark: #1E1E1E;
    --g049-bg-card: #2A2A2A;
    --g049-border: #444444;
    --g049-gradient-gold: linear-gradient(135deg, #FFCC02 0%, #FFA500 100%);
    --g049-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g049-shadow-hover: 0 8px 30px rgba(255, 204, 2, 0.3);
    --g049-radius: 12px;
    --g049-radius-sm: 8px;
    --g049-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--g049-bg-dark);
    color: var(--g049-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.g049-no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g049-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.g049-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.g049-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g049-border);
    transition: var(--g049-transition);
}

.g049-header-scrolled {
    background: rgba(30, 30, 30, 0.99);
    box-shadow: var(--g049-shadow);
}

.g049-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.g049-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g049-logo img {
    height: 36px;
    width: auto;
}

.g049-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--g049-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g049-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g049-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--g049-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--g049-transition);
    border: none;
    gap: 6px;
}

.g049-btn-primary {
    background: var(--g049-gradient-gold);
    color: var(--g049-black);
}

.g049-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--g049-shadow-hover);
}

.g049-btn-secondary {
    background: transparent;
    color: var(--g049-accent-1);
    border: 2px solid var(--g049-accent-1);
}

.g049-btn-secondary:hover {
    background: var(--g049-accent-1);
    color: var(--g049-black);
}

.g049-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g049-accent-1);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Desktop Navigation */
.g049-desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.g049-nav-link {
    color: var(--g049-text-light);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.g049-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g049-accent-1);
    transition: width 0.3s ease;
}

.g049-nav-link:hover::after {
    width: 100%;
}

.g049-nav-link:hover {
    color: var(--g049-accent-1);
}

/* Mobile Menu */
.g049-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--g049-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    overflow-y: auto;
    border-left: 1px solid var(--g049-border);
}

.g049-mobile-menu.g049-menu-active {
    right: 0;
}

.g049-mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--g049-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.g049-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g049-mobile-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--g049-text-light);
    font-weight: 500;
    border-radius: var(--g049-radius-sm);
    transition: var(--g049-transition);
}

.g049-mobile-nav-link:hover {
    background: var(--g049-bg-card);
    color: var(--g049-accent-1);
}

/* Menu Overlay */
.g049-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: var(--g049-transition);
}

.g049-menu-overlay.g049-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero/Carousel Section */
.g049-hero {
    position: relative;
    overflow: hidden;
}

.g049-carousel {
    position: relative;
    height: 220px;
}

@media (min-width: 769px) {
    .g049-carousel {
        height: 400px;
    }
}

.g049-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g049-slide.g049-slide-active {
    opacity: 1;
}

.g049-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g049-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.g049-slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g049-accent-1);
    margin-bottom: 8px;
}

@media (min-width: 769px) {
    .g049-slide-title {
        font-size: 2.5rem;
    }
}

.g049-slide-desc {
    font-size: 0.9rem;
    color: var(--g049-text-light);
}

/* Section Styles */
.g049-section {
    padding: 40px 0;
}

@media (min-width: 769px) {
    .g049-section {
        padding: 60px 0;
    }
}

.g049-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.g049-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--g049-gradient-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

@media (min-width: 769px) {
    .g049-section-title {
        font-size: 2rem;
    }
}

/* Game Categories Tabs */
.g049-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.g049-tab-btn {
    padding: 10px 20px;
    background: var(--g049-bg-card);
    color: var(--g049-text-light);
    border: 1px solid var(--g049-border);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--g049-transition);
}

.g049-tab-btn:hover,
.g049-tab-btn.g049-tab-btn-active {
    background: var(--g049-gradient-gold);
    color: var(--g049-black);
    border-color: transparent;
}

/* Game Grid */
.g049-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .g049-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 769px) {
    .g049-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .g049-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.g049-game-card {
    position: relative;
    background: var(--g049-bg-card);
    border-radius: var(--g049-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--g049-transition);
    border: 1px solid var(--g049-border);
}

.g049-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g049-shadow-hover);
    border-color: var(--g049-accent-1);
}

.g049-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g049-game-card-name {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.5);
}

.g049-game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--g049-transition);
}

.g049-game-card:hover .g049-game-card-overlay {
    opacity: 1;
}

.g049-play-btn {
    padding: 10px 24px;
    background: var(--g049-gradient-gold);
    color: var(--g049-black);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Tab Content */
.g049-tab-content {
    display: none;
}

.g049-tab-content.g049-tab-content-active {
    display: block;
}

/* Info Sections */
.g049-info-section {
    background: var(--g049-bg-card);
    border-radius: var(--g049-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--g049-border);
}

.g049-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--g049-accent-1);
    margin-bottom: 16px;
}

.g049-info-text {
    color: var(--g049-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.g049-info-text p {
    margin-bottom: 12px;
}

.g049-info-text ul,
.g049-info-text ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.g049-info-text li {
    margin-bottom: 8px;
    list-style: disc;
}

.g049-info-text ol li {
    list-style: decimal;
}

/* FAQ Section */
.g049-faq-item {
    background: var(--g049-bg-card);
    border-radius: var(--g049-radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--g049-border);
    overflow: hidden;
}

.g049-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--g049-accent-1);
}

.g049-faq-question i {
    transition: transform 0.3s ease;
}

.g049-faq-answer {
    padding: 0 20px 16px;
    color: var(--g049-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Partners Section */
.g049-partners {
    background: var(--g049-bg-card);
    padding: 40px 0;
}

.g049-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (min-width: 769px) {
    .g049-partners-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.g049-partner-item {
    background: var(--g049-white);
    border-radius: var(--g049-radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g049-partner-item img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--g049-transition);
}

.g049-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.g049-footer {
    background: var(--g049-black);
    padding: 40px 0 24px;
    border-top: 1px solid var(--g049-border);
}

.g049-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 769px) {
    .g049-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

.g049-footer-brand {
    margin-bottom: 16px;
}

.g049-footer-desc {
    color: var(--g049-accent-2);
    font-size: 0.9rem;
    line-height: 1.7;
}

.g049-footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--g049-accent-1);
    margin-bottom: 16px;
}

.g049-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g049-footer-link {
    color: var(--g049-accent-2);
    font-size: 0.9rem;
    transition: var(--g049-transition);
}

.g049-footer-link:hover {
    color: var(--g049-accent-1);
}

.g049-footer-bottom {
    border-top: 1px solid var(--g049-border);
    padding-top: 20px;
    text-align: center;
}

.g049-copyright {
    color: var(--g049-accent-2);
    font-size: 0.85rem;
}

/* Mobile Bottom Navigation */
.g049-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--g049-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 4px 0;
}

@media (min-width: 769px) {
    .g049-bottom-nav {
        display: none;
    }
}

.g049-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    color: var(--g049-accent-2);
    cursor: pointer;
    transition: var(--g049-transition);
    border-radius: 8px;
    padding: 4px 8px;
}

.g049-nav-item:hover,
.g049-nav-item.g049-nav-item-active {
    color: var(--g049-accent-1);
    background: rgba(255, 204, 2, 0.1);
}

.g049-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.g049-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* CTA Banner */
.g049-cta-banner {
    background: var(--g049-gradient-gold);
    padding: 24px;
    border-radius: var(--g049-radius);
    text-align: center;
    margin: 32px 0;
}

.g049-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--g049-black);
    margin-bottom: 12px;
}

.g049-cta-text {
    color: var(--g049-primary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.g049-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--g049-black);
    color: var(--g049-accent-1);
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
}

.g049-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--g049-shadow);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .g049-desktop-nav {
        display: none;
    }

    .g049-menu-toggle {
        display: block;
    }

    .g049-header-actions .g049-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .g049-header-actions .g049-btn span {
        display: none;
    }
}

@media (min-width: 769px) {
    .g049-header-inner {
        padding: 12px 24px;
    }

    .g049-container {
        padding: 0 24px;
    }
}

/* Utility Classes */
.g049-text-center {
    text-align: center;
}

.g049-text-gold {
    color: var(--g049-accent-1);
}

.g049-mb-16 {
    margin-bottom: 16px;
}

.g049-mb-24 {
    margin-bottom: 24px;
}

.g049-mb-32 {
    margin-bottom: 32px;
}
