/**
 * Jonny Fairplay - Core CSS Styles
 * Prefix: wa93f-
 * Color Palette: #2C2C2C | #C0C0C0 | #95A5A6 | #495057 | #8B008B | #FFFACD
 */

/* CSS Variables */
:root {
    --wa93f-primary: #8B008B;
    --wa93f-secondary: #495057;
    --wa93f-accent: #FFFACD;
    --wa93f-bg-dark: #2C2C2C;
    --wa93f-bg-light: #C0C0C0;
    --wa93f-text-light: #C0C0C0;
    --wa93f-text-muted: #95A5A6;
    --wa93f-text-white: #FFFFFF;
    --wa93f-gradient: linear-gradient(135deg, #8B008B 0%, #495057 100%);
}

/* Reset & Base */
* {
    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(--wa93f-bg-dark);
    color: var(--wa93f-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
}

/* Container */
.wa93f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.wa93f-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Header */
.wa93f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wa93f-bg-dark);
    border-bottom: 1px solid var(--wa93f-secondary);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.wa93f-header-scrolled {
    background: rgba(44, 44, 44, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wa93f-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.wa93f-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.wa93f-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.wa93f-logo-text {
    color: var(--wa93f-accent);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.wa93f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wa93f-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.wa93f-btn-primary {
    background: var(--wa93f-primary);
    color: var(--wa93f-text-white);
}

.wa93f-btn-primary:hover {
    background: #a010a0;
    transform: scale(1.05);
}

.wa93f-btn-secondary {
    background: transparent;
    color: var(--wa93f-accent);
    border: 1px solid var(--wa93f-primary);
}

.wa93f-btn-secondary:hover {
    background: var(--wa93f-primary);
    color: var(--wa93f-text-white);
}

.wa93f-menu-btn {
    background: none;
    border: none;
    color: var(--wa93f-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.wa93f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wa93f-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid var(--wa93f-secondary);
}

.wa93f-menu-active {
    right: 0;
}

.wa93f-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wa93f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wa93f-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--wa93f-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.wa93f-menu-links {
    margin-top: 4rem;
    list-style: none;
}

.wa93f-menu-links li {
    margin-bottom: 1.2rem;
}

.wa93f-menu-links a {
    color: var(--wa93f-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--wa93f-secondary);
    transition: color 0.3s ease;
}

.wa93f-menu-links a:hover {
    color: var(--wa93f-accent);
}

/* Main Content */
main {
    padding-top: 56px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.wa93f-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.wa93f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wa93f-slide-active {
    opacity: 1;
}

.wa93f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.wa93f-section {
    padding: 2rem 1.2rem;
}

.wa93f-section-title {
    font-size: 1.8rem;
    color: var(--wa93f-accent);
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.wa93f-section-subtitle {
    font-size: 1.3rem;
    color: var(--wa93f-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.wa93f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.wa93f-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wa93f-game-item:hover {
    transform: scale(1.08);
}

.wa93f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--wa93f-secondary);
}

.wa93f-game-name {
    font-size: 1rem;
    color: var(--wa93f-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.wa93f-category-title {
    font-size: 1.5rem;
    color: var(--wa93f-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--wa93f-primary);
}

/* Card Component */
.wa93f-card {
    background: var(--wa93f-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}

.wa93f-card-title {
    font-size: 1.4rem;
    color: var(--wa93f-accent);
    margin-bottom: 0.8rem;
}

.wa93f-card-text {
    font-size: 1.2rem;
    color: var(--wa93f-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.wa93f-promo-link {
    color: var(--wa93f-accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.wa93f-promo-link:hover {
    color: var(--wa93f-primary);
}

/* Footer */
.wa93f-footer {
    background: var(--wa93f-bg-dark);
    border-top: 1px solid var(--wa93f-secondary);
    padding: 2rem 1.2rem 1rem;
    margin-top: 2rem;
}

.wa93f-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wa93f-footer-links a {
    color: var(--wa93f-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
}

.wa93f-footer-links a:hover {
    color: var(--wa93f-accent);
}

.wa93f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.wa93f-partners img {
    width: 40px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wa93f-partners img:hover {
    opacity: 1;
}

.wa93f-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--wa93f-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--wa93f-secondary);
}

/* Bottom Navigation */
.wa93f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--wa93f-bg-dark);
    border-top: 1px solid var(--wa93f-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .wa93f-bottom-nav {
        display: none;
    }
}

.wa93f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wa93f-nav-item:hover {
    transform: scale(1.1);
}

.wa93f-nav-item i,
.wa93f-nav-item span.iconify {
    font-size: 22px;
    color: var(--wa93f-text-muted);
    transition: color 0.3s ease;
}

.wa93f-nav-item span.material-icons-outlined {
    font-size: 24px;
}

.wa93f-nav-item.active i,
.wa93f-nav-item.active span.iconify,
.wa93f-nav-item.active span.material-icons-outlined {
    color: var(--wa93f-primary);
}

.wa93f-nav-item:hover i,
.wa93f-nav-item:hover span.iconify,
.wa93f-nav-item:hover span.material-icons-outlined {
    color: var(--wa93f-accent);
}

.wa93f-nav-text {
    font-size: 10px;
    color: var(--wa93f-text-muted);
    margin-top: 2px;
}

.wa93f-nav-item.active .wa93f-nav-text {
    color: var(--wa93f-primary);
}

/* H1 Title */
.wa93f-h1 {
    font-size: 2rem;
    color: var(--wa93f-accent);
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Text Content */
.wa93f-content {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--wa93f-text-light);
}

.wa93f-content p {
    margin-bottom: 1rem;
}

/* List Styles */
.wa93f-list {
    list-style: none;
    padding-left: 0;
}

.wa93f-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.2rem;
}

.wa93f-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--wa93f-primary);
}

/* FAQ Accordion */
.wa93f-faq-item {
    background: var(--wa93f-secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.wa93f-faq-question {
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
    color: var(--wa93f-accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa93f-faq-answer {
    padding: 0 1.2rem 1rem;
    font-size: 1.2rem;
    color: var(--wa93f-text-muted);
    display: none;
}

.wa93f-faq-item.active .wa93f-faq-answer {
    display: block;
}

/* Feature Grid */
.wa93f-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wa93f-feature-item {
    background: var(--wa93f-secondary);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.wa93f-feature-icon {
    font-size: 2.4rem;
    color: var(--wa93f-primary);
    margin-bottom: 0.6rem;
}

.wa93f-feature-title {
    font-size: 1.2rem;
    color: var(--wa93f-accent);
    margin-bottom: 0.4rem;
}

.wa93f-feature-desc {
    font-size: 1.1rem;
    color: var(--wa93f-text-muted);
}

/* Stats Box */
.wa93f-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.wa93f-stat-item {
    background: var(--wa93f-secondary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.wa93f-stat-value {
    font-size: 1.6rem;
    color: var(--wa93f-primary);
    font-weight: 700;
}

.wa93f-stat-label {
    font-size: 1rem;
    color: var(--wa93f-text-muted);
    margin-top: 0.3rem;
}

/* Promo Banner */
.wa93f-promo-banner {
    background: var(--wa93f-gradient);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.wa93f-promo-banner h3 {
    font-size: 1.5rem;
    color: var(--wa93f-text-white);
    margin-bottom: 0.8rem;
}

.wa93f-promo-banner p {
    font-size: 1.2rem;
    color: var(--wa93f-accent);
    margin-bottom: 1rem;
}

/* CTA Button */
.wa93f-cta-btn {
    display: inline-block;
    background: var(--wa93f-accent);
    color: var(--wa93f-bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.wa93f-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 0, 139, 0.4);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .wa93f-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wa93f-feature-grid {
        grid-template-columns: 1fr;
    }
}
