/* wagiplus7428 Layout CSS */
/* All classes use v5fa prefix for namespace isolation */

/* CSS Variables */
:root {
    --v5fa-primary: #FF7F50;
    --v5fa-secondary: #FFD700;
    --v5fa-accent: #E0FFFF;
    --v5fa-dark: #1A1A1A;
    --v5fa-medium: #808080;
    --v5fa-light: #F0FDFF;
    --v5fa-success: #28a745;
    --v5fa-warning: #ffc107;
    --v5fa-error: #dc3545;
    --v5fa-text-primary: #1A1A1A;
    --v5fa-text-secondary: #808080;
    --v5fa-text-light: #FFFFFF;
    --v5fa-border-radius: 8px;
    --v5fa-border-radius-lg: 12px;
    --v5fa-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --v5fa-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --v5fa-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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: 1.6rem;
    line-height: 1.5;
    color: var(--v5fa-text-primary);
    background-color: var(--v5fa-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.v5fa-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.v5fa-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for fixed bottom nav */
}

/* Header Styles */
.v5fa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v5fa-dark) 0%, #2d2d2d 100%);
    box-shadow: var(--v5fa-shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.v5fa-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    height: 6.4rem;
}

.v5fa-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v5fa-text-light);
    font-weight: 700;
    font-size: 1.8rem;
}

.v5fa-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 6px;
    object-fit: contain;
}

.v5fa-header-actions {
    display: flex;
    gap: 1rem;
}

.v5fa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--v5fa-border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--v5fa-transition);
    position: relative;
    overflow: hidden;
    min-height: 4rem;
}

.v5fa-btn-primary {
    background: linear-gradient(135deg, var(--v5fa-primary) 0%, #ff6b3d 100%);
    color: var(--v5fa-text-light);
}

.v5fa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
}

.v5fa-btn-secondary {
    background: transparent;
    color: var(--v5fa-text-light);
    border: 2px solid var(--v5fa-primary);
}

.v5fa-btn-secondary:hover {
    background: var(--v5fa-primary);
    transform: translateY(-2px);
}

/* Mobile Menu */
.v5fa-menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.v5fa-menu-button span {
    width: 24px;
    height: 3px;
    background: var(--v5fa-text-light);
    transition: var(--v5fa-transition);
    border-radius: 2px;
}

.v5fa-menu-button.v5fa-menu-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v5fa-menu-button.v5fa-menu-active span:nth-child(2) {
    opacity: 0;
}

.v5fa-menu-button.v5fa-menu-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.v5fa-mobile-menu {
    position: fixed;
    top: 6.4rem;
    left: 0;
    right: 0;
    background: var(--v5fa-dark);
    box-shadow: var(--v5fa-shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--v5fa-transition);
    z-index: 999;
    max-height: calc(100vh - 6.4rem);
    overflow-y: auto;
}

.v5fa-mobile-menu.v5fa-menu-open {
    transform: translateY(0);
    opacity: 1;
}

.v5fa-mobile-menu ul {
    list-style: none;
    padding: 2rem 0;
}

.v5fa-mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v5fa-mobile-menu a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--v5fa-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--v5fa-transition);
}

.v5fa-mobile-menu a:hover {
    background: rgba(255, 127, 80, 0.1);
    padding-left: 2.5rem;
}

/* Main Content */
main {
    margin-top: 8rem;
    padding: 2rem 0;
}

/* Carousel */
.v5fa-carousel {
    position: relative;
    margin: 2rem 0;
    border-radius: var(--v5fa-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--v5fa-shadow);
}

.v5fa-carousel-slide {
    display: none;
    position: relative;
    cursor: pointer;
}

.v5fa-carousel-slide.v5fa-slide-active {
    display: block;
}

.v5fa-carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: var(--v5fa-border-radius-lg);
}

.v5fa-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--v5fa-text-light);
    padding: 2rem;
}

.v5fa-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.v5fa-carousel-description {
    font-size: 1.4rem;
    opacity: 0.9;
}

.v5fa-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.v5fa-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v5fa-transition);
}

.v5fa-carousel-indicator.v5fa-indicator-active {
    background: var(--v5fa-primary);
    width: 24px;
    border-radius: 4px;
}

/* Game Categories */
.v5fa-section {
    margin: 3rem 0;
}

.v5fa-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--v5fa-text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v5fa-section-title::before {
    content: '';
    width: 4px;
    height: 2.4rem;
    background: linear-gradient(to bottom, var(--v5fa-primary), var(--v5fa-secondary));
    border-radius: 2px;
}

.v5fa-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.v5fa-game-card {
    background: white;
    border-radius: var(--v5fa-border-radius);
    overflow: hidden;
    box-shadow: var(--v5fa-shadow);
    transition: var(--v5fa-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.v5fa-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v5fa-shadow-lg);
}

.v5fa-game-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.v5fa-game-name {
    padding: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--v5fa-text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Promotional Links */
.v5fa-promo-section {
    background: linear-gradient(135deg, var(--v5fa-accent), #b8f4f4);
    padding: 2rem;
    border-radius: var(--v5fa-border-radius-lg);
    margin: 3rem 0;
    text-align: center;
}

.v5fa-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v5fa-text-primary);
    margin-bottom: 1rem;
}

.v5fa-promo-description {
    font-size: 1.4rem;
    color: var(--v5fa-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.v5fa-promo-btn {
    background: linear-gradient(135deg, var(--v5fa-primary), #ff6b3d);
    color: var(--v5fa-text-light);
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    border-radius: var(--v5fa-border-radius);
    cursor: pointer;
    transition: var(--v5fa-transition);
    box-shadow: var(--v5fa-shadow);
}

.v5fa-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

/* Features Section */
.v5fa-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.v5fa-feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--v5fa-border-radius-lg);
    box-shadow: var(--v5fa-shadow);
    text-align: center;
}

.v5fa-feature-icon {
    width: 4.8rem;
    height: 4.8rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--v5fa-primary), var(--v5fa-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v5fa-text-light);
    font-size: 2.4rem;
}

.v5fa-feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v5fa-text-primary);
    margin-bottom: 1rem;
}

.v5fa-feature-description {
    font-size: 1.4rem;
    color: var(--v5fa-text-secondary);
    line-height: 1.6;
}

/* Footer */
.v5fa-footer {
    background: var(--v5fa-dark);
    color: var(--v5fa-text-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.v5fa-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5fa-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v5fa-footer-links a {
    color: var(--v5fa-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 0;
    transition: var(--v5fa-transition);
}

.v5fa-footer-links a:hover {
    color: var(--v5fa-primary);
    padding-left: 0.5rem;
}

.v5fa-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.v5fa-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v5fa-transition);
}

.v5fa-partner-logo:hover {
    opacity: 1;
}

.v5fa-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v5fa-text-secondary);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v5fa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v5fa-dark) 0%, #2d2d2d 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6.4rem;
}

.v5fa-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--v5fa-transition);
    min-width: 6rem;
    height: 6rem;
    gap: 0.4rem;
}

.v5fa-bottom-nav a:hover {
    color: var(--v5fa-primary);
    background: rgba(255, 127, 80, 0.1);
}

.v5fa-bottom-nav a.v5fa-nav-active {
    color: var(--v5fa-primary);
    background: rgba(255, 127, 80, 0.15);
}

.v5fa-bottom-nav-icon {
    font-size: 2.4rem;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v5fa-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.v5fa-text-center {
    text-align: center;
}

.v5fa-mb-2 {
    margin-bottom: 2rem;
}

.v5fa-mt-2 {
    margin-top: 2rem;
}

.v5fa-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.v5fa-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: v5fa-spin 1s linear infinite;
}

@keyframes v5fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .v5fa-container {
        padding: 0 1rem;
    }

    .v5fa-header-content {
        padding: 1rem 1rem;
    }

    .v5fa-menu-button {
        display: flex;
    }

    .v5fa-header-actions {
        gap: 0.5rem;
    }

    .v5fa-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
        min-height: 3.6rem;
    }

    .v5fa-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .v5fa-game-image {
        height: 7rem;
    }

    .v5fa-section-title {
        font-size: 2rem;
    }

    main {
        margin-top: 7rem;
    }
}

@media (min-width: 769px) {
    .v5fa-bottom-nav {
        display: none;
    }

    .v5fa-wrapper {
        padding-bottom: 0;
    }

    main {
        margin-top: 8rem;
    }
}

/* Touch Device Optimizations */
.v5fa-touch-device .v5fa-btn,
.v5fa-touch-device .v5fa-game-card,
.v5fa-touch-device .v5fa-bottom-nav a {
    min-height: 4.4rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.v5fa-btn:focus,
.v5fa-game-card:focus,
.v5fa-bottom-nav a:focus {
    outline: 2px solid var(--v5fa-primary);
    outline-offset: 2px;
}