/* NicePH CSS Styles - Mobile First Design */
/* All classes use v5a6- prefix for namespace isolation */

/* CSS Variables */
:root {
    --v5a6-primary: #34495E;
    --v5a6-secondary: #FFB347;
    --v5a6-background: #FFFFFF;
    --v5a6-text: #333333;
    --v5a6-text-light: #666666;
    --v5a6-border: #E0E0E0;
    --v5a6-shadow: rgba(0, 0, 0, 0.1);
    --v5a6-radius: 8px;
    --v5a6-spacing: 16px;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v5a6-text);
    background-color: var(--v5a6-background);
    overflow-x: hidden;
}

/* Container Styles */
.v5a6-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v5a6-spacing);
    position: relative;
}

.v5a6-wrapper {
    padding: var(--v5a6-spacing) 0;
}

/* Header Styles */
.v5a6-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v5a6-background);
    border-bottom: 1px solid var(--v5a6-border);
    z-index: 1000;
    box-shadow: 0 2px 4px var(--v5a6-shadow);
}

.v5a6-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--v5a6-spacing);
    height: 60px;
}

.v5a6-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--v5a6-text);
}

.v5a6-logo img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.v5a6-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--v5a6-primary);
}

.v5a6-header-actions {
    display: flex;
    gap: 12px;
}

.v5a6-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--v5a6-radius);
    transition: all 0.3s ease;
}

.v5a6-menu-toggle:hover {
    background-color: var(--v5a6-border);
}

/* Button Styles */
.v5a6-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--v5a6-radius);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    gap: 8px;
}

.v5a6-btn-primary {
    background-color: var(--v5a6-secondary);
    color: white;
}

.v5a6-btn-primary:hover {
    background-color: #E5A43C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--v5a6-shadow);
}

.v5a6-btn-secondary {
    background-color: var(--v5a6-primary);
    color: white;
}

.v5a6-btn-secondary:hover {
    background-color: #2C3E50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--v5a6-shadow);
}

.v5a6-btn-outline {
    background-color: transparent;
    color: var(--v5a6-primary);
    border: 2px solid var(--v5a6-primary);
}

.v5a6-btn-outline:hover {
    background-color: var(--v5a6-primary);
    color: white;
}

/* Mobile Menu */
.v5a6-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v5a6-background);
    box-shadow: -2px 0 8px var(--v5a6-shadow);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v5a6-mobile-menu.v5a6-menu-open {
    right: 0;
}

.v5a6-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v5a6-spacing);
    border-bottom: 1px solid var(--v5a6-border);
}

.v5a6-menu-close {
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
}

.v5a6-menu-nav {
    padding: var(--v5a6-spacing);
}

.v5a6-menu-item {
    display: block;
    padding: 12px 0;
    color: var(--v5a6-text);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--v5a6-border);
    transition: color 0.3s ease;
}

.v5a6-menu-item:hover {
    color: var(--v5a6-secondary);
}

/* Main Content */
main {
    padding-top: 76px;
    padding-bottom: 80px;
}

.v5a6-section {
    margin-bottom: 32px;
}

/* Carousel Styles */
.v5a6-carousel {
    position: relative;
    height: 200px;
    margin-bottom: var(--v5a6-spacing);
    border-radius: var(--v5a6-radius);
    overflow: hidden;
}

.v5a6-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v5a6-carousel-slide.v5a6-active {
    opacity: 1;
}

.v5a6-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v5a6-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v5a6-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v5a6-carousel-dot.v5a6-active {
    background: white;
    transform: scale(1.2);
}

/* Game Grid Styles */
.v5a6-game-section {
    margin-bottom: 32px;
}

.v5a6-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--v5a6-primary);
    margin-bottom: 16px;
    text-align: center;
}

.v5a6-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: var(--v5a6-spacing);
}

.v5a6-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--v5a6-text);
    transition: transform 0.3s ease;
}

.v5a6-game-item:hover {
    transform: scale(1.05);
}

.v5a6-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v5a6-radius);
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid var(--v5a6-border);
}

.v5a6-game-name {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.2;
    max-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card Styles */
.v5a6-card {
    background: var(--v5a6-background);
    border: 1px solid var(--v5a6-border);
    border-radius: var(--v5a6-radius);
    padding: var(--v5a6-spacing);
    margin-bottom: var(--v5a6-spacing);
    box-shadow: 0 2px 4px var(--v5a6-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v5a6-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--v5a6-shadow);
}

.v5a6-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--v5a6-primary);
    margin-bottom: 12px;
}

.v5a6-card-content {
    font-size: 1.4rem;
    color: var(--v5a6-text-light);
    line-height: 1.6;
}

/* Bottom Navigation */
.v5a6-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v5a6-primary);
    border-top: 1px solid var(--v5a6-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.v5a6-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.v5a6-bottom-nav-item:hover,
.v5a6-bottom-nav-item.v5a6-active {
    color: var(--v5a6-secondary);
}

.v5a6-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.v5a6-bottom-nav-text {
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
}

/* Ripple Effect */
.v5a6-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 179, 71, 0.3);
    transform: scale(0);
    animation: v5a6-ripple 0.6s ease-out;
}

@keyframes v5a6-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer Styles */
.v5a6-footer {
    background: var(--v5a6-primary);
    color: white;
    padding: 32px 0 20px;
    margin-top: 48px;
}

.v5a6-footer-content {
    text-align: center;
    margin-bottom: 24px;
}

.v5a6-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.v5a6-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.v5a6-footer-link:hover {
    color: var(--v5a6-secondary);
}

.v5a6-partners {
    margin-bottom: 24px;
}

.v5a6-partners-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.v5a6-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.v5a6-partner-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--v5a6-radius);
}

.v5a6-partner-item img {
    max-width: 32px;
    max-height: 32px;
    opacity: 0.8;
}

.v5a6-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading State */
.v5a6-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (min-width: 769px) {
    .v5a6-bottom-nav {
        display: none;
    }

    .v5a6-menu-toggle {
        display: none;
    }

    .v5a6-header-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    main {
        padding-bottom: 0;
    }

    .v5a6-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .v5a6-container {
        max-width: none;
        padding: 0 24px;
    }
}

/* Utility Classes */
.v5a6-text-center {
    text-align: center;
}

.v5a6-mb-16 {
    margin-bottom: 16px;
}

.v5a6-mb-24 {
    margin-bottom: 24px;
}

.v5a6-mt-16 {
    margin-top: 16px;
}

.v5a6-mt-24 {
    margin-top: 24px;
}

/* Icon Styles */
.v5a6-icon {
    vertical-align: middle;
    margin-right: 4px;
}

/* Responsive Typography */
@media (max-width: 480px) {
    .v5a6-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .v5a6-section-title {
        font-size: 1.8rem;
    }

    .v5a6-game-name {
        font-size: 1.1rem;
    }
}