/**
 * NINOGAME Layout Stylesheet
 * All classes use sd8e- prefix for namespace isolation
 * Mobile-first design with max-width 430px
 * Color palette: #FF7F50 | #0C0C0C | #FFCCCB
 */

/* CSS Variables */
:root {
    --sd8e-primary: #FF7F50;
    --sd8e-bg: #0C0C0C;
    --sd8e-text: #FFCCCB;
    --sd8e-accent: #FF6347;
    --sd8e-card-bg: #1a1a1a;
    --sd8e-border: #333;
    --sd8e-gradient: linear-gradient(135deg, #FF7F50 0%, #FF6347 100%);
}

/* Base Styles */
* {
    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(--sd8e-bg);
    color: var(--sd8e-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.sd8e-container {
    width: 100%;
    padding: 0 1.2rem;
    margin: 0 auto;
}

.sd8e-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header Styles */
.sd8e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--sd8e-bg);
    border-bottom: 1px solid var(--sd8e-border);
    z-index: 1000;
    padding: 0.8rem 1rem;
}

.sd8e-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.sd8e-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.sd8e-logo img {
    width: 28px;
    height: 28px;
}

.sd8e-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sd8e-primary);
}

.sd8e-header-btns {
    display: flex;
    gap: 0.6rem;
}

.sd8e-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.sd8e-btn-primary {
    background: var(--sd8e-gradient);
    color: #fff;
}

.sd8e-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.4);
}

.sd8e-btn-outline {
    background: transparent;
    color: var(--sd8e-primary);
    border: 2px solid var(--sd8e-primary);
}

.sd8e-btn-outline:hover {
    background: var(--sd8e-primary);
    color: #fff;
}

.sd8e-menu-btn {
    background: none;
    border: none;
    color: var(--sd8e-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.sd8e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sd8e-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    border-left: 1px solid var(--sd8e-border);
}

.pro5a3-menu-active {
    right: 0;
}

.sd8e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sd8e-border);
}

.sd8e-menu-close {
    background: none;
    border: none;
    color: var(--sd8e-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.sd8e-menu-links {
    list-style: none;
}

.sd8e-menu-links li {
    margin-bottom: 1.2rem;
}

.sd8e-menu-links a {
    color: var(--sd8e-text);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--sd8e-border);
    transition: color 0.3s ease;
}

.sd8e-menu-links a:hover {
    color: var(--sd8e-primary);
}

/* Menu Overlay */
.sd8e-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.pro5a3-overlay-active {
    display: block;
}

/* Main Content */
.sd8e-main {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Carousel */
.sd8e-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pro5a3-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.pro5a3-slide:first-child {
    display: block;
}

.pro5a3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

.sd8e-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.pro5a3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.pro5a3-dot-active {
    background: var(--sd8e-primary);
}

/* Section Styles */
.sd8e-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}

.sd8e-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sd8e-primary);
    margin-bottom: 1.2rem;
    text-align: center;
}

.sd8e-section-subtitle {
    font-size: 1.3rem;
    color: var(--sd8e-text);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.sd8e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.sd8e-game-card {
    background: var(--sd8e-card-bg);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sd8e-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.3);
}

.sd8e-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sd8e-game-name {
    font-size: 1rem;
    color: var(--sd8e-text);
    text-align: center;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Header */
.sd8e-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.sd8e-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sd8e-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info Cards */
.sd8e-info-card {
    background: var(--sd8e-card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--sd8e-border);
}

.sd8e-info-card h3 {
    font-size: 1.5rem;
    color: var(--sd8e-primary);
    margin-bottom: 1rem;
}

.sd8e-info-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--sd8e-text);
}

/* Feature List */
.sd8e-feature-list {
    list-style: none;
}

.sd8e-feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--sd8e-border);
    font-size: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.sd8e-feature-list li:last-child {
    border-bottom: none;
}

.sd8e-feature-icon {
    color: var(--sd8e-primary);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* Footer */
.sd8e-footer {
    background: var(--sd8e-card-bg);
    padding: 2rem 1rem;
    border-top: 1px solid var(--sd8e-border);
}

.sd8e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sd8e-footer-links a {
    color: var(--sd8e-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.sd8e-footer-links a:hover {
    color: var(--sd8e-primary);
}

.sd8e-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sd8e-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sd8e-partners img:hover {
    opacity: 1;
}

.sd8e-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--sd8e-text);
    opacity: 0.7;
}

/* Bottom Navigation */
.sd8e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0C0C0C 100%);
    border-top: 1px solid var(--sd8e-primary);
    z-index: 1000;
    padding: 0.5rem 0;
}

.sd8e-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.sd8e-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sd8e-nav-item:hover {
    transform: scale(1.1);
}

.sd8e-nav-item.active .sd8e-nav-icon {
    color: var(--sd8e-primary);
}

.sd8e-nav-icon {
    font-size: 2.2rem;
    color: var(--sd8e-text);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.sd8e-nav-item:hover .sd8e-nav-icon {
    color: var(--sd8e-primary);
}

.sd8e-nav-text {
    font-size: 1rem;
    color: var(--sd8e-text);
    transition: color 0.3s ease;
}

.sd8e-nav-item:hover .sd8e-nav-text {
    color: var(--sd8e-primary);
}

/* Promo Links in Content */
.sd8e-promo-link {
    color: var(--sd8e-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.sd8e-promo-link:hover {
    color: var(--sd8e-accent);
}

.sd8e-promo-btn {
    display: inline-block;
    background: var(--sd8e-gradient);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.sd8e-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 127, 80, 0.5);
}

/* RTP Section */
.sd8e-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.sd8e-rtp-item {
    background: var(--sd8e-card-bg);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--sd8e-border);
}

.sd8e-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sd8e-primary);
}

.sd8e-rtp-label {
    font-size: 1rem;
    color: var(--sd8e-text);
    opacity: 0.8;
}

/* FAQ Section */
.sd8e-faq-item {
    background: var(--sd8e-card-bg);
    border-radius: 0.8rem;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--sd8e-border);
}

.sd8e-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sd8e-primary);
    margin-bottom: 0.5rem;
}

.sd8e-faq-answer {
    font-size: 1.2rem;
    color: var(--sd8e-text);
    line-height: 1.5;
}

/* Desktop Hide */
@media (min-width: 769px) {
    .sd8e-bottom-nav {
        display: none;
    }

    .sd8e-main {
        padding-bottom: 2rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .sd8e-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sd8e-game-name {
        font-size: 0.9rem;
    }
}

/* H1 Title Style */
.sd8e-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sd8e-primary);
    text-align: center;
    margin: 1rem 0;
    line-height: 1.3;
}

/* Text Content */
.sd8e-text-content {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--sd8e-text);
    margin-bottom: 1rem;
}

.sd8e-text-content p {
    margin-bottom: 0.8rem;
}

/* Highlight Box */
.sd8e-highlight-box {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.2) 0%, rgba(255, 99, 71, 0.1) 100%);
    border-left: 4px solid var(--sd8e-primary);
    padding: 1rem;
    border-radius: 0 0.8rem 0.8rem 0;
    margin: 1rem 0;
}

/* Badge */
.sd8e-badge {
    display: inline-block;
    background: var(--sd8e-gradient);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
}
