/**
 * Jiliaaa PH - Gaming Platform Styles
 * Mobile-first responsive design with v345- prefix
 * Pink and Blue gaming theme with playful colors
 */

/* Root variables and reset */
:root {
    --primary-pink: #FFC0CB;
    --light-blue: #87CEFA;
    --hot-pink: #FF69B4;
    --indian-red: #CD5C5C;
    --dark-bg: #0D1117;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, var(--hot-pink), var(--primary-pink));
    --gradient-secondary: linear-gradient(135deg, var(--light-blue), var(--primary-pink));
    --shadow-lg: 0 10px 25px rgba(255, 105, 180, 0.3);
    --shadow-xl: 0 20px 40px rgba(255, 105, 180, 0.4);
}

* {
    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.4rem;
    line-height: 1.5;
    color: var(--text-light);
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(135, 206, 250, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container */
.v345-container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Header */
.v345-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--hot-pink);
    z-index: 1000;
    padding: 1rem 0;
}

.v345-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v345-logo {
    flex-shrink: 0;
}

.v345-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.v345-header-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.v345-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-height: 44px;
    justify-content: center;
}

.v345-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.v345-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.v345-btn-secondary {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.v345-btn-secondary:hover {
    background: var(--primary-pink);
    color: var(--dark-bg);
}

.v345-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid var(--hot-pink);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v345-menu-toggle:hover {
    background: rgba(255, 105, 180, 0.3);
}

.v345-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary-pink);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.v345-menu-toggle.v345-menu-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.v345-menu-toggle.v345-menu-active span:nth-child(2) {
    opacity: 0;
}

.v345-menu-toggle.v345-menu-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.v345-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--hot-pink);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.v345-mobile-menu.v345-menu-open {
    left: 0;
}

.v345-mobile-menu-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
}

.v345-mobile-menu-nav {
    padding: 1rem 0;
}

.v345-mobile-menu-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.v345-mobile-menu-link:hover {
    background: rgba(255, 105, 180, 0.1);
    border-left-color: var(--hot-pink);
}

/* Main Content */
main {
    margin-top: 80px;
    padding-bottom: 80px;
    min-height: calc(100vh - 160px);
}

/* Carousel */
.v345-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.v345-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v345-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v345-carousel-slide.v345-active {
    opacity: 1;
}

.v345-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.v345-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v345-carousel-indicator.v345-active {
    background: var(--primary-pink);
    width: 24px;
    border-radius: 4px;
}

/* Section Headers */
.v345-section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.v345-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.v345-section-subtitle {
    font-size: 1.4rem;
    color: var(--primary-pink);
    opacity: 0.9;
}

/* Tabs */
.v345-tabs {
    margin: 2rem 0;
}

.v345-tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.v345-tab-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 105, 180, 0.1);
    border: 2px solid transparent;
    border-radius: 20px;
    color: var(--primary-pink);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.v345-tab-btn:hover {
    background: rgba(255, 105, 180, 0.2);
}

.v345-tab-btn.v345-active {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: var(--hot-pink);
}

.v345-tab-content {
    display: none;
}

.v345-tab-content.v345-active {
    display: block;
}

/* Game Grid */
.v345-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.v345-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    min-height: 80px;
    justify-content: center;
}

.v345-game-item:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: scale(1.05);
}

.v345-game-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.v345-game-name {
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--light-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature Cards */
.v345-feature-card {
    background: rgba(255, 105, 180, 0.05);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.v345-feature-card:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.v345-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.v345-feature-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Partner Section */
.v345-partners {
    margin: 3rem 0;
    text-align: center;
}

.v345-partner-title {
    font-size: 1.8rem;
    color: var(--light-blue);
    margin-bottom: 2rem;
}

.v345-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.v345-partner-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: all 0.3s ease;
}

.v345-partner-item:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: scale(1.1);
}

.v345-partner-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.v345-partner-item:hover img {
    filter: grayscale(0%);
}

/* Bottom Navigation */
.v345-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--hot-pink);
    z-index: 1000;
    padding: 0.8rem 0;
}

.v345-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v345-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--primary-pink);
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    cursor: pointer;
}

.v345-nav-item:hover {
    color: var(--light-blue);
    transform: scale(1.1);
}

.v345-nav-item.active {
    color: var(--light-blue);
}

.v345-nav-icon {
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v345-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.v345-footer {
    background: rgba(13, 17, 23, 0.8);
    border-top: 1px solid rgba(255, 105, 180, 0.3);
    padding: 2rem 0;
    margin-top: 4rem;
}

.v345-footer-content {
    text-align: center;
}

.v345-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.v345-footer-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.v345-footer-link:hover {
    color: var(--light-blue);
}

.v345-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

/* Utility Classes */
.v345-text-center {
    text-align: center;
}

.v345-mt-2 {
    margin-top: 2rem;
}

.v345-mb-2 {
    margin-bottom: 2rem;
}

.v345-hidden {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .v345-container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .v345-header {
        position: sticky;
    }

    .v345-menu-toggle {
        display: none;
    }

    .v345-mobile-menu {
        position: static;
        left: 0;
        width: auto;
        height: auto;
        background: transparent;
        border-right: none;
        border-bottom: 1px solid rgba(255, 105, 180, 0.3);
    }

    .v345-mobile-menu.v345-menu-open {
        left: 0;
    }

    .v345-mobile-menu-header {
        display: none;
    }

    .v345-mobile-menu-nav {
        display: flex;
        padding: 1rem 0;
        justify-content: center;
        gap: 2rem;
    }

    .v345-mobile-menu-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.5rem 1rem;
    }

    .v345-mobile-menu-link:hover {
        border-left: none;
        border-bottom-color: var(--hot-pink);
    }

    main {
        padding-bottom: 2rem;
    }

    .v345-bottom-nav {
        display: none;
    }

    .v345-carousel {
        height: 300px;
    }

    .v345-game-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.5rem;
    }

    .v345-game-item {
        min-height: 100px;
    }

    .v345-game-icon {
        width: 50px;
        height: 50px;
    }

    .v345-game-name {
        font-size: 1.3rem;
    }

    .v345-partner-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Animations */
@keyframes v345-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v345-animate-fade-in {
    animation: v345-fadeIn 0.5s ease-out;
}

@keyframes v345-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.v345-animate-pulse {
    animation: v345-pulse 2s ease-in-out infinite;
}

/* Scrollbar Styling */
.v345-mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.v345-mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.v345-mobile-menu::-webkit-scrollbar-thumb {
    background: var(--hot-pink);
    border-radius: 3px;
}

.v345-mobile-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}