/**
 * Ninong Gaming Apk - Layout Stylesheet
 * All classes use prefix: w4474-
 * Mobile-first responsive design (max-width: 430px)
 * @version 1.0.0
 */

/* CSS Variables with prefix */
:root {
    --w4474-primary: #F5DEB3;
    --w4474-secondary: #F8F8FF;
    --w4474-bg-dark: #2F2F2F;
    --w4474-bg-darker: #3A3A3A;
    --w4474-border: #C0C0C0;
    --w4474-text-light: #F8F8FF;
    --w4474-text-muted: #C0C0C0;
    --w4474-accent: #F5DEB3;
    --w4474-gold: #DAA520;
    --w4474-success: #4CAF50;
    --w4474-gradient-dark: linear-gradient(135deg, #2F2F2F 0%, #3A3A3A 100%);
    --w4474-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --w4474-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --w4474-radius: 8px;
    --w4474-radius-lg: 12px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--w4474-bg-dark);
    color: var(--w4474-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.w4474-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w4474-wrapper {
    padding: 2rem 0;
}

/* Header */
.w4474-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w4474-bg-darker);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--w4474-shadow);
    max-width: 430px;
    margin: 0 auto;
}

.w4474-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w4474-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--w4474-primary);
}

.w4474-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w4474-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w4474-primary);
}

.w4474-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w4474-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w4474-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    min-height: 36px;
}

.w4474-btn-primary {
    background: var(--w4474-primary);
    color: var(--w4474-bg-dark);
}

.w4474-btn-primary:hover {
    background: var(--w4474-gold);
    transform: translateY(-2px);
}

.w4474-btn-secondary {
    background: transparent;
    color: var(--w4474-primary);
    border: 1px solid var(--w4474-primary);
}

.w4474-btn-secondary:hover {
    background: var(--w4474-primary);
    color: var(--w4474-bg-dark);
}

.w4474-menu-btn {
    background: transparent;
    border: none;
    color: var(--w4474-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w4474-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--w4474-bg-darker);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 430px;
    margin: 0 auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.w4474-menu-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.w4474-mobile-menu ul {
    list-style: none;
}

.w4474-mobile-menu li {
    border-bottom: 1px solid rgba(245, 222, 179, 0.1);
}

.w4474-mobile-menu a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--w4474-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.w4474-mobile-menu a:hover {
    color: var(--w4474-primary);
    background: rgba(245, 222, 179, 0.1);
}

/* Main Content */
.w4474-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.w4474-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--w4474-radius-lg);
    margin: 1rem 0;
}

.w4474-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w4474-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.w4474-slide-active {
    opacity: 1;
    position: relative;
}

.w4474-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--w4474-radius-lg);
    cursor: pointer;
}

.w4474-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.w4474-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.w4474-dot-active {
    background: var(--w4474-primary);
}

/* Section Styles */
.w4474-section {
    padding: 2rem 1.5rem;
}

.w4474-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4474-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.w4474-section-subtitle {
    font-size: 1.4rem;
    color: var(--w4474-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.w4474-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w4474-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w4474-game-item:hover {
    transform: scale(1.05);
}

.w4474-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--w4474-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.w4474-game-name {
    font-size: 1.1rem;
    color: var(--w4474-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.w4474-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w4474-accent);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w4474-primary);
    display: inline-block;
}

/* Cards */
.w4474-card {
    background: var(--w4474-bg-darker);
    border-radius: var(--w4474-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--w4474-shadow);
}

.w4474-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w4474-primary);
    margin-bottom: 1rem;
}

.w4474-card-text {
    font-size: 1.3rem;
    color: var(--w4474-text-muted);
    line-height: 1.6;
}

/* Feature List */
.w4474-feature-list {
    list-style: none;
}

.w4474-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 222, 179, 0.1);
}

.w4474-feature-icon {
    font-size: 2rem;
    color: var(--w4474-primary);
}

.w4474-feature-content h4 {
    font-size: 1.4rem;
    color: var(--w4474-text-light);
    margin-bottom: 0.3rem;
}

.w4474-feature-content p {
    font-size: 1.2rem;
    color: var(--w4474-text-muted);
}

/* Promo Link */
.w4474-promo-link {
    color: var(--w4474-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w4474-promo-link:hover {
    color: var(--w4474-gold);
    text-decoration: underline;
}

.w4474-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w4474-primary) 0%, var(--w4474-gold) 100%);
    color: var(--w4474-bg-dark);
    padding: 1rem 2rem;
    border-radius: var(--w4474-radius-lg);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--w4474-shadow);
}

.w4474-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--w4474-shadow-lg);
}

/* Footer */
.w4474-footer {
    background: var(--w4474-bg-darker);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.w4474-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w4474-footer-link {
    color: var(--w4474-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.w4474-footer-link:hover {
    color: var(--w4474-primary);
}

.w4474-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.w4474-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w4474-partner-img:hover {
    opacity: 1;
}

.w4474-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w4474-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 222, 179, 0.1);
}

/* Bottom Navigation */
.w4474-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w4474-bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    max-width: 430px;
    margin: 0 auto;
}

.w4474-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--w4474-text-muted);
}

.w4474-bottom-nav-item:hover,
.w4474-nav-active {
    color: var(--w4474-primary);
    transform: scale(1.1);
}

.w4474-bottom-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.w4474-bottom-nav-item span {
    font-size: 1rem;
}

/* Desktop - Hide bottom nav */
@media (min-width: 769px) {
    .w4474-bottom-nav {
        display: none;
    }

    .w4474-footer {
        padding-bottom: 2rem;
    }

    .w4474-main {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.w4474-text-center {
    text-align: center;
}

.w4474-text-primary {
    color: var(--w4474-primary);
}

.w4474-mb-1 {
    margin-bottom: 1rem;
}

.w4474-mb-2 {
    margin-bottom: 2rem;
}

.w4474-mt-2 {
    margin-top: 2rem;
}

.w4474-py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* RTP Section */
.w4474-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w4474-rtp-item {
    background: rgba(245, 222, 179, 0.1);
    padding: 1rem;
    border-radius: var(--w4474-radius);
    text-align: center;
}

.w4474-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4474-primary);
}

.w4474-rtp-label {
    font-size: 1.2rem;
    color: var(--w4474-text-muted);
}

/* FAQ Section */
.w4474-faq-item {
    background: var(--w4474-bg-darker);
    border-radius: var(--w4474-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.w4474-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4474-primary);
    margin-bottom: 0.5rem;
}

.w4474-faq-answer {
    font-size: 1.3rem;
    color: var(--w4474-text-muted);
    line-height: 1.5;
}

/* Achievements */
.w4474-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(245, 222, 179, 0.1);
    border-radius: var(--w4474-radius);
    margin-bottom: 0.8rem;
}

.w4474-achievement-icon {
    font-size: 2.4rem;
}

.w4474-achievement-text {
    font-size: 1.3rem;
    color: var(--w4474-text-light);
}

/* Security Section */
.w4474-security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.w4474-security-icon {
    font-size: 2rem;
    color: var(--w4474-success);
}

/* Tricks Section */
.w4474-trick {
    background: var(--w4474-bg-darker);
    padding: 1.2rem;
    border-radius: var(--w4474-radius);
    margin-bottom: 1rem;
    border-left: 3px solid var(--w4474-primary);
}

.w4474-trick-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w4474-primary);
    margin-bottom: 0.5rem;
}

.w4474-trick-text {
    font-size: 1.2rem;
    color: var(--w4474-text-muted);
}

/* H1 Title */
.w4474-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--w4474-primary);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Promo Section */
.w4474-promo-section {
    background: linear-gradient(135deg, rgba(245, 222, 179, 0.2) 0%, rgba(218, 165, 32, 0.1) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--w4474-radius-lg);
    text-align: center;
    margin: 2rem 0;
}

.w4474-promo-section h3 {
    font-size: 1.8rem;
    color: var(--w4474-primary);
    margin-bottom: 1rem;
}

.w4474-promo-section p {
    font-size: 1.3rem;
    color: var(--w4474-text-muted);
    margin-bottom: 1.5rem;
}
