/**
 * PH NN777 Gaming Platform - Main Stylesheet
 * All classes use prefix: v028-
 * Mobile-first responsive design (max-width: 430px)
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --v028-primary: #DA70D6;
    --v028-primary-dark: #c850c5;
    --v028-primary-light: #e890e3;
    --v028-secondary: #9966CC;
    --v028-secondary-dark: #7d4db8;
    --v028-bg-light: #EEEEEE;
    --v028-bg-dark: #262626;
    --v028-bg-card: #1a1a1a;
    --v028-text-light: #ffffff;
    --v028-text-dark: #333333;
    --v028-text-gray: #999999;
    --v028-border: #444444;
    --v028-shadow: rgba(218, 112, 214, 0.2);
    --v028-shadow-strong: rgba(218, 112, 214, 0.4);
    --v028-overlay: rgba(0, 0, 0, 0.7);
    --v028-success: #4CAF50;
    --v028-warning: #FF9800;
    --v028-danger: #F44336;
    --v028-header-height: 60px;
    --v028-bottom-nav-height: 64px;
    --v028-transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--v028-bg-dark);
    color: var(--v028-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--v028-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--v028-transition);
}

/* Header Styles */
.v028-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v028-header-height);
    background: linear-gradient(135deg, var(--v028-bg-dark) 0%, #1a0a1a 100%);
    border-bottom: 2px solid var(--v028-primary);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.v028-header-scrolled {
    background: rgba(38, 38, 38, 0.98);
    backdrop-filter: blur(10px);
}

.v028-header-container {
    max-width: 430px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.v028-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--v028-primary) 0%, var(--v028-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v028-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v028-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--v028-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v028-btn-primary {
    background: linear-gradient(135deg, var(--v028-primary) 0%, var(--v028-secondary) 100%);
    color: var(--v028-text-light);
    box-shadow: 0 4px 12px var(--v028-shadow);
}

.v028-btn-primary:hover,
.v028-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--v028-shadow-strong);
}

.v028-btn-outline {
    border: 2px solid var(--v028-primary);
    color: var(--v028-primary);
    background: rgba(218, 112, 214, 0.1);
}

.v028-btn-outline:hover,
.v028-btn-outline:active {
    background: var(--v028-primary);
    color: var(--v028-text-light);
}

.v028-menu-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 4px;
}

.v028-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--v028-primary);
    border-radius: 2px;
    transition: var(--v028-transition);
}

/* Mobile Menu */
.v028-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a0a1a 0%, var(--v028-bg-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.v028-menu-open {
    right: 0;
}

.v028-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--v028-overlay);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v028-transition);
}

.v028-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v028-menu-header {
    padding: 20px;
    border-bottom: 2px solid var(--v028-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v028-menu-close {
    font-size: 28px;
    color: var(--v028-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v028-menu-nav {
    padding: 20px 0;
}

.v028-menu-item {
    display: block;
    padding: 14px 24px;
    color: var(--v028-text-light);
    border-left: 3px solid transparent;
    transition: var(--v028-transition);
}

.v028-menu-item:hover,
.v028-menu-item:active {
    background: rgba(218, 112, 214, 0.1);
    border-left-color: var(--v028-primary);
    padding-left: 28px;
}

/* Main Content */
.v028-main {
    margin-top: var(--v028-header-height);
    padding-bottom: var(--v028-bottom-nav-height);
    min-height: calc(100vh - var(--v028-header-height));
}

/* Hero Carousel */
.v028-hero {
    position: relative;
    overflow: hidden;
    background: var(--v028-bg-card);
}

.v028-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}

.v028-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.v028-carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.v028-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v028-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.v028-carousel-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--v028-primary);
}

.v028-carousel-text {
    font-size: 14px;
    color: var(--v028-text-light);
    margin-bottom: 16px;
}

.v028-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.v028-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--v028-transition);
}

.v028-dot-active {
    width: 24px;
    border-radius: 4px;
    background: var(--v028-primary);
}

/* Section Styles */
.v028-section {
    padding: 32px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.v028-section-header {
    margin-bottom: 20px;
}

.v028-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v028-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--v028-primary) 0%, var(--v028-secondary) 100%);
    border-radius: 2px;
}

.v028-section-subtitle {
    font-size: 14px;
    color: var(--v028-text-gray);
}

/* Game Grid */
.v028-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.v028-game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--v028-bg-card);
    transition: var(--v028-transition);
}

.v028-game-card:hover,
.v028-game-card:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--v028-shadow);
}

.v028-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v028-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--v028-transition);
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.v028-game-card:hover .v028-game-overlay,
.v028-game-card:active .v028-game-overlay {
    opacity: 1;
}

.v028-game-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--v028-text-light);
    line-height: 1.2;
}

/* Bottom Navigation */
.v028-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v028-bottom-nav-height);
    background: linear-gradient(135deg, var(--v028-bg-dark) 0%, #1a0a1a 100%);
    border-top: 2px solid var(--v028-primary);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.v028-bottom-nav-container {
    max-width: 430px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.v028-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    transition: var(--v028-transition);
}

.v028-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: var(--v028-transition);
}

.v028-nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    transition: var(--v028-transition);
}

.v028-nav-active .v028-nav-icon {
    color: var(--v028-primary);
    transform: scale(1.15);
}

.v028-nav-active .v028-nav-label {
    color: var(--v028-primary);
}

.v028-nav-item:hover .v028-nav-icon,
.v028-nav-item:active .v028-nav-icon {
    color: var(--v028-primary);
    transform: scale(1.1);
}

/* Footer */
.v028-footer {
    background: linear-gradient(180deg, var(--v028-bg-dark) 0%, #0a0a0a 100%);
    border-top: 2px solid var(--v028-border);
    padding: 32px 16px 16px;
    margin-top: 40px;
}

.v028-footer-container {
    max-width: 430px;
    margin: 0 auto;
}

.v028-footer-section {
    margin-bottom: 24px;
}

.v028-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--v028-primary);
    margin-bottom: 12px;
}

.v028-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.v028-footer-link {
    display: block;
    font-size: 14px;
    color: var(--v028-text-gray);
    padding: 6px 0;
    transition: var(--v028-transition);
}

.v028-footer-link:hover,
.v028-footer-link:active {
    color: var(--v028-primary);
    padding-left: 8px;
}

.v028-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.v028-partner-logo {
    height: 32px;
    opacity: 0.6;
    transition: var(--v028-transition);
}

.v028-partner-logo:hover {
    opacity: 1;
}

.v028-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--v028-border);
    font-size: 12px;
    color: var(--v028-text-gray);
}

/* Content Sections */
.v028-content-section {
    background: var(--v028-bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--v028-border);
}

.v028-content-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--v028-primary);
    margin-bottom: 12px;
}

.v028-content-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--v028-text-light);
    margin-bottom: 12px;
}

.v028-content-link {
    color: var(--v028-primary);
    text-decoration: underline;
}

.v028-content-link:hover {
    color: var(--v028-primary-light);
}

/* Utility Classes */
.v028-text-center {
    text-align: center;
}

.v028-text-primary {
    color: var(--v028-primary);
}

.v028-mb-16 {
    margin-bottom: 16px;
}

.v028-mt-16 {
    margin-top: 16px;
}

.v028-img-loaded {
    animation: v028FadeIn 0.3s ease;
}

@keyframes v028FadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .v028-bottom-nav {
        display: none;
    }

    .v028-main {
        padding-bottom: 0;
    }

    .v028-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* Mobile Padding */
@media (max-width: 768px) {
    .v028-main {
        padding-bottom: 80px;
    }
}
