/**
 * Phsky App Login - Layout Stylesheet
 * All classes use prefix 'wd98b-' for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --wd98b-bg-dark: #0A0A0A;
    --wd98b-primary: #0000CD;
    --wd98b-gold: #BDB76B;
    --wd98b-yellow: #FFCC33;
    --wd98b-light: #87CEFA;
    --wd98b-white: #FFFFFF;
    --wd98b-gray: #888888;
    --wd98b-header-height: 60px;
    --wd98b-bottom-nav-height: 60px;
    --wd98b-transition: all 0.3s ease;
}

/* 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;
    background-color: var(--wd98b-bg-dark);
    color: var(--wd98b-white);
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.wd98b-container {
    width: 100%;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.wd98b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wd98b-header-height);
    background: linear-gradient(180deg, #0A0A0A 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--wd98b-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.wd98b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wd98b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.wd98b-logo-text {
    color: var(--wd98b-yellow);
    font-size: 1.4rem;
    font-weight: 700;
}

.wd98b-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wd98b-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--wd98b-transition);
    text-decoration: none;
    display: inline-block;
}

.wd98b-btn-register {
    background: var(--wd98b-primary);
    color: var(--wd98b-white);
}

.wd98b-btn-register:hover {
    background: #0000EE;
    transform: scale(1.05);
}

.wd98b-btn-login {
    background: transparent;
    color: var(--wd98b-yellow);
    border: 1px solid var(--wd98b-yellow);
}

.wd98b-btn-login:hover {
    background: var(--wd98b-yellow);
    color: var(--wd98b-bg-dark);
}

.wd98b-menu-toggle {
    background: none;
    border: none;
    color: var(--wd98b-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.wd98b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wd98b-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    border-left: 1px solid var(--wd98b-primary);
}

.wd98b-menu-open {
    right: 0;
}

.wd98b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wd98b-transition);
}

.wd98b-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.wd98b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--wd98b-white);
    font-size: 2rem;
    cursor: pointer;
}

.wd98b-menu-nav {
    margin-top: 3rem;
}

.wd98b-menu-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--wd98b-white);
    text-decoration: none;
    border-bottom: 1px solid #333;
    font-size: 1.4rem;
    transition: var(--wd98b-transition);
}

.wd98b-menu-nav a:hover {
    color: var(--wd98b-yellow);
    padding-left: 0.5rem;
}

/* Main Content */
.wd98b-main {
    padding-top: calc(var(--wd98b-header-height) + 1rem);
    padding-bottom: calc(var(--wd98b-bottom-nav-height) + 2rem);
    min-height: 100vh;
}

/* Slider */
.wd98b-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.wd98b-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.wd98b-slide {
    min-width: 100%;
    cursor: pointer;
}

.wd98b-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.wd98b-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.wd98b-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wd98b-gray);
    cursor: pointer;
    transition: var(--wd98b-transition);
}

.wd98b-dot-active {
    background: var(--wd98b-yellow);
}

/* Section Titles */
.wd98b-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wd98b-yellow);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wd98b-primary);
}

/* Game Grid */
.wd98b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.wd98b-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--wd98b-transition);
}

.wd98b-game-item:hover {
    transform: translateY(-3px);
}

.wd98b-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--wd98b-primary);
    transition: var(--wd98b-transition);
}

.wd98b-game-item:hover img {
    border-color: var(--wd98b-yellow);
}

.wd98b-game-name {
    font-size: 1rem;
    color: var(--wd98b-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.wd98b-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wd98b-gold);
    margin: 1.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--wd98b-yellow);
}

/* Content Section */
.wd98b-content-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.wd98b-content-section p {
    color: var(--wd98b-light);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.wd98b-content-section p:last-child {
    margin-bottom: 0;
}

/* Promo Link */
.wd98b-promo-link {
    color: var(--wd98b-yellow);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--wd98b-transition);
}

.wd98b-promo-link:hover {
    color: var(--wd98b-white);
    text-decoration: underline;
}

/* CTA Button */
.wd98b-cta-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--wd98b-primary) 0%, #0000AA 100%);
    color: var(--wd98b-white);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--wd98b-transition);
    border: none;
    margin-bottom: 1.5rem;
}

.wd98b-cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 205, 0.4);
}

/* Footer */
.wd98b-footer {
    background: #0d0d0d;
    padding: 2rem 1rem;
    border-top: 1px solid var(--wd98b-primary);
    margin-bottom: var(--wd98b-bottom-nav-height);
}

.wd98b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wd98b-footer-links a {
    color: var(--wd98b-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--wd98b-transition);
}

.wd98b-footer-links a:hover {
    color: var(--wd98b-yellow);
}

.wd98b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.wd98b-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--wd98b-transition);
}

.wd98b-partners img:hover {
    opacity: 1;
}

.wd98b-copyright {
    text-align: center;
    color: var(--wd98b-gray);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.wd98b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--wd98b-bottom-nav-height);
    background: linear-gradient(180deg, #1a1a1a 0%, #0A0A0A 100%);
    border-top: 1px solid var(--wd98b-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.wd98b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--wd98b-transition);
    text-decoration: none;
    color: var(--wd98b-gray);
}

.wd98b-nav-item:hover {
    color: var(--wd98b-yellow);
    transform: scale(1.1);
}

.wd98b-nav-item.active {
    color: var(--wd98b-yellow);
}

.wd98b-nav-item i,
.wd98b-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.wd98b-nav-item ion-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.wd98b-nav-text {
    font-size: 10px;
    text-align: center;
}

/* Lists */
.wd98b-list {
    list-style: none;
    padding: 0;
}

.wd98b-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
    color: var(--wd98b-light);
}

.wd98b-list li:last-child {
    border-bottom: none;
}

/* Accordion */
.wd98b-accordion-item {
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.wd98b-accordion-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, var(--wd98b-primary) 0%, #0000AA 100%);
    color: var(--wd98b-white);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wd98b-accordion-content {
    padding: 1rem 1.5rem;
    color: var(--wd98b-light);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Highlights */
.wd98b-highlight {
    background: linear-gradient(135deg, var(--wd98b-primary) 0%, #0000AA 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.wd98b-highlight h3 {
    color: var(--wd98b-yellow);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.wd98b-highlight p {
    color: var(--wd98b-white);
    font-size: 1.2rem;
}

/* Responsive */
@media (min-width: 769px) {
    .wd98b-bottom-nav {
        display: none;
    }

    .wd98b-main {
        padding-bottom: 2rem;
    }

    .wd98b-footer {
        margin-bottom: 0;
    }
}

/* Utility Classes */
.wd98b-text-center { text-align: center; }
.wd98b-text-yellow { color: var(--wd98b-yellow); }
.wd98b-text-gold { color: var(--wd98b-gold); }
.wd98b-text-light { color: var(--wd98b-light); }
.wd98b-mb-1 { margin-bottom: 1rem; }
.wd98b-mb-2 { margin-bottom: 2rem; }
.wd98b-mt-1 { margin-top: 1rem; }
.wd98b-mt-2 { margin-top: 2rem; }
