/**
 * Nustar Rewards - Main Stylesheet
 * All classes use prefix 'g525-' for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --g525-primary: #FF91A4;
    --g525-secondary: #FF8000;
    --g525-bg-dark: #0D1117;
    --g525-bg-light: #F0F0F0;
    --g525-accent-green: #9AFF9A;
    --g525-accent-teal: #8FBC8F;
    --g525-text-light: #ffffff;
    --g525-text-dark: #0D1117;
    --g525-header-height: 60px;
    --g525-bottom-nav-height: 60px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g525-bg-dark);
    color: var(--g525-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Header Styles */
.g525-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: var(--g525-header-height);
    background: linear-gradient(135deg, var(--g525-bg-dark) 0%, #1a1f2e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    border-bottom: 2px solid var(--g525-primary);
}

.g525-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g525-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g525-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g525-primary);
}

.g525-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g525-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.g525-btn-primary {
    background: linear-gradient(135deg, var(--g525-primary) 0%, var(--g525-secondary) 100%);
    color: var(--g525-text-dark);
}

.g525-btn-secondary {
    background: transparent;
    border: 2px solid var(--g525-primary);
    color: var(--g525-primary);
}

.g525-btn:hover {
    transform: scale(1.05);
}

.g525-menu-toggle {
    background: none;
    border: none;
    color: var(--g525-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g525-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g525-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 2px solid var(--g525-primary);
}

.g525-menu-active {
    right: 0;
}

.g525-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;
}

.g525-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g525-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g525-primary);
}

.g525-menu-title {
    font-size: 1.8rem;
    color: var(--g525-primary);
    font-weight: 700;
}

.g525-menu-close {
    background: none;
    border: none;
    color: var(--g525-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g525-menu-nav {
    list-style: none;
}

.g525-menu-item {
    margin-bottom: 1rem;
}

.g525-menu-link {
    display: block;
    padding: 1rem;
    color: var(--g525-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g525-menu-link:hover {
    background: rgba(255, 145, 164, 0.2);
    color: var(--g525-primary);
}

/* Main Content */
.g525-main {
    padding-top: var(--g525-header-height);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Slider/Carousel */
.g525-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.g525-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.g525-slide {
    min-width: 100%;
    cursor: pointer;
}

.g525-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.g525-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g525-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.g525-dot-active {
    background: var(--g525-primary);
}

/* Section Styles */
.g525-section {
    padding: 2rem 1rem;
}

.g525-section-title {
    font-size: 2rem;
    color: var(--g525-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.g525-section-subtitle {
    font-size: 1.6rem;
    color: var(--g525-accent-green);
    margin-bottom: 1rem;
}

/* Game Grid */
.g525-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.g525-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g525-game-item:hover {
    transform: scale(1.05);
}

.g525-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.g525-game-item:hover .g525-game-img {
    border-color: var(--g525-primary);
}

.g525-game-name {
    font-size: 1rem;
    color: var(--g525-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Label */
.g525-category-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--g525-primary) 0%, var(--g525-secondary) 100%);
    color: var(--g525-text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Content Card */
.g525-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 145, 164, 0.2);
}

.g525-card-title {
    font-size: 1.6rem;
    color: var(--g525-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.g525-card-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--g525-text-light);
}

/* Promo Link Styles */
.g525-promo-link {
    color: var(--g525-primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g525-promo-link:hover {
    color: var(--g525-secondary);
    text-decoration: underline;
}

.g525-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--g525-primary) 0%, var(--g525-secondary) 100%);
    color: var(--g525-text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g525-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 145, 164, 0.4);
}

/* Footer */
.g525-footer {
    background: linear-gradient(135deg, #1a1f2e 0%, var(--g525-bg-dark) 100%);
    padding: 2rem 1rem;
    border-top: 2px solid var(--g525-primary);
}

.g525-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g525-footer-link {
    color: var(--g525-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    transition: color 0.3s ease;
}

.g525-footer-link:hover {
    color: var(--g525-primary);
}

.g525-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.g525-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.g525-partner-img:hover {
    opacity: 1;
}

.g525-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.g525-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: var(--g525-bottom-nav-height);
    background: linear-gradient(135deg, var(--g525-bg-dark) 0%, #1a1f2e 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--g525-primary);
}

.g525-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g525-nav-item:hover {
    transform: scale(1.1);
}

.g525-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    color: var(--g525-text-light);
    transition: color 0.3s ease;
}

.g525-nav-item:hover .g525-nav-icon {
    color: var(--g525-primary);
}

.g525-nav-text {
    font-size: 10px;
    color: var(--g525-text-light);
    transition: color 0.3s ease;
}

.g525-nav-item:hover .g525-nav-text {
    color: var(--g525-primary);
}

.g525-nav-active .g525-nav-icon,
.g525-nav-active .g525-nav-text {
    color: var(--g525-primary);
}

/* Utility Classes */
.g525-text-center { text-align: center; }
.g525-text-primary { color: var(--g525-primary); }
.g525-text-orange { color: var(--g525-secondary); }
.g525-text-green { color: var(--g525-accent-green); }
.g525-mb-1 { margin-bottom: 1rem; }
.g525-mb-2 { margin-bottom: 2rem; }
.g525-mt-2 { margin-top: 2rem; }

/* List Styles */
.g525-list {
    list-style: none;
    padding-left: 0;
}

.g525-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 145, 164, 0.1);
    font-size: 1.3rem;
}

.g525-list-item:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.g525-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.g525-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--g525-primary);
    cursor: pointer;
}

.g525-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .g525-bottom-nav {
        display: none;
    }

    body {
        max-width: 100%;
    }

    .g525-header {
        max-width: 100%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .g525-main {
        padding-bottom: 80px;
    }
}
