/**
 * Poppy Playtime - Main Stylesheet
 * Website: poppyplaytime.click
 * Prefix: w396a-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --w396a-primary: #A0522D;
    --w396a-secondary: #00BFFF;
    --w396a-dark: #2C3E50;
    --w396a-bg: #1a1a2e;
    --w396a-bg-light: #16213e;
    --w396a-text: #ffffff;
    --w396a-text-muted: #b0b0b0;
    --w396a-accent: #e94560;
    --w396a-success: #00d26a;
    --w396a-gradient: linear-gradient(135deg, var(--w396a-primary) 0%, var(--w396a-dark) 100%);
    --w396a-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --w396a-radius: 8px;
    --w396a-transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--w396a-bg);
    color: var(--w396a-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.w396a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.w396a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--w396a-dark);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--w396a-shadow);
    transition: var(--w396a-transition);
}

.w396a-header-scrolled {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
}

.w396a-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.w396a-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.w396a-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w396a-secondary);
}

.w396a-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w396a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--w396a-radius);
    cursor: pointer;
    transition: var(--w396a-transition);
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.w396a-btn-primary {
    background: var(--w396a-secondary);
    color: var(--w396a-dark);
}

.w396a-btn-primary:hover {
    background: #00a8cc;
    transform: translateY(-2px);
}

.w396a-btn-secondary {
    background: transparent;
    border: 2px solid var(--w396a-secondary);
    color: var(--w396a-secondary);
}

.w396a-btn-secondary:hover {
    background: var(--w396a-secondary);
    color: var(--w396a-dark);
}

.w396a-menu-toggle {
    background: transparent;
    border: none;
    color: var(--w396a-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.w396a-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--w396a-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.app396-menu-active {
    right: 0;
}

.w396a-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: var(--w396a-transition);
}

.app396-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w396a-nav-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.w396a-nav-item {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--w396a-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--w396a-transition);
}

.w396a-nav-item:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--w396a-secondary);
}

/* Main Content */
.w396a-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

/* Carousel Styles */
.w396a-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--w396a-radius);
    margin-bottom: 2rem;
}

.w396a-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w396a-slide {
    min-width: 100%;
    display: none;
    cursor: pointer;
}

.w396a-slide-active {
    display: block;
}

.w396a-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styles */
.w396a-section {
    padding: 2rem 0;
}

.w396a-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w396a-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.w396a-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--w396a-primary);
    margin: 0.5rem auto 0;
}

/* Game Grid */
.w396a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w396a-game-card {
    background: var(--w396a-bg-light);
    border-radius: var(--w396a-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--w396a-transition);
    text-align: center;
}

.w396a-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.w396a-game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.w396a-game-name {
    font-size: 1.1rem;
    padding: 0.5rem;
    color: var(--w396a-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Label */
.w396a-category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w396a-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--w396a-primary);
}

/* Features Section */
.w396a-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.w396a-feature-card {
    background: var(--w396a-bg-light);
    padding: 1.5rem;
    border-radius: var(--w396a-radius);
    text-align: center;
    transition: var(--w396a-transition);
}

.w396a-feature-card:hover {
    background: rgba(160, 82, 45, 0.2);
}

.w396a-feature-icon {
    font-size: 3rem;
    color: var(--w396a-secondary);
    margin-bottom: 1rem;
}

.w396a-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w396a-text);
    margin-bottom: 0.5rem;
}

.w396a-feature-text {
    font-size: 1.2rem;
    color: var(--w396a-text-muted);
}

/* FAQ Section */
.w396a-faq-item {
    background: var(--w396a-bg-light);
    border-radius: var(--w396a-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.w396a-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--w396a-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w396a-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--w396a-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Promo Box */
.w396a-promo-box {
    background: var(--w396a-gradient);
    padding: 2rem;
    border-radius: var(--w396a-radius);
    text-align: center;
    margin: 2rem 0;
}

.w396a-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w396a-text);
    margin-bottom: 1rem;
}

.w396a-promo-text {
    font-size: 1.4rem;
    color: var(--w396a-text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.w396a-footer {
    background: var(--w396a-dark);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
}

.w396a-footer-section {
    margin-bottom: 2rem;
}

.w396a-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w396a-secondary);
    margin-bottom: 1rem;
}

.w396a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.w396a-footer-link {
    color: var(--w396a-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--w396a-transition);
}

.w396a-footer-link:hover {
    color: var(--w396a-secondary);
}

.w396a-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.w396a-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--w396a-transition);
}

.w396a-partner-img:hover {
    opacity: 1;
}

.w396a-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w396a-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.w396a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--w396a-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.w396a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--w396a-text-muted);
    text-decoration: none;
    transition: var(--w396a-transition);
    cursor: pointer;
}

.w396a-nav-btn:hover,
.w396a-nav-btn-active {
    color: var(--w396a-secondary);
}

.w396a-nav-btn-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.w396a-nav-btn-text {
    font-size: 1rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .w396a-container {
        max-width: 1200px;
    }

    .w396a-header {
        padding: 1rem 3rem;
    }

    .w396a-menu-toggle {
        display: none;
    }

    .w396a-desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .w396a-desktop-nav a {
        color: var(--w396a-text);
        text-decoration: none;
        font-size: 1.4rem;
        transition: var(--w396a-transition);
    }

    .w396a-desktop-nav a:hover {
        color: var(--w396a-secondary);
    }

    .w396a-bottom-nav {
        display: none;
    }

    .w396a-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w396a-main {
        padding-bottom: 2rem;
    }
}

/* Mobile Specific */
@media (max-width: 768px) {
    .w396a-main {
        padding-bottom: 80px;
    }

    .w396a-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .w396a-game-name {
        font-size: 1rem;
    }

    .w396a-desktop-nav {
        display: none;
    }
}

/* Utility Classes */
.w396a-text-center {
    text-align: center;
}

.w396a-mb-1 {
    margin-bottom: 1rem;
}

.w396a-mb-2 {
    margin-bottom: 2rem;
}

.w396a-mt-2 {
    margin-top: 2rem;
}

.w396a-highlight {
    color: var(--w396a-secondary);
    font-weight: 600;
}

/* Content Paragraph */
.w396a-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--w396a-text-muted);
    margin-bottom: 1.5rem;
}

.w396a-content h2 {
    font-size: 1.8rem;
    color: var(--w396a-text);
    margin: 2rem 0 1rem;
}

.w396a-content h3 {
    font-size: 1.6rem;
    color: var(--w396a-secondary);
    margin: 1.5rem 0 1rem;
}

.w396a-content ul,
.w396a-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.w396a-content li {
    font-size: 1.4rem;
    color: var(--w396a-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Link Styles */
.w396a-content a {
    color: var(--w396a-secondary);
    text-decoration: none;
    transition: var(--w396a-transition);
}

.w396a-content a:hover {
    text-decoration: underline;
}

/* CTA Button Large */
.w396a-cta-large {
    display: block;
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    background: var(--w396a-secondary);
    color: var(--w396a-dark);
    border-radius: var(--w396a-radius);
    text-decoration: none;
    transition: var(--w396a-transition);
    margin: 2rem 0;
}

.w396a-cta-large:hover {
    background: #00a8cc;
    transform: scale(1.02);
}

/* RTP Display */
.w396a-rtp-badge {
    display: inline-block;
    background: var(--w396a-success);
    color: var(--w396a-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Loading Animation */
@keyframes w396a-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.w396a-loading {
    animation: w396a-pulse 1.5s infinite;
}
