/**
 * jl777 Ph - Main Stylesheet
 * Mobile-first responsive design (max-width: 430px)
 * Prefix: v44c-
 * Colors: #4169E1 (primary) | #87CEFA (accent) | #34495E (background)
 */

/* CSS Variables */
:root {
    --v44c-primary: #4169E1;
    --v44c-primary-dark: #3157b8;
    --v44c-primary-light: #5a7fe8;
    --v44c-accent: #87CEFA;
    --v44c-bg: #34495E;
    --v44c-bg-dark: #2c3e50;
    --v44c-bg-light: #3d566e;
    --v44c-text: #ffffff;
    --v44c-text-muted: #b8c5d6;
    --v44c-text-dark: #1a252f;
    --v44c-success: #27ae60;
    --v44c-warning: #f39c12;
    --v44c-danger: #e74c3c;
    --v44c-gold: #f1c40f;
    --v44c-shadow: rgba(0, 0, 0, 0.3);
    --v44c-radius: 12px;
    --v44c-radius-sm: 8px;
    --v44c-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--v44c-bg);
    color: var(--v44c-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a {
    color: var(--v44c-accent);
    text-decoration: none;
    transition: var(--v44c-transition);
}

a:hover {
    color: var(--v44c-text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.v44c-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.v44c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v44c-primary), var(--v44c-bg-dark));
    padding: 12px 16px;
    transition: var(--v44c-transition);
}

.v44c-header-scrolled {
    background: rgba(52, 73, 94, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--v44c-shadow);
}

.v44c-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v44c-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v44c-logo img {
    height: 40px;
    width: auto;
}

.v44c-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--v44c-gold), var(--v44c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v44c-header-btns {
    display: flex;
    gap: 8px;
}

.v44c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--v44c-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v44c-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v44c-btn-login {
    background: transparent;
    border: 2px solid var(--v44c-accent);
    color: var(--v44c-accent);
}

.v44c-btn-login:hover {
    background: var(--v44c-accent);
    color: var(--v44c-bg-dark);
}

.v44c-btn-register {
    background: linear-gradient(135deg, var(--v44c-gold), #f39c12);
    color: var(--v44c-text-dark);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.v44c-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

/* Mobile Menu Toggle */
.v44c-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v44c-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.v44c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v44c-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.v44c-menu-active {
    right: 0;
}

.v44c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v44c-transition);
}

.v44c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v44c-mobile-menu ul {
    list-style: none;
}

.v44c-mobile-menu li {
    margin-bottom: 8px;
}

.v44c-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--v44c-text);
    border-radius: var(--v44c-radius-sm);
    transition: var(--v44c-transition);
}

.v44c-mobile-menu a:hover {
    background: var(--v44c-primary);
    color: var(--v44c-text);
}

.v44c-no-scroll {
    overflow: hidden;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Section */
.v44c-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.v44c-carousel {
    position: relative;
    width: 100%;
    height: 200px;
}

.v44c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v44c-slide-active {
    opacity: 1;
}

.v44c-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v44c-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.v44c-hero-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.v44c-hero-subtitle {
    font-size: 0.9rem;
    color: var(--v44c-text-muted);
    margin-bottom: 12px;
}

/* Section Styles */
.v44c-section {
    padding: 24px 0;
}

.v44c-section-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.v44c-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--v44c-primary), var(--v44c-accent));
    border-radius: 2px;
}

/* Tabs */
.v44c-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.v44c-tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--v44c-bg-light);
    border: none;
    border-radius: 20px;
    color: var(--v44c-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--v44c-transition);
    white-space: nowrap;
}

.v44c-tab-btn:hover,
.v44c-tab-active {
    background: var(--v44c-primary);
    color: var(--v44c-text);
}

.v44c-tab-content {
    display: none;
}

.v44c-content-active {
    display: block;
}

/* Games Grid */
.v44c-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.v44c-game-card {
    position: relative;
    background: var(--v44c-bg-light);
    border-radius: var(--v44c-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v44c-transition);
}

.v44c-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--v44c-shadow);
}

.v44c-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v44c-game-name {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.v44c-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.v44c-feature-card {
    background: linear-gradient(135deg, var(--v44c-bg-light), var(--v44c-bg-dark));
    border-radius: var(--v44c-radius);
    padding: 20px;
    text-align: center;
    transition: var(--v44c-transition);
}

.v44c-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--v44c-shadow);
}

.v44c-feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--v44c-accent);
}

.v44c-feature-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--v44c-text);
}

.v44c-feature-desc {
    font-size: 0.85rem;
    color: var(--v44c-text-muted);
}

/* Info Section */
.v44c-info-section {
    background: var(--v44c-bg-light);
    border-radius: var(--v44c-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.v44c-info-title {
    color: var(--v44c-accent);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.v44c-info-list {
    list-style: none;
}

.v44c-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v44c-info-list li:last-child {
    border-bottom: none;
}

.v44c-info-list i {
    color: var(--v44c-success);
    margin-top: 4px;
}

/* Partners Section */
.v44c-partners {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px 0;
}

.v44c-partner-logo {
    background: var(--v44c-bg-light);
    border-radius: var(--v44c-radius-sm);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v44c-partner-logo img {
    max-width: 100%;
    max-height: 40px;
}

/* Footer */
.v44c-footer {
    background: var(--v44c-bg-dark);
    padding: 32px 16px 16px;
    margin-top: 32px;
}

.v44c-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.v44c-footer-col h4 {
    color: var(--v44c-accent);
    margin-bottom: 12px;
    font-size: 1rem;
}

.v44c-footer-col ul {
    list-style: none;
}

.v44c-footer-col li {
    margin-bottom: 8px;
}

.v44c-footer-col a {
    color: var(--v44c-text-muted);
    font-size: 0.9rem;
}

.v44c-footer-col a:hover {
    color: var(--v44c-accent);
}

.v44c-footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v44c-footer-bottom p {
    font-size: 0.85rem;
    color: var(--v44c-text-muted);
    margin-bottom: 8px;
}

/* Mobile Bottom Navigation */
.v44c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--v44c-bg-dark), #1a252f);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px var(--v44c-shadow);
    padding-bottom: env(safe-area-inset-bottom);
}

.v44c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--v44c-text-muted);
    cursor: pointer;
    transition: var(--v44c-transition);
    padding: 8px;
}

.v44c-nav-btn:hover,
.v44c-nav-btn-active {
    color: var(--v44c-accent);
    transform: scale(1.1);
}

.v44c-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.v44c-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Desktop - Hide Bottom Nav */
@media (min-width: 769px) {
    .v44c-bottom-nav {
        display: none;
    }

    .v44c-menu-toggle {
        display: none;
    }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
    .v44c-container {
        max-width: 1200px;
        padding: 0 24px;
    }

    .v44c-games-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .v44c-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .v44c-carousel {
        height: 400px;
    }

    .v44c-partners {
        grid-template-columns: repeat(14, 1fr);
    }
}

/* Utility Classes */
.v44c-text-center { text-align: center; }
.v44c-text-accent { color: var(--v44c-accent); }
.v44c-text-gold { color: var(--v44c-gold); }
.v44c-mb-0 { margin-bottom: 0; }
.v44c-mb-1 { margin-bottom: 8px; }
.v44c-mb-2 { margin-bottom: 16px; }
.v44c-mb-3 { margin-bottom: 24px; }
.v44c-hidden { display: none; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.v44c-animate {
    animation: fadeIn 0.5s ease forwards;
}
