/* PHLWINNER Design System - Part 1 */
/* All classes use prefix 'w2349-' for namespace isolation */

/* CSS Variables */
:root {
    /* Color scheme */
    --w2349-primary: #AD1457;
    --w2349-secondary: #FFE135;
    --w2349-accent: #FF8C00;
    --w2349-dark: #2E4057;
    --w2349-gray: #999999;
    --w2349-light: #EEE8AA;

    /* Functional colors */
    --w2349-bg: #1a1a1a;
    --w2349-surface: #2d2d2d;
    --w2349-text: #ffffff;
    --w2349-text-secondary: #cccccc;
    --w2349-border: #444444;

    /* Typography */
    --w2349-font-size-base: 1.6rem;
    --w2349-line-height: 1.5;

    /* Spacing */
    --w2349-spacing-xs: 0.5rem;
    --w2349-spacing-sm: 1rem;
    --w2349-spacing-md: 1.5rem;
    --w2349-spacing-lg: 2rem;
    --w2349-spacing-xl: 3rem;

    /* Layout */
    --w2349-max-width: 430px;
    --w2349-header-height: 60px;
    --w2349-bottom-nav-height: 64px;

    /* Transitions */
    --w2349-transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--w2349-font-size-base);
    line-height: var(--w2349-line-height);
    color: var(--w2349-text);
    background-color: var(--w2349-bg);
    max-width: var(--w2349-max-width);
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.w2349-container {
    width: 100%;
    padding: 0 var(--w2349-spacing-sm);
    margin: 0 auto;
}

.w2349-wrapper {
    padding-bottom: calc(var(--w2349-bottom-nav-height) + var(--w2349-spacing-sm));
}

/* Header */
.w2349-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--w2349-header-height);
    background: linear-gradient(135deg, var(--w2349-primary) 0%, var(--w2349-accent) 100%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.w2349-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--w2349-spacing-sm);
}

.w2349-logo {
    display: flex;
    align-items: center;
    gap: var(--w2349-spacing-xs);
    text-decoration: none;
    color: var(--w2349-text);
}

.w2349-logo img {
    width: 28px;
    height: 28px;
}

.w2349-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w2349-text);
}

.w2349-header-actions {
    display: flex;
    gap: var(--w2349-spacing-xs);
}

.w2349-btn {
    padding: var(--w2349-spacing-xs) var(--w2349-spacing-sm);
    border: none;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w2349-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.w2349-btn-primary {
    background: var(--w2349-secondary);
    color: var(--w2349-dark);
}

.w2349-btn-primary:hover {
    background: #ffdb4d;
    transform: translateY(-2px);
}

.w2349-btn-secondary {
    background: transparent;
    color: var(--w2349-text);
    border: 2px solid var(--w2349-text);
}

.w2349-btn-secondary:hover {
    background: var(--w2349-text);
    color: var(--w2349-primary);
}

.w2349-menu-toggle {
    background: none;
    border: none;
    color: var(--w2349-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: var(--w2349-spacing-xs);
    border-radius: 4px;
    transition: var(--w2349-transition);
}

.w2349-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Menu */
.w2349-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--w2349-surface);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: var(--w2349-header-height);
}

.w2349-mobile-menu.active {
    right: 0;
}

.w2349-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w2349-transition);
}

.w2349-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.w2349-mobile-menu-item {
    display: block;
    padding: var(--w2349-spacing-md);
    color: var(--w2349-text);
    text-decoration: none;
    border-bottom: 1px solid var(--w2349-border);
    transition: var(--w2349-transition);
}

.w2349-mobile-menu-item:hover {
    background: var(--w2349-primary);
}

.w2349-mobile-menu-item.active {
    background: var(--w2349-primary);
    color: var(--w2349-text);
}

/* Main Content */
.w2349-main {
    margin-top: var(--w2349-header-height);
    min-height: calc(100vh - var(--w2349-header-height) - var(--w2349-bottom-nav-height));
}

/* Carousel */
.w2349-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: var(--w2349-spacing-md) 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.w2349-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.w2349-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.w2349-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.w2349-carousel-indicators {
    position: absolute;
    bottom: var(--w2349-spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--w2349-spacing-xs);
}

.w2349-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--w2349-transition);
}

.w2349-carousel-indicator.active {
    background: var(--w2349-secondary);
    transform: scale(1.2);
}

/* Game Grid */
.w2349-games-section {
    margin: var(--w2349-spacing-lg) 0;
}

.w2349-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--w2349-secondary);
    margin-bottom: var(--w2349-spacing-md);
    text-align: center;
}

.w2349-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--w2349-spacing-sm);
}

.w2349-game-card {
    background: var(--w2349-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--w2349-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.w2349-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--w2349-secondary);
    box-shadow: 0 8px 25px rgba(255,225,53,0.2);
}

.w2349-game-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.w2349-game-name {
    padding: var(--w2349-spacing-xs);
    font-size: 1.2rem;
    text-align: center;
    color: var(--w2349-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.w2349-content-section {
    background: var(--w2349-surface);
    border-radius: 12px;
    padding: var(--w2349-spacing-lg);
    margin: var(--w2349-spacing-lg) 0;
    border: 1px solid var(--w2349-border);
}

.w2349-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w2349-secondary);
    margin-bottom: var(--w2349-spacing-md);
}

.w2349-content-text {
    color: var(--w2349-text-secondary);
    line-height: var(--w2349-line-height);
    margin-bottom: var(--w2349-spacing-md);
}

.w2349-content-text a {
    color: var(--w2349-accent);
    text-decoration: none;
}

.w2349-content-text a:hover {
    text-decoration: underline;
}

/* Bottom Navigation */
.w2349-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--w2349-bottom-nav-height);
    background: linear-gradient(135deg, var(--w2349-dark) 0%, var(--w2349-primary) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.w2349-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--w2349-text-secondary);
    text-decoration: none;
    transition: var(--w2349-transition);
    cursor: pointer;
}

.w2349-bottom-nav-item:hover,
.w2349-bottom-nav-item.active {
    color: var(--w2349-secondary);
    transform: scale(1.1);
}

.w2349-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.w2349-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.w2349-footer {
    background: var(--w2349-surface);
    padding: var(--w2349-spacing-lg) 0;
    margin-top: var(--w2349-spacing-xl);
}

.w2349-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--w2349-spacing-md);
    margin-bottom: var(--w2349-spacing-lg);
}

.w2349-partner {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--w2349-transition);
}

.w2349-partner:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.w2349-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--w2349-spacing-md);
    margin-bottom: var(--w2349-spacing-md);
}

.w2349-footer-link {
    color: var(--w2349-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--w2349-transition);
}

.w2349-footer-link:hover {
    color: var(--w2349-secondary);
}

.w2349-copyright {
    text-align: center;
    color: var(--w2349-gray);
    font-size: 1.2rem;
    margin-top: var(--w2349-spacing-md);
}

/* Responsive Design */
@media (min-width: 769px) {
    .w2349-bottom-nav {
        display: none;
    }

    .w2349-wrapper {
        padding-bottom: var(--w2349-spacing-sm);
    }
}

@media (max-width: 768px) {
    .w2349-main {
        padding-bottom: 80px;
    }

    .w2349-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .w2349-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .w2349-carousel-slide img {
        height: 150px;
    }
}

/* Utility Classes */
.w2349-text-center {
    text-align: center;
}

.w2349-text-primary {
    color: var(--w2349-primary);
}

.w2349-text-secondary {
    color: var(--w2349-secondary);
}

.w2349-mt-md {
    margin-top: var(--w2349-spacing-md);
}

.w2349-mb-md {
    margin-bottom: var(--w2349-spacing-md);
}

.w2349-hidden {
    display: none;
}

/* Animations */
@keyframes w2349-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w2349-fade-in {
    animation: w2349-fadeIn 0.5s ease-out;
}