/**
 * gamezome.css - Core styles for gamezome website
 * Part 1 - Universal module
 * Prefix: wd4a3- (all classes)
 * Color palette: #999999 | #1B263B | #8B7355 | #FFEF94 | #AFEEEE | #FFCC33
 */

/* CSS Variables */
:root {
    --wd4a3-primary: #FFCC33;
    --wd4a3-secondary: #8B7355;
    --wd4a3-bg: #1B263B;
    --wd4a3-bg-light: #2a3a5a;
    --wd4a3-text: #FFEF94;
    --wd4a3-text-light: #AFEEEE;
    --wd4a3-gray: #999999;
    --wd4a3-white: #ffffff;
    --wd4a3-dark: #0d1520;
    --wd4a3-gradient: linear-gradient(135deg, #1B263B 0%, #2a3a5a 100%);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--wd4a3-bg);
    color: var(--wd4a3-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

a {
    color: var(--wd4a3-primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.wd4a3-container {
    width: 100%;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.wd4a3-wrapper {
    padding: 1.2rem;
}

/* Header */
.wd4a3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--wd4a3-dark);
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
    border-bottom: 1px solid var(--wd4a3-secondary);
}

.wd4a3-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    height: 5rem;
}

.wd4a3-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wd4a3-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}

.wd4a3-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wd4a3-primary);
}

.wd4a3-header-actions {
    display: flex;
    gap: 0.6rem;
}

.wd4a3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 3.2rem;
    min-width: 4.4rem;
}

.wd4a3-btn-primary {
    background: var(--wd4a3-primary);
    color: var(--wd4a3-dark);
}

.wd4a3-btn-primary:hover {
    background: #e6b82e;
    transform: scale(1.02);
}

.wd4a3-btn-secondary {
    background: transparent;
    color: var(--wd4a3-text);
    border: 1px solid var(--wd4a3-secondary);
}

.wd4a3-btn-secondary:hover {
    background: var(--wd4a3-secondary);
    color: var(--wd4a3-white);
}

.wd4a3-menu-toggle {
    background: none;
    border: none;
    color: var(--wd4a3-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

/* Mobile Menu */
.wd4a3-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wd4a3-dark);
    border-bottom: 1px solid var(--wd4a3-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wd4a3-menu-open {
    max-height: 50rem;
}

.wd4a3-nav-list {
    list-style: none;
    padding: 0.8rem 0;
}

.wd4a3-nav-item {
    border-bottom: 1px solid var(--wd4a3-bg-light);
}

.wd4a3-nav-item:last-child {
    border-bottom: none;
}

.wd4a3-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: var(--wd4a3-text);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.wd4a3-nav-link:hover {
    background: var(--wd4a3-bg-light);
    color: var(--wd4a3-primary);
}

.wd4a3-nav-link i {
    width: 2rem;
    margin-right: 0.8rem;
}

/* Main content */
.wd4a3-main {
    padding-top: 5rem;
    padding-bottom: 7rem;
}

/* Slider/Carousel */
.wd4a3-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    margin: 1rem 0;
}

.wd4a3-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.wd4a3-slide.wd4a3-active {
    display: block;
}

.wd4a3-slide img {
    width: 100%;
    border-radius: 0.8rem;
}

.wd4a3-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.wd4a3-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.wd4a3-dot.wd4a3-active {
    background: var(--wd4a3-primary);
}

/* Sections */
.wd4a3-section {
    padding: 1.5rem 1.2rem;
}

.wd4a3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wd4a3-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.wd4a3-section-subtitle {
    font-size: 1.4rem;
    color: var(--wd4a3-text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Games Grid */
.wd4a3-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.wd4a3-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wd4a3-game-card:hover {
    transform: scale(1.05);
}

.wd4a3-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.6rem;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.wd4a3-game-name {
    font-size: 1rem;
    color: var(--wd4a3-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.wd4a3-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wd4a3-text-light);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--wd4a3-primary);
}

/* Content Blocks */
.wd4a3-content-block {
    background: var(--wd4a3-bg-light);
    border-radius: 0.8rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.wd4a3-content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wd4a3-primary);
    margin-bottom: 0.8rem;
}

.wd4a3-content-text {
    font-size: 1.3rem;
    color: var(--wd4a3-text);
    line-height: 1.8rem;
}

/* Features List */
.wd4a3-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wd4a3-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.wd4a3-feature-icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--wd4a3-primary);
    flex-shrink: 0;
}

.wd4a3-feature-text {
    font-size: 1.3rem;
    color: var(--wd4a3-text);
}

/* FAQ Section */
.wd4a3-faq-item {
    background: var(--wd4a3-bg-light);
    border-radius: 0.6rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.wd4a3-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wd4a3-primary);
    margin-bottom: 0.5rem;
}

.wd4a3-faq-answer {
    font-size: 1.2rem;
    color: var(--wd4a3-text);
    line-height: 1.6rem;
}

/* Promo Link Styles */
.wd4a3-promo-link {
    color: var(--wd4a3-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wd4a3-promo-link:hover {
    color: var(--wd4a3-text-light);
    text-decoration: underline;
}

.wd4a3-promo-btn {
    display: inline-block;
    background: var(--wd4a3-primary);
    color: var(--wd4a3-dark);
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wd4a3-promo-btn:hover {
    background: #e6b82e;
    transform: scale(1.05);
}

/* Footer */
.wd4a3-footer {
    background: var(--wd4a3-dark);
    padding: 1.5rem 1.2rem 8rem;
    border-top: 1px solid var(--wd4a3-secondary);
}

.wd4a3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wd4a3-footer-link {
    font-size: 1.2rem;
    color: var(--wd4a3-text);
    transition: color 0.3s ease;
}

.wd4a3-footer-link:hover {
    color: var(--wd4a3-primary);
}

.wd4a3-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wd4a3-partner-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.3rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wd4a3-partner-icon:hover {
    opacity: 1;
}

.wd4a3-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--wd4a3-gray);
}

/* Bottom Navigation */
.wd4a3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wd4a3-dark);
    border-top: 1px solid var(--wd4a3-secondary);
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.wd4a3-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
}

.wd4a3-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--wd4a3-text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

.wd4a3-nav-btn:hover,
.wd4a3-nav-btn.wd4a3-active {
    color: var(--wd4a3-primary);
    transform: scale(1.1);
}

.wd4a3-nav-btn i {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.wd4a3-nav-btn span {
    font-size: 1rem;
}

/* Utility Classes */
.wd4a3-text-center {
    text-align: center;
}

.wd4a3-text-primary {
    color: var(--wd4a3-primary);
}

.wd4a3-text-secondary {
    color: var(--wd4a3-secondary);
}

.wd4a3-text-light {
    color: var(--wd4a3-text-light);
}

.wd4a3-mb-1 {
    margin-bottom: 1rem;
}

.wd4a3-mb-2 {
    margin-bottom: 2rem;
}

.wd4a3-mt-1 {
    margin-top: 1rem;
}

.wd4a3-mt-2 {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 360px) {
    .wd4a3-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wd4a3-game-name {
        font-size: 0.9rem;
    }
}
