/**
 * p90.click - Layout Stylesheet
 * Prefix: w804a-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --w804a-primary: #FFCC33;
    --w804a-secondary: #FF8C00;
    --w804a-accent: #DB7093;
    --w804a-bg: #333333;
    --w804a-bg-light: #FFEBCD;
    --w804a-text: #FFEBCD;
    --w804a-text-dark: #333333;
    --w804a-white: #FFFFFF;
    --w804a-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    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: var(--w804a-bg);
    color: var(--w804a-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.w804a-container {
    width: 100%;
    padding: 0 1.2rem;
}

.w804a-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.w804a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--w804a-bg) 0%, #1a1a1a 100%);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--w804a-primary);
    max-width: 430px;
    margin: 0 auto;
}

.w804a-header-scrolled {
    box-shadow: 0 4px 12px var(--w804a-shadow);
}

.w804a-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.w804a-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w804a-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w804a-primary);
}

.w804a-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.w804a-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.w804a-btn-primary {
    background: var(--w804a-primary);
    color: var(--w804a-text-dark);
}

.w804a-btn-primary:hover {
    background: #e6b82e;
    transform: scale(1.05);
}

.w804a-btn-secondary {
    background: transparent;
    color: var(--w804a-primary);
    border: 1px solid var(--w804a-primary);
}

.w804a-btn-secondary:hover {
    background: var(--w804a-primary);
    color: var(--w804a-text-dark);
}

.w804a-menu-toggle {
    background: none;
    border: none;
    color: var(--w804a-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.w804a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w804a-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.web04a-menu-active {
    right: 0;
}

.w804a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.web04a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w804a-nav-list {
    list-style: none;
}

.w804a-nav-item {
    border-bottom: 1px solid rgba(255, 204, 51, 0.2);
}

.w804a-nav-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--w804a-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.w804a-nav-link:hover {
    color: var(--w804a-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.w804a-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.w804a-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.web04a-slide-active {
    opacity: 1;
}

.w804a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.w804a-section {
    padding: 2rem 1rem;
}

.w804a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w804a-primary);
    margin-bottom: 1.2rem;
    text-align: center;
}

.w804a-section-subtitle {
    font-size: 1.4rem;
    color: var(--w804a-text);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.w804a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w804a-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w804a-game-item:hover {
    transform: scale(1.05);
}

.w804a-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--w804a-primary);
}

.w804a-game-name {
    font-size: 1rem;
    color: var(--w804a-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Category Section */
.w804a-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w804a-secondary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--w804a-primary);
}

/* Content Card */
.w804a-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 204, 51, 0.2);
}

.w804a-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w804a-primary);
    margin-bottom: 0.8rem;
}

.w804a-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--w804a-text);
}

/* CTA Section */
.w804a-cta {
    background: linear-gradient(135deg, var(--w804a-secondary) 0%, var(--w804a-primary) 100%);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 12px;
    margin: 1.5rem 1rem;
}

.w804a-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w804a-text-dark);
    margin-bottom: 1rem;
}

.w804a-cta-text {
    font-size: 1.3rem;
    color: var(--w804a-text-dark);
    margin-bottom: 1.2rem;
}

.w804a-cta-btn {
    display: inline-block;
    background: var(--w804a-bg);
    color: var(--w804a-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w804a-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--w804a-shadow);
}

/* Footer */
.w804a-footer {
    background: #1a1a1a;
    padding: 2rem 1rem 3rem;
    margin-top: 2rem;
}

.w804a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w804a-footer-link {
    color: var(--w804a-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 204, 51, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w804a-footer-link:hover {
    background: var(--w804a-primary);
    color: var(--w804a-text-dark);
}

.w804a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.w804a-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.w804a-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.w804a-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 235, 205, 0.6);
}

/* Bottom Navigation */
.w804a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 2px solid var(--w804a-primary);
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .w804a-bottom-nav {
        display: none;
    }
}

.w804a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--w804a-text);
    transition: all 0.3s ease;
}

.w804a-nav-btn:hover,
.w804a-nav-btn.active {
    color: var(--w804a-primary);
    transform: scale(1.1);
}

.w804a-nav-btn i,
.w804a-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.w804a-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promotional Link Styles */
.w804a-promo-link {
    color: var(--w804a-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w804a-promo-link:hover {
    color: var(--w804a-secondary);
    text-decoration: underline;
}

/* List Styles */
.w804a-list {
    list-style: none;
    padding-left: 0;
}

.w804a-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 204, 51, 0.1);
    font-size: 1.3rem;
}

.w804a-list-item::before {
    content: ">";
    color: var(--w804a-primary);
    margin-right: 0.8rem;
}

/* FAQ Section */
.w804a-faq-item {
    margin-bottom: 1rem;
}

.w804a-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w804a-primary);
    margin-bottom: 0.5rem;
}

.w804a-faq-answer {
    font-size: 1.3rem;
    color: var(--w804a-text);
    padding-left: 1rem;
    border-left: 2px solid var(--w804a-secondary);
}

/* Features Grid */
.w804a-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w804a-feature-item {
    background: rgba(255, 204, 51, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.w804a-feature-icon {
    font-size: 2.4rem;
    color: var(--w804a-primary);
    margin-bottom: 0.5rem;
}

.w804a-feature-text {
    font-size: 1.2rem;
    color: var(--w804a-text);
}

/* RTP Display */
.w804a-rtp-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.w804a-rtp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--w804a-secondary), var(--w804a-primary));
    border-radius: 4px;
}

/* Badge */
.w804a-badge {
    display: inline-block;
    background: var(--w804a-secondary);
    color: var(--w804a-white);
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 380px) {
    .w804a-section-title {
        font-size: 1.6rem;
    }

    .w804a-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w804a-game-icon {
        width: 55px;
        height: 55px;
    }
}
