/* PhWin88 - Mobile-First CSS Stylesheet */
/* Optimized for Philippine gaming market */

/* ===== CSS Variables ===== */
:root {
    --w038a-primary: #FFD700;
    --w038a-secondary: #DA70D6;
    --w038a-accent: #FF8000;
    --w038a-dark: #273746;
    --w038a-darker: #8B008B;
    --w038a-light: #E5E5E5;
    --w038a-white: #FFFFFF;
    --w038a-black: #000000;
    --w038a-shadow: rgba(0, 0, 0, 0.15);
    --w038a-gradient: linear-gradient(135deg, var(--w038a-darker) 0%, var(--w038a-dark) 100%);
    --w038a-gold-gradient: linear-gradient(135deg, var(--w038a-primary) 0%, var(--w038a-accent) 100%);
}

/* ===== Reset & 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(--w038a-light);
    color: var(--w038a-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Header & Navigation ===== */
.w038a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--w038a-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--w038a-shadow);
}

.w038a-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--w038a-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w038a-header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.w038a-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w038a-btn-primary {
    background: var(--w038a-gold-gradient);
    color: var(--w038a-dark);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.w038a-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.w038a-btn-secondary {
    background: transparent;
    color: var(--w038a-white);
    border: 2px solid var(--w038a-primary);
}

.w038a-btn-secondary:hover {
    background: var(--w038a-primary);
    color: var(--w038a-dark);
}

.w038a-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w038a-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ===== Mobile Menu ===== */
.w038a-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--w038a-gradient);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.w038a-mobile-menu.w038a-menu-open {
    right: 0;
}

.w038a-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--w038a-primary);
    font-size: 28px;
    cursor: pointer;
}

.w038a-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.w038a-menu-link {
    color: var(--w038a-white);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.w038a-menu-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--w038a-primary);
}

.w038a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w038a-menu-overlay.w038a-active {
    opacity: 1;
    visibility: visible;
}

/* ===== Main Content ===== */
.w038a-main {
    margin-top: 60px;
    padding: 20px 16px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 140px);
}

/* ===== Carousel ===== */
.w038a-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px var(--w038a-shadow);
}

.w038a-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.w038a-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w038a-carousel-slide.w038a-active {
    opacity: 1;
}

.w038a-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w038a-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w038a-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w038a-carousel-dot.w038a-active {
    background: var(--w038a-primary);
    transform: scale(1.2);
}

/* ===== Game Grid ===== */
.w038a-section {
    margin-bottom: 32px;
}

.w038a-section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--w038a-darker);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w038a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.w038a-game-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px var(--w038a-shadow);
}

.w038a-game-card:active {
    transform: scale(0.95);
}

.w038a-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w038a-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--w038a-white);
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* ===== Content Modules ===== */
.w038a-content-module {
    background: var(--w038a-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--w038a-shadow);
}

.w038a-module-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--w038a-darker);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w038a-module-content {
    color: var(--w038a-dark);
    font-size: 14px;
    line-height: 1.8;
}

.w038a-module-content p {
    margin-bottom: 12px;
}

.w038a-module-content a {
    color: var(--w038a-darker);
    text-decoration: underline;
    font-weight: 600;
}

.w038a-module-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.w038a-module-content li {
    margin-bottom: 8px;
}

/* ===== Bottom Navigation ===== */
.w038a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--w038a-gradient);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--w038a-shadow);
    padding: 0 8px;
}

.w038a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--w038a-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 4px;
}

.w038a-nav-btn i {
    font-size: 24px;
    margin-bottom: 2px;
}

.w038a-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

.w038a-nav-btn:active {
    transform: scale(0.95);
}

.w038a-nav-btn.w038a-active {
    color: var(--w038a-primary);
}

.w038a-nav-btn.w038a-active i {
    transform: scale(1.1);
}

/* ===== Footer ===== */
.w038a-footer {
    background: var(--w038a-dark);
    color: var(--w038a-white);
    padding: 32px 16px 80px;
    margin-top: 32px;
}

.w038a-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.w038a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.w038a-footer-link {
    color: var(--w038a-primary);
    text-decoration: none;
    font-size: 14px;
}

.w038a-footer-link:hover {
    text-decoration: underline;
}

.w038a-footer-partners {
    margin-bottom: 20px;
}

.w038a-partner-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--w038a-primary);
}

.w038a-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.w038a-partner-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--w038a-light);
}

.w038a-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--w038a-light);
    opacity: 0.7;
}

/* ===== Utility Classes ===== */
.w038a-text-center {
    text-align: center;
}

.w038a-mt-1 {
    margin-top: 8px;
}

.w038a-mt-2 {
    margin-top: 16px;
}

.w038a-mb-1 {
    margin-bottom: 8px;
}

.w038a-mb-2 {
    margin-bottom: 16px;
}

.w038a-touching {
    opacity: 0.7;
}

/* ===== Desktop Styles ===== */
@media (min-width: 769px) {
    .w038a-main {
        padding-bottom: 20px;
    }

    .w038a-bottom-nav {
        display: none;
    }

    .w038a-menu-toggle {
        display: block;
    }

    .w038a-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w038a-carousel {
        height: 240px;
    }
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .w038a-menu-toggle {
        display: block;
    }

    .w038a-main {
        padding-bottom: 80px;
    }

    .w038a-footer {
        padding-bottom: 80px;
    }
}

/* ===== Animation Keyframes ===== */
@keyframes w038a-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w038a-fade-in {
    animation: w038a-fadeIn 0.5s ease;
}
