/**
 * Nustar Apk - Main Stylesheet
 * Website: nustarapk.click
 * Prefix: w80c2-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --w80c2-primary: #1C2833;
    --w80c2-secondary: #FFEFD5;
    --w80c2-accent: #A9A9A9;
    --w80c2-gold: #D4AF37;
    --w80c2-success: #28a745;
    --w80c2-danger: #dc3545;
    --w80c2-bg: #1C2833;
    --w80c2-bg-light: #2C3E50;
    --w80c2-text: #FFEFD5;
    --w80c2-text-muted: #A9A9A9;
    --w80c2-border: rgba(255, 239, 213, 0.2);
    --w80c2-shadow: rgba(0, 0, 0, 0.3);
    --w80c2-gradient: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
    --w80c2-radius: 8px;
    --w80c2-radius-lg: 16px;
    --w80c2-transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--w80c2-bg);
    color: var(--w80c2-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    color: var(--w80c2-secondary);
    text-decoration: none;
    transition: var(--w80c2-transition);
}

a:hover {
    color: var(--w80c2-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.w80c2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w80c2-gradient);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--w80c2-shadow);
    transition: var(--w80c2-transition);
}

.w80c2-header-scrolled {
    background: rgba(28, 40, 51, 0.98);
    padding: 0.8rem 1.5rem;
}

.w80c2-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w80c2-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w80c2-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w80c2-text);
    white-space: nowrap;
}

.w80c2-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w80c2-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--w80c2-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w80c2-transition);
    border: none;
    text-align: center;
    white-space: nowrap;
}

.w80c2-btn-primary {
    background: var(--w80c2-gold);
    color: var(--w80c2-primary);
}

.w80c2-btn-primary:hover {
    background: #e6c02e;
    transform: scale(1.05);
}

.w80c2-btn-secondary {
    background: transparent;
    color: var(--w80c2-text);
    border: 1px solid var(--w80c2-border);
}

.w80c2-btn-secondary:hover {
    background: rgba(255, 239, 213, 0.1);
    border-color: var(--w80c2-gold);
}

.w80c2-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.w80c2-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--w80c2-text);
    transition: var(--w80c2-transition);
}

.w80c2-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.w80c2-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.w80c2-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.w80c2-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 430px;
    margin: 0 auto;
    background: rgba(28, 40, 51, 0.98);
    z-index: 9999;
    padding: 8rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.w80c2-menu-active {
    transform: translateX(0);
}

.w80c2-nav-list {
    list-style: none;
    padding: 0;
}

.w80c2-nav-item {
    border-bottom: 1px solid var(--w80c2-border);
}

.w80c2-nav-link {
    display: block;
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
    color: var(--w80c2-text);
    transition: var(--w80c2-transition);
}

.w80c2-nav-link:hover {
    background: rgba(255, 239, 213, 0.05);
    color: var(--w80c2-gold);
    padding-left: 1.5rem;
}

/* Main Content */
main {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Carousel Styles */
.w80c2-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--w80c2-radius-lg) var(--w80c2-radius-lg);
}

.w80c2-slides {
    position: relative;
    height: 200px;
}

.w80c2-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w80c2-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w80c2-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w80c2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 239, 213, 0.5);
    cursor: pointer;
    transition: var(--w80c2-transition);
}

.w80c2-dot-active {
    background: var(--w80c2-gold);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.w80c2-section {
    padding: 2rem 1.5rem;
}

.w80c2-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--w80c2-text);
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--w80c2-gold);
}

.w80c2-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--w80c2-text-muted);
}

.w80c2-content p {
    margin-bottom: 1rem;
}

/* Game Grid */
.w80c2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem;
}

.w80c2-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--w80c2-transition);
    border-radius: var(--w80c2-radius);
    padding: 0.5rem;
}

.w80c2-game-item:hover {
    background: rgba(255, 239, 213, 0.1);
    transform: translateY(-2px);
}

.w80c2-game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    border-radius: var(--w80c2-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--w80c2-shadow);
}

.w80c2-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w80c2-game-name {
    font-size: 1rem;
    color: var(--w80c2-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.w80c2-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w80c2-gold);
    margin: 2rem 0 1rem;
    padding: 0 1.5rem;
}

/* Features Grid */
.w80c2-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.w80c2-feature-card {
    background: var(--w80c2-bg-light);
    border-radius: var(--w80c2-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--w80c2-transition);
}

.w80c2-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--w80c2-shadow);
}

.w80c2-feature-icon {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    color: var(--w80c2-gold);
}

.w80c2-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--w80c2-text);
}

.w80c2-feature-text {
    font-size: 1.1rem;
    color: var(--w80c2-text-muted);
}

/* RTP Section */
.w80c2-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.w80c2-rtp-item {
    background: var(--w80c2-bg-light);
    border-radius: var(--w80c2-radius);
    padding: 1rem 0.5rem;
    text-align: center;
}

.w80c2-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w80c2-gold);
}

.w80c2-rtp-label {
    font-size: 1rem;
    color: var(--w80c2-text-muted);
}

/* CTA Button */
.w80c2-cta {
    text-align: center;
    padding: 2rem 1.5rem;
}

.w80c2-cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--w80c2-gold), #e6c02e);
    color: var(--w80c2-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--w80c2-transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.w80c2-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Footer */
.w80c2-footer {
    background: var(--w80c2-bg-light);
    padding: 2rem 1.5rem;
    padding-bottom: 8rem;
}

.w80c2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w80c2-footer-link {
    font-size: 1.2rem;
    color: var(--w80c2-text-muted);
}

.w80c2-footer-link:hover {
    color: var(--w80c2-gold);
}

.w80c2-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w80c2-partner-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: var(--w80c2-transition);
}

.w80c2-partner-logo:hover {
    opacity: 1;
}

.w80c2-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w80c2-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--w80c2-border);
}

/* Bottom Navigation */
.w80c2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2C3E50 0%, #1C2833 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--w80c2-shadow);
    padding: 0 0.5rem;
}

.w80c2-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--w80c2-transition);
    background: transparent;
    border: none;
    color: var(--w80c2-text-muted);
}

.w80c2-nav-btn:hover,
.w80c2-nav-btn-active {
    color: var(--w80c2-gold);
}

.w80c2-nav-btn:active {
    transform: scale(0.95);
}

.w80c2-nav-btn-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.w80c2-nav-btn-text {
    font-size: 10px;
    font-weight: 500;
}

/* Help Page Styles */
.w80c2-help-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.w80c2-faq-item {
    background: var(--w80c2-bg-light);
    border-radius: var(--w80c2-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.w80c2-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--w80c2-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w80c2-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--w80c2-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Promo Links */
.w80c2-promo-link {
    color: var(--w80c2-gold);
    font-weight: 600;
    cursor: pointer;
}

.w80c2-promo-link:hover {
    text-decoration: underline;
}

/* Utilities */
.w80c2-text-center { text-align: center; }
.w80c2-text-gold { color: var(--w80c2-gold); }
.w80c2-mb-1 { margin-bottom: 1rem; }
.w80c2-mb-2 { margin-bottom: 2rem; }
.w80c2-mt-2 { margin-top: 2rem; }

/* Desktop - Hide Bottom Nav */
@media (min-width: 769px) {
    .w80c2-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .w80c2-footer {
        padding-bottom: 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Touch Device Optimizations */
.w80c2-touch-device .w80c2-btn,
.w80c2-touch-device .w80c2-nav-btn,
.w80c2-touch-device .w80c2-game-item {
    min-height: 44px;
}
