/**
 * Nustar Game - Design Stylesheet
 * Class Prefix: wd205-
 * Color Scheme: #98FB98 | #D8BFD8 | #800080 | #DEB887 | #3A3A3A
 * Mobile-first responsive design (max-width: 430px)
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #3A3A3A;
    color: #98FB98;
    line-height: 1.6;
    font-size: 16px;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.wd205-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, #800080 0%, #3A3A3A 100%);
    padding: 12px 16px;
    z-index: 9998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wd205-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wd205-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wd205-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.wd205-site-name {
    font-size: 18px;
    font-weight: 700;
    color: #D8BFD8;
}

.wd205-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wd205-cta-btn {
    background: linear-gradient(135deg, #98FB98 0%, #DEB887 100%);
    color: #3A3A3A;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wd205-cta-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(152,251,152,0.4);
}

.wd205-hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wd205-hamburger-line {
    width: 24px;
    height: 3px;
    background: #D8BFD8;
    border-radius: 2px;
    transition: all 0.3s;
}

.wd205-hamburger-btn.wd205-active .wd205-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.wd205-hamburger-btn.wd205-active .wd205-hamburger-line:nth-child(2) {
    opacity: 0;
}

.wd205-hamburger-btn.wd205-active .wd205-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.wd205-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #800080 0%, #3A3A3A 100%);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 70px;
}

.wd205-mobile-menu.wd205-menu-open {
    transform: translateX(0);
}

.wd205-menu-links {
    list-style: none;
    padding: 20px;
}

.wd205-menu-links li {
    margin-bottom: 8px;
}

.wd205-menu-links a {
    display: block;
    padding: 14px 16px;
    background: rgba(152,251,152,0.1);
    border-radius: 8px;
    color: #D8BFD8;
    font-size: 16px;
    transition: all 0.2s;
    min-height: 44px;
}

.wd205-menu-links a:active {
    background: rgba(152,251,152,0.2);
    transform: scale(0.98);
}

/* Main Content */
.wd205-main {
    padding-top: 64px;
    padding-bottom: 70px;
    min-height: 100vh;
}

.wd205-section {
    padding: 24px 16px;
}

.wd205-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #98FB98;
    margin-bottom: 16px;
    text-align: center;
}

.wd205-section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #D8BFD8;
    margin-bottom: 12px;
}

/* Carousel */
.wd205-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.wd205-carousel-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.wd205-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.wd205-carousel-slide.wd205-active {
    opacity: 1;
}

.wd205-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd205-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.wd205-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(216,191,216,0.4);
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd205-carousel-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(216,191,216,0.4);
}

.wd205-carousel-dot.wd205-active::after {
    background: #98FB98;
}

/* Game Grid */
.wd205-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.wd205-game-card {
    background: rgba(152,251,152,0.05);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    border: 1px solid rgba(152,251,152,0.1);
}

.wd205-game-card:active {
    transform: scale(0.95);
    background: rgba(152,251,152,0.15);
}

.wd205-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 6px;
}

.wd205-game-name {
    font-size: 11px;
    color: #D8BFD8;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Cards */
.wd205-content-card {
    background: rgba(128,0,128,0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(152,251,152,0.1);
}

.wd205-content-card h2 {
    color: #98FB98;
    font-size: 20px;
    margin-bottom: 12px;
}

.wd205-content-card h3 {
    color: #DEB887;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 16px;
}

.wd205-content-card p {
    color: #D8BFD8;
    margin-bottom: 12px;
    line-height: 1.7;
}

.wd205-content-card ul, .wd205-content-card ol {
    color: #D8BFD8;
    margin-left: 20px;
    margin-bottom: 12px;
}

.wd205-content-card li {
    margin-bottom: 8px;
}

.wd205-content-card a {
    color: #98FB98;
    text-decoration: underline;
}

/* Button Styles */
.wd205-btn-primary {
    background: linear-gradient(135deg, #98FB98 0%, #DEB887 100%);
    color: #3A3A3A;
    padding: 14px 28px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.wd205-btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(152,251,152,0.4);
}

.wd205-btn-secondary {
    background: transparent;
    color: #D8BFD8;
    padding: 14px 28px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #D8BFD8;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.wd205-btn-secondary:active {
    background: rgba(216,191,216,0.1);
    transform: scale(0.95);
}

/* Accordion */
.wd205-accordion-item {
    background: rgba(128,0,128,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.wd205-accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    color: #98FB98;
    font-weight: 600;
}

.wd205-accordion-header::after {
    content: '+';
    font-size: 24px;
    color: #DEB887;
    transition: transform 0.3s;
}

.wd205-accordion-item.wd205-open .wd205-accordion-header::after {
    transform: rotate(45deg);
}

.wd205-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wd205-accordion-content-inner {
    padding: 0 16px 16px;
    color: #D8BFD8;
    line-height: 1.7;
}

/* Footer */
.wd205-footer {
    background: linear-gradient(180deg, #3A3A3A 0%, #800080 100%);
    padding: 24px 16px 90px;
    margin-top: 40px;
}

.wd205-footer-content {
    text-align: center;
}

.wd205-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wd205-footer-link {
    color: #D8BFD8;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(152,251,152,0.1);
    border-radius: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.wd205-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.wd205-partner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.2s;
}

.wd205-partner-logo:active {
    filter: grayscale(0%) brightness(1);
}

.wd205-copyright {
    color: #D8BFD8;
    font-size: 13px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Bottom Navigation */
.wd205-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, #800080 0%, #3A3A3A 100%);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 9998;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

.wd205-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: #D8BFD8;
    transition: all 0.2s;
}

.wd205-bottom-nav-item:active {
    transform: scale(0.9);
    color: #98FB98;
}

.wd205-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.wd205-bottom-nav-label {
    font-size: 10px;
}

/* Scroll to Top */
.wd205-scroll-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #98FB98 0%, #DEB887 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    font-size: 20px;
    color: #3A3A3A;
}

.wd205-scroll-top.wd205-visible {
    opacity: 1;
    visibility: visible;
}

.wd205-scroll-top:active {
    transform: scale(0.9);
}

/* Utility Classes */
.wd205-text-center {
    text-align: center;
}

.wd205-mt-2 {
    margin-top: 20px;
}

.wd205-mb-2 {
    margin-bottom: 20px;
}

.wd205-highlight {
    color: #98FB98;
    font-weight: 600;
}

.wd205-muted {
    color: #D8BFD8;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .wd205-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wd205-section-title {
        font-size: 20px;
    }
}

@media (min-width: 431px) {
    body {
        border-left: 1px solid rgba(152,251,152,0.1);
        border-right: 1px solid rgba(152,251,152,0.1);
    }
}
