/**
 * nino gaming - Main Stylesheet
 * CSS classes prefixed with "v343-" for namespace isolation
 * Version: 1.0.0
 * Author: nino gaming Development Team
 * Description: Core styling for nino gaming mobile-first platform
 */

/* CSS Variables Definition */
:root {
    --v343-primary-color: #FF7F50;
    --v343-secondary-color: #FF7F50;
    --v343-accent-color: #FF6347;
    --v343-dark-bg: #141414;
    --v343-darker-bg: #0a0a0a;
    --v343-light-text: #ffffff;
    --v343-medium-text: #cccccc;
    --v343-dark-text: #666666;
    --v343-success: #4CAF50;
    --v343-warning: #FF9800;
    --v343-error: #F44336;
    --v343-border-radius: 8px;
    --v343-border-radius-small: 4px;
    --v343-border-radius-large: 12px;
    --v343-spacing-xs: 4px;
    --v343-spacing-sm: 8px;
    --v343-spacing-md: 16px;
    --v343-spacing-lg: 24px;
    --v343-spacing-xl: 32px;
    --v343-header-height: 60px;
    --v343-footer-height: 60px;
    --v343-z-header: 1000;
    --v343-z-mobile-nav: 1000;
    --v343-z-mobile-menu: 9999;
    --v343-z-dropdown: 1001;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v343-light-text);
    background-color: var(--v343-dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container and Layout */
.v343-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v343-spacing-sm);
    position: relative;
}

.v343-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--v343-dark-bg) 0%, var(--v343-darker-bg) 100%);
}

.v343-main {
    flex: 1;
    padding-top: var(--v343-header-height);
    padding-bottom: var(--v343-footer-height);
}

.v343-grid {
    display: grid;
    gap: var(--v343-spacing-md);
}

.v343-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.v343-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.v343-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.v343-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v343-header-height);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 127, 80, 0.2);
    z-index: var(--v343-z-header);
    transition: transform 0.3s ease;
}

.v343-header-hidden {
    transform: translateY(-100%);
}

.v343-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--v343-spacing-md);
}

.v343-logo {
    display: flex;
    align-items: center;
    gap: var(--v343-spacing-sm);
    text-decoration: none;
    color: var(--v343-light-text);
}

.v343-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--v343-border-radius-small);
}

.v343-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v343-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v343-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v343-spacing-sm);
}

.v343-btn {
    padding: var(--v343-spacing-xs) var(--v343-spacing-md);
    border: none;
    border-radius: var(--v343-border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--v343-spacing-xs);
    min-height: 36px;
    min-width: 80px;
}

.v343-btn-primary {
    background: linear-gradient(135deg, var(--v343-primary-color), var(--v343-accent-color));
    color: var(--v343-light-text);
}

.v343-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
}

.v343-btn-secondary {
    background: transparent;
    color: var(--v343-light-text);
    border: 2px solid var(--v343-primary-color);
}

.v343-btn-secondary:hover {
    background: var(--v343-primary-color);
    color: var(--v343-light-text);
}

.v343-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 3px;
}

.v343-hamburger span {
    width: 20px;
    height: 2px;
    background: var(--v343-light-text);
    transition: all 0.3s ease;
}

.v343-hamburger.v343-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v343-hamburger.v343-active span:nth-child(2) {
    opacity: 0;
}

.v343-hamburger.v343-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.v343-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v343-dark-bg);
    z-index: var(--v343-z-mobile-menu);
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.v343-mobile-menu.v343-menu-open {
    left: 0;
}

.v343-mobile-menu-header {
    padding: var(--v343-spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v343-mobile-menu-close {
    position: absolute;
    top: var(--v343-spacing-md);
    right: var(--v343-spacing-md);
    background: transparent;
    border: none;
    color: var(--v343-light-text);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v343-mobile-menu-nav {
    padding: var(--v343-spacing-md);
}

.v343-mobile-menu-item {
    display: block;
    padding: var(--v343-spacing-md);
    color: var(--v343-light-text);
    text-decoration: none;
    border-radius: var(--v343-border-radius);
    margin-bottom: var(--v343-spacing-xs);
    transition: background-color 0.3s ease;
}

.v343-mobile-menu-item:hover,
.v343-mobile-menu-item.v343-active {
    background: rgba(255, 127, 80, 0.2);
    color: var(--v343-primary-color);
}

/* Mobile Bottom Navigation */
.v343-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 127, 80, 0.2);
    z-index: var(--v343-z-mobile-nav);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--v343-spacing-sm);
}

.v343-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    height: 50px;
    text-decoration: none;
    color: var(--v343-medium-text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.v343-nav-item:hover,
.v343-nav-item.v343-active {
    color: var(--v343-primary-color);
    transform: scale(1.1);
}

.v343-nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

.v343-nav-text {
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v343-nav-item:hover .v343-nav-icon {
    transform: translateY(-2px);
}

/* Carousel Styles */
.v343-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--v343-border-radius);
    overflow: hidden;
    margin: var(--v343-spacing-md) 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.v343-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v343-slide.v343-active {
    opacity: 1;
}

.v343-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v343-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--v343-spacing-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--v343-light-text);
}

.v343-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--v343-spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.v343-slide-description {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.v343-carousel-dots {
    position: absolute;
    bottom: var(--v343-spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--v343-spacing-xs);
    z-index: 10;
}

.v343-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v343-dot.v343-active {
    background: var(--v343-primary-color);
    width: 16px;
    border-radius: 4px;
}

/* Game Grid Styles */
.v343-games-section {
    margin: var(--v343-spacing-lg) 0;
}

.v343-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--v343-spacing-md);
    padding: 0 var(--v343-spacing-sm);
}

.v343-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v343-primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v343-section-more {
    color: var(--v343-primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--v343-spacing-xs);
}

.v343-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v343-spacing-sm);
    padding: 0 var(--v343-spacing-sm);
}

.v343-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--v343-spacing-xs);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: var(--v343-spacing-xs);
    border-radius: var(--v343-border-radius);
}

.v343-game-item:hover {
    transform: scale(1.05);
    background: rgba(255, 127, 80, 0.1);
}

.v343-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v343-border-radius);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.v343-game-name {
    font-size: 1rem;
    color: var(--v343-light-text);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Content Card Styles */
.v343-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v343-border-radius);
    padding: var(--v343-spacing-lg);
    margin: var(--v343-spacing-md) 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.v343-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 127, 80, 0.3);
}

.v343-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v343-primary-color);
    margin-bottom: var(--v343-spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--v343-spacing-sm);
}

.v343-card-content {
    color: var(--v343-medium-text);
    line-height: 1.6;
}

.v343-card-list {
    list-style: none;
    padding: 0;
}

.v343-card-list li {
    padding: var(--v343-spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--v343-spacing-sm);
}

.v343-card-list li:last-child {
    border-bottom: none;
}

/* Footer Styles */
.v343-footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 127, 80, 0.2);
    padding: var(--v343-spacing-lg) 0;
    margin-top: auto;
}

.v343-footer-content {
    padding: 0 var(--v343-spacing-sm);
}

.v343-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v343-spacing-md);
    margin-bottom: var(--v343-spacing-lg);
    justify-content: center;
}

.v343-footer-link {
    color: var(--v343-medium-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: var(--v343-spacing-xs) var(--v343-spacing-sm);
    border-radius: var(--v343-border-radius);
}

.v343-footer-link:hover {
    color: var(--v343-primary-color);
    background: rgba(255, 127, 80, 0.1);
}

.v343-partners {
    margin: var(--v343-spacing-lg) 0;
    text-align: center;
}

.v343-partners-title {
    font-size: 1.4rem;
    color: var(--v343-medium-text);
    margin-bottom: var(--v343-spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v343-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: var(--v343-spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.v343-partner-logo {
    width: 100%;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: var(--v343-border-radius-small);
}

.v343-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.v343-copyright {
    text-align: center;
    color: var(--v343-dark-text);
    font-size: 1.1rem;
    padding: var(--v343-spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.v343-text-center {
    text-align: center;
}

.v343-text-left {
    text-align: left;
}

.v343-text-right {
    text-align: right;
}

.v343-hidden {
    display: none;
}

.v343-visible {
    display: block;
}

.v343-flex {
    display: flex;
}

.v343-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v343-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v343-flex-column {
    display: flex;
    flex-direction: column;
}

.v343-w-full {
    width: 100%;
}

.v343-h-full {
    height: 100%;
}

.v343-mt-sm {
    margin-top: var(--v343-spacing-sm);
}

.v343-mb-sm {
    margin-bottom: var(--v343-spacing-sm);
}

.v343-p-sm {
    padding: var(--v343-spacing-sm);
}

.v343-p-md {
    padding: var(--v343-spacing-md);
}

/* Touch Active States */
.v343-touch-active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Lazy Loading */
.v343-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v343-lazy-loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v343-mobile-bottom-nav {
        display: flex;
    }

    .v343-desktop-nav {
        display: none;
    }

    .v343-hamburger {
        display: flex;
    }

    .v343-main {
        padding-bottom: 80px;
    }

    .v343-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .v343-mobile-bottom-nav {
        display: none;
    }

    .v343-desktop-nav {
        display: flex;
    }

    .v343-hamburger {
        display: none;
    }

    .v343-main {
        padding-bottom: var(--v343-spacing-lg);
    }

    .v343-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .v343-container {
        padding: 0 var(--v343-spacing-lg);
    }
}

/* Animation Classes */
@keyframes v343-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes v343-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes v343-slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes v343-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.v343-fade-in {
    animation: v343-fadeIn 0.5s ease-out;
}

.v343-slide-in-left {
    animation: v343-slideInLeft 0.5s ease-out;
}

.v343-slide-in-right {
    animation: v343-slideInRight 0.5s ease-out;
}

.v343-pulse {
    animation: v343-pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--v343-darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--v343-primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--v343-accent-color);
}

/* Selection Styles */
::selection {
    background: var(--v343-primary-color);
    color: var(--v343-light-text);
}

::-moz-selection {
    background: var(--v343-primary-color);
    color: var(--v343-light-text);
}

/* Focus Styles */
.v343-btn:focus,
.v343-nav-item:focus,
.v343-game-item:focus {
    outline: 2px solid var(--v343-primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .v343-header,
    .v343-mobile-bottom-nav,
    .v343-mobile-menu {
        display: none;
    }

    .v343-main {
        padding-top: 0;
        padding-bottom: 0;
    }

    body {
        background: white;
        color: black;
    }
}