/**
 * PHSpin 77 - Layout Stylesheet
 * All classes use we3a8- prefix for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --we3a8-primary: #20B2AA;
    --we3a8-dark: #1B263B;
    --we3a8-teal: #4DB6AC;
    --we3a8-turquoise: #00CED1;
    --we3a8-green: #26A69A;
    --we3a8-white: #ffffff;
    --we3a8-light: #f5f5f5;
    --we3a8-gray: #9e9e9e;
    --we3a8-dark-gray: #424242;
    --we3a8-gold: #FFD700;
    --we3a8-shadow: rgba(0, 0, 0, 0.15);
    --we3a8-radius: 8px;
    --we3a8-radius-lg: 12px;
    --we3a8-transition: 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--we3a8-dark);
    color: var(--we3a8-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--we3a8-turquoise);
    text-decoration: none;
    transition: color var(--we3a8-transition);
}

a:hover {
    color: var(--we3a8-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.we3a8-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.we3a8-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.we3a8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--we3a8-dark) 0%, #0d1321 100%);
    padding: 12px 16px;
    box-shadow: 0 2px 10px var(--we3a8-shadow);
}

.we3a8-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.we3a8-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.we3a8-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.we3a8-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--we3a8-primary);
    text-transform: uppercase;
}

.we3a8-header-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.we3a8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--we3a8-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--we3a8-transition);
    min-height: 44px;
}

.we3a8-btn-register {
    background: linear-gradient(135deg, var(--we3a8-primary) 0%, var(--we3a8-green) 100%);
    color: var(--we3a8-white);
}

.we3a8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
}

.we3a8-btn-login {
    background: transparent;
    border: 2px solid var(--we3a8-turquoise);
    color: var(--we3a8-turquoise);
}

.we3a8-btn-login:hover {
    background: var(--we3a8-turquoise);
    color: var(--we3a8-dark);
}

.we3a8-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.we3a8-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--we3a8-white);
    margin: 3px 0;
    border-radius: 2px;
    transition: all var(--we3a8-transition);
}

/* Mobile Menu */
.we3a8-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 var(--we3a8-transition);
}

.we3a8-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.we3a8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--we3a8-dark) 0%, #0d1321 100%);
    z-index: 9999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: right var(--we3a8-transition);
}

.we3a8-menu-open {
    right: 0;
}

.we3a8-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--we3a8-white);
    font-size: 28px;
    cursor: pointer;
}

.we3a8-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--we3a8-white);
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all var(--we3a8-transition);
}

.we3a8-nav-link:hover,
.we3a8-nav-active {
    color: var(--we3a8-primary);
    background: rgba(32, 178, 170, 0.1);
    padding-left: 24px;
}

/* Main Content */
.we3a8-main {
    flex: 1;
    margin-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .we3a8-main {
        padding-bottom: 20px;
    }
}

/* Carousel */
.we3a8-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--we3a8-radius-lg);
    margin: 16px 0;
}

.we3a8-carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.we3a8-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.we3a8-slide-active {
    opacity: 1;
}

.we3a8-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.we3a8-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.we3a8-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--we3a8-transition);
}

.we3a8-indicator-active {
    background: var(--we3a8-primary);
    transform: scale(1.2);
}

/* Section Styles */
.we3a8-section {
    padding: 24px 0;
}

.we3a8-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--we3a8-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.we3a8-section-title i {
    color: var(--we3a8-primary);
}

/* Tab Navigation */
.we3a8-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.we3a8-tabs::-webkit-scrollbar {
    display: none;
}

.we3a8-tab-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    color: var(--we3a8-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--we3a8-transition);
}

.we3a8-tab-btn:hover,
.we3a8-tab-active {
    background: var(--we3a8-primary);
    color: var(--we3a8-white);
}

.we3a8-tab-content {
    display: none;
}

.we3a8-tab-content-active {
    display: block;
}

/* Game Grid */
.we3a8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.we3a8-game-card {
    position: relative;
    border-radius: var(--we3a8-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--we3a8-transition);
    aspect-ratio: 1;
}

.we3a8-game-card:hover {
    transform: scale(1.05);
}

.we3a8-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.we3a8-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 4px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-size: 10px;
    text-align: center;
    color: var(--we3a8-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Modules */
.we3a8-module {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(27, 38, 59, 0.8) 100%);
    border-radius: var(--we3a8-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(32, 178, 170, 0.2);
}

.we3a8-module-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--we3a8-primary);
    margin-bottom: 12px;
}

.we3a8-module p {
    color: var(--we3a8-light);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.we3a8-module ul {
    list-style: none;
    padding-left: 0;
}

.we3a8-module li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--we3a8-light);
    font-size: 14px;
}

.we3a8-module li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--we3a8-turquoise);
    border-radius: 50%;
}

/* Promo Link Styles */
.we3a8-promo-link {
    color: var(--we3a8-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--we3a8-transition);
}

.we3a8-promo-link:hover {
    color: var(--we3a8-primary);
    text-decoration: underline;
}

/* CTA Button */
.we3a8-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--we3a8-primary) 0%, var(--we3a8-turquoise) 100%);
    color: var(--we3a8-white);
    text-align: center;
    border-radius: var(--we3a8-radius);
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    cursor: pointer;
    border: none;
    transition: all var(--we3a8-transition);
}

.we3a8-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

/* Footer */
.we3a8-footer {
    background: linear-gradient(180deg, #0d1321 0%, #000 100%);
    padding: 30px 16px;
    border-top: 1px solid rgba(32, 178, 170, 0.2);
}

.we3a8-footer-partners {
    margin-bottom: 24px;
}

.we3a8-partners-title {
    font-size: 14px;
    color: var(--we3a8-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.we3a8-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.we3a8-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--we3a8-transition);
}

.we3a8-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.we3a8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.we3a8-footer-link {
    color: var(--we3a8-gray);
    font-size: 13px;
    transition: color var(--we3a8-transition);
}

.we3a8-footer-link:hover {
    color: var(--we3a8-primary);
}

.we3a8-copyright {
    text-align: center;
    color: var(--we3a8-gray);
    font-size: 12px;
}

/* Bottom Navigation */
.we3a8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--we3a8-dark) 0%, #0d1321 100%);
    border-top: 1px solid rgba(32, 178, 170, 0.3);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
}

@media (min-width: 769px) {
    .we3a8-bottom-nav {
        display: none;
    }
}

.we3a8-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: transparent;
    border: none;
    color: var(--we3a8-gray);
    cursor: pointer;
    transition: all var(--we3a8-transition);
    padding: 6px 10px;
    border-radius: var(--we3a8-radius);
}

.we3a8-bottom-nav-btn:hover,
.we3a8-bottom-active {
    color: var(--we3a8-primary);
    background: rgba(32, 178, 170, 0.1);
}

.we3a8-bottom-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.we3a8-bottom-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.we3a8-text-center {
    text-align: center;
}

.we3a8-text-primary {
    color: var(--we3a8-primary);
}

.we3a8-text-gold {
    color: var(--we3a8-gold);
}

.we3a8-mt-1 {
    margin-top: 8px;
}

.we3a8-mt-2 {
    margin-top: 16px;
}

.we3a8-mb-1 {
    margin-bottom: 8px;
}

.we3a8-mb-2 {
    margin-bottom: 16px;
}

/* H1 Style */
.we3a8-h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--we3a8-white);
    text-align: center;
    margin: 20px 0;
    line-height: 1.3;
}

.we3a8-h1 span {
    color: var(--we3a8-primary);
}

/* FAQ Styles */
.we3a8-faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: var(--we3a8-radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.we3a8-faq-question {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--we3a8-turquoise);
    font-size: 14px;
}

.we3a8-faq-answer {
    padding: 0 16px 14px;
    color: var(--we3a8-light);
    font-size: 13px;
    line-height: 1.6;
}

/* Badge */
.we3a8-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--we3a8-primary);
    color: var(--we3a8-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Stats Grid */
.we3a8-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.we3a8-stat-item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(32, 178, 170, 0.1);
    border-radius: var(--we3a8-radius);
}

.we3a8-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--we3a8-primary);
}

.we3a8-stat-label {
    font-size: 11px;
    color: var(--we3a8-gray);
    margin-top: 4px;
}

/* Internal Link Style */
.we3a8-internal-link {
    color: var(--we3a8-turquoise);
    border-bottom: 1px dashed var(--we3a8-turquoise);
    transition: all var(--we3a8-transition);
}

.we3a8-internal-link:hover {
    color: var(--we3a8-primary);
    border-bottom-color: var(--we3a8-primary);
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .we3a8-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .we3a8-h1 {
        font-size: 22px;
    }

    .we3a8-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
