/**
 * NuStar App - Core Stylesheet
 * Prefix: g41a-
 * Color Palette: #212F3D (Dark), #AFEEEE (Cyan), #F5F5F5 (Light)
 */

/* CSS Variables */
:root {
    --g41a-primary: #AFEEEE;
    --g41a-secondary: #212F3D;
    --g41a-accent: #00CED1;
    --g41a-bg: #212F3D;
    --g41a-bg-light: #1a252f;
    --g41a-text: #F5F5F5;
    --g41a-text-muted: #b0b0b0;
    --g41a-border: #3a4a5a;
    --g41a-success: #2ecc71;
    --g41a-warning: #f39c12;
    --g41a-danger: #e74c3c;
    --g41a-gradient: linear-gradient(135deg, #212F3D 0%, #1a252f 100%);
    --g41a-header-height: 56px;
    --g41a-bottom-nav-height: 60px;
}

/* Reset & Base */
* {
    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: var(--g41a-bg);
    color: var(--g41a-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.g41a-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.g41a-wrapper {
    padding: 1rem;
}

/* Header */
.g41a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g41a-header-height);
    background: var(--g41a-bg-light);
    border-bottom: 1px solid var(--g41a-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.g41a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g41a-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g41a-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g41a-primary);
    letter-spacing: 0.5px;
}

.g41a-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g41a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
    min-width: 70px;
}

.g41a-btn-primary {
    background: var(--g41a-primary);
    color: var(--g41a-secondary);
}

.g41a-btn-primary:hover {
    background: #8fd9d9;
    transform: translateY(-1px);
}

.g41a-btn-outline {
    background: transparent;
    border: 1px solid var(--g41a-primary);
    color: var(--g41a-primary);
}

.g41a-btn-outline:hover {
    background: rgba(175, 238, 238, 0.1);
}

.g41a-menu-btn {
    background: none;
    border: none;
    color: var(--g41a-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g41a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g41a-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
}

.g41a-menu-active {
    right: 0 !important;
}

.g41a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g41a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g41a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g41a-border);
}

.g41a-menu-close {
    background: none;
    border: none;
    color: var(--g41a-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.g41a-menu-nav {
    list-style: none;
}

.g41a-menu-nav li {
    margin-bottom: 0.8rem;
}

.g41a-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--g41a-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1.4rem;
}

.g41a-menu-nav a:hover {
    background: rgba(175, 238, 238, 0.1);
    color: var(--g41a-primary);
}

.g41a-menu-nav i {
    width: 24px;
    text-align: center;
    font-size: 1.6rem;
}

/* Main Content */
.g41a-main {
    padding-top: var(--g41a-header-height);
    padding-bottom: 80px;
}

/* Slider/Carousel */
.g41a-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.g41a-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.g41a-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.g41a-slide-active {
    opacity: 1;
    z-index: 1;
}

.g41a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g41a-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.g41a-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.g41a-dot-active {
    background: var(--g41a-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Titles */
.g41a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g41a-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--g41a-primary);
}

.g41a-section-subtitle {
    font-size: 1.4rem;
    color: var(--g41a-text-muted);
    margin-bottom: 1rem;
}

/* Game Grid */
.g41a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem;
}

.g41a-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.g41a-game-item:hover {
    transform: scale(1.05);
}

.g41a-game-img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--g41a-border);
    transition: border-color 0.2s;
}

.g41a-game-item:hover .g41a-game-img {
    border-color: var(--g41a-primary);
}

.g41a-game-name {
    font-size: 1rem;
    color: var(--g41a-text);
    text-align: center;
    margin-top: 0.4rem;
    line-height: 1.2;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.g41a-card {
    background: var(--g41a-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--g41a-border);
}

.g41a-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g41a-primary);
    margin-bottom: 0.8rem;
}

.g41a-card-content {
    font-size: 1.3rem;
    color: var(--g41a-text-muted);
    line-height: 1.6;
}

/* Footer */
.g41a-footer {
    background: var(--g41a-bg-light);
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--g41a-border);
    margin-top: 2rem;
}

.g41a-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g41a-footer-brand p {
    font-size: 1.2rem;
    color: var(--g41a-text-muted);
    line-height: 1.6;
}

.g41a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.g41a-footer-link {
    padding: 0.5rem 1rem;
    background: var(--g41a-bg);
    border-radius: 6px;
    color: var(--g41a-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.g41a-footer-link:hover {
    background: var(--g41a-primary);
    color: var(--g41a-secondary);
}

.g41a-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--g41a-border);
    border-bottom: 1px solid var(--g41a-border);
}

.g41a-footer-nav a {
    color: var(--g41a-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
}

.g41a-footer-nav a:hover {
    color: var(--g41a-primary);
}

.g41a-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g41a-text-muted);
    margin-top: 1rem;
}

/* Bottom Navigation */
.g41a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g41a-bottom-nav-height);
    background: linear-gradient(180deg, #1a252f 0%, #0f161d 100%);
    border-top: 1px solid var(--g41a-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.g41a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    text-decoration: none;
    color: var(--g41a-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.4rem;
    border-radius: 8px;
}

.g41a-nav-item:hover,
.g41a-nav-item.active {
    color: var(--g41a-primary);
    background: rgba(175, 238, 238, 0.1);
}

.g41a-nav-item i,
.g41a-nav-item .material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

.g41a-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Banner */
.g41a-promo-banner {
    background: linear-gradient(135deg, #AFEEEE 0%, #00CED1 100%);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
}

.g41a-promo-banner h3 {
    color: var(--g41a-secondary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.g41a-promo-banner p {
    color: var(--g41a-secondary);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Feature List */
.g41a-feature-list {
    list-style: none;
    padding: 0;
}

.g41a-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--g41a-border);
}

.g41a-feature-item:last-child {
    border-bottom: none;
}

.g41a-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(175, 238, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g41a-primary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.g41a-feature-text h4 {
    font-size: 1.4rem;
    color: var(--g41a-text);
    margin-bottom: 0.3rem;
}

.g41a-feature-text p {
    font-size: 1.2rem;
    color: var(--g41a-text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.g41a-faq-item {
    background: var(--g41a-bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.g41a-faq-question {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g41a-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g41a-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--g41a-text-muted);
    line-height: 1.6;
}

/* Testimonials */
.g41a-testimonial {
    background: var(--g41a-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--g41a-primary);
}

.g41a-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.g41a-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g41a-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g41a-secondary);
    font-weight: 700;
    font-size: 1.4rem;
}

.g41a-testimonial-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g41a-text);
}

.g41a-testimonial-text {
    font-size: 1.2rem;
    color: var(--g41a-text-muted);
    line-height: 1.6;
}

/* Payment Methods */
.g41a-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.g41a-payment-item {
    background: var(--g41a-bg-light);
    border: 1px solid var(--g41a-border);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: var(--g41a-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (min-width: 769px) {
    .g41a-bottom-nav {
        display: none;
    }

    .g41a-main {
        padding-bottom: 2rem;
    }

    .g41a-container {
        max-width: 768px;
    }

    .g41a-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utilities */
.g41a-text-center { text-align: center; }
.g41a-text-primary { color: var(--g41a-primary); }
.g41a-mt-1 { margin-top: 1rem; }
.g41a-mb-1 { margin-bottom: 1rem; }
.g41a-py-1 { padding-top: 1rem; padding-bottom: 1rem; }

/* Winners Showcase */
.g41a-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.g41a-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--g41a-bg-light);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
}

.g41a-winner-game {
    color: var(--g41a-primary);
    font-weight: 600;
}

.g41a-winner-amount {
    color: var(--g41a-success);
    font-weight: 700;
}

/* Link Styles */
.g41a-link {
    color: var(--g41a-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.g41a-link:hover {
    color: #8fd9d9;
    text-decoration: underline;
}

/* H1 Title */
.g41a-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g41a-primary);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Category Badge */
.g41a-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(175, 238, 238, 0.15);
    color: var(--g41a-primary);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
