/**
 * NuStar PAGCOR - Theme CSS
 * All classes use w4e79- prefix for namespace isolation
 * Color scheme: #F8F8FF | #000080 | #0A0A0A | #0000CD
 */

/* CSS Variables */
:root {
    --w4e79-primary: #0000CD;
    --w4e79-secondary: #000080;
    --w4e79-bg: #0A0A0A;
    --w4e79-bg-light: #1a1a1a;
    --w4e79-text: #F8F8FF;
    --w4e79-text-muted: #b0b0b0;
    --w4e79-accent: #4169E1;
    --w4e79-success: #00C851;
    --w4e79-warning: #FFD700;
    --w4e79-danger: #FF4444;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w4e79-text);
    background-color: var(--w4e79-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.w4e79-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.w4e79-wrapper {
    background-color: var(--w4e79-bg);
    min-height: 100vh;
}

/* Header */
.w4e79-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w4e79-secondary) 0%, var(--w4e79-primary) 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.w4e79-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.w4e79-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--w4e79-text);
    flex: 1;
}

.w4e79-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.w4e79-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w4e79-text);
    white-space: nowrap;
}

.w4e79-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.w4e79-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.w4e79-btn-primary {
    background: linear-gradient(135deg, var(--w4e79-warning) 0%, #FFA500 100%);
    color: var(--w4e79-bg);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.w4e79-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.w4e79-btn-secondary {
    background: transparent;
    color: var(--w4e79-text);
    border: 2px solid var(--w4e79-text);
}

.w4e79-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.w4e79-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--w4e79-text);
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.w4e79-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.w4e79-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w4e79-secondary) 0%, var(--w4e79-bg) 100%);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.w4e79-menu-open {
    display: block;
}

.w4e79-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--w4e79-text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
    font-size: 1.4rem;
}

.w4e79-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.w4e79-menu-link i {
    margin-right: 1rem;
    font-size: 1.6rem;
}

/* Main Content */
.w4e79-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.w4e79-section {
    padding: 2rem 0;
}

.w4e79-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4e79-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.w4e79-section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w4e79-text);
    margin-bottom: 1rem;
}

/* Carousel */
.w4e79-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.w4e79-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.w4e79-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w4e79-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w4e79-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4e79-carousel-dot.w4e79-active {
    background: var(--w4e79-warning);
    width: 24px;
    border-radius: 4px;
}

/* Game Grid */
.w4e79-game-category {
    margin-bottom: 2.5rem;
}

.w4e79-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4e79-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w4e79-category-title i {
    color: var(--w4e79-warning);
}

.w4e79-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w4e79-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.w4e79-game-item:hover {
    transform: scale(1.05);
}

.w4e79-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--w4e79-bg-light);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.w4e79-game-item:hover .w4e79-game-icon {
    border-color: var(--w4e79-warning);
}

.w4e79-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w4e79-game-name {
    font-size: 1rem;
    color: var(--w4e79-text);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Cards */
.w4e79-card {
    background: var(--w4e79-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.w4e79-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w4e79-text);
    margin-bottom: 1rem;
}

.w4e79-card-content {
    font-size: 1.4rem;
    color: var(--w4e79-text-muted);
    line-height: 1.6;
}

.w4e79-card-content p {
    margin-bottom: 1rem;
}

.w4e79-card-content a {
    color: var(--w4e79-warning);
    text-decoration: none;
    font-weight: 600;
}

.w4e79-card-content a:hover {
    text-decoration: underline;
}

/* Feature List */
.w4e79-feature-list {
    list-style: none;
}

.w4e79-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.w4e79-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--w4e79-primary) 0%, var(--w4e79-accent) 100%);
    border-radius: 8px;
    color: var(--w4e79-text);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.w4e79-feature-text {
    flex: 1;
}

.w4e79-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4e79-text);
    margin-bottom: 0.3rem;
}

.w4e79-feature-desc {
    font-size: 1.2rem;
    color: var(--w4e79-text-muted);
}

/* Promo Buttons */
.w4e79-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--w4e79-warning) 0%, #FFA500 100%);
    color: var(--w4e79-bg);
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.w4e79-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.w4e79-promo-btn i {
    font-size: 1.6rem;
}

/* Mobile Bottom Navigation */
.w4e79-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w4e79-secondary) 0%, var(--w4e79-bg) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.w4e79-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--w4e79-text-muted);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.w4e79-nav-item:hover,
.w4e79-nav-item.w4e79-active {
    color: var(--w4e79-warning);
    background: rgba(255, 215, 0, 0.1);
}

.w4e79-nav-icon {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.w4e79-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.w4e79-footer {
    background: var(--w4e79-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.w4e79-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w4e79-footer-link {
    color: var(--w4e79-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.w4e79-footer-link:hover {
    color: var(--w4e79-warning);
    background: rgba(255, 255, 255, 0.05);
}

.w4e79-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w4e79-partner-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w4e79-partner-logo:hover {
    opacity: 1;
}

.w4e79-copyright {
    text-align: center;
    color: var(--w4e79-text-muted);
    font-size: 1.1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ Styles */
.w4e79-faq-item {
    margin-bottom: 1rem;
}

.w4e79-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4e79-warning);
    margin-bottom: 0.5rem;
}

.w4e79-faq-answer {
    font-size: 1.3rem;
    color: var(--w4e79-text-muted);
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid var(--w4e79-primary);
}

/* Responsive */
@media (min-width: 769px) {
    .w4e79-bottom-nav {
        display: none;
    }

    .w4e79-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .w4e79-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.w4e79-text-center {
    text-align: center;
}

.w4e79-mb-1 {
    margin-bottom: 1rem;
}

.w4e79-mb-2 {
    margin-bottom: 2rem;
}

.w4e79-mt-1 {
    margin-top: 1rem;
}

.w4e79-mt-2 {
    margin-top: 2rem;
}
