/**
 * KingPh APK - Main Stylesheet
 * Prefix: ui07-
 * Color Palette: #2D2D2D | #FFCC33 | #ADFF2F | #FF1493
 */

/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --ui07-bg: #2D2D2D;
    --ui07-bg-dark: #1A1A1A;
    --ui07-bg-card: #3D3D3D;
    --ui07-primary: #FFCC33;
    --ui07-secondary: #ADFF2F;
    --ui07-accent: #FF1493;
    --ui07-text: #FFFFFF;
    --ui07-text-muted: #B0B0B0;
    --ui07-border: #4D4D4D;
    --ui07-shadow: rgba(0, 0, 0, 0.4);
    --ui07-vh: 1vh;
}

* {
    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;
    background-color: var(--ui07-bg);
    color: var(--ui07-text);
    line-height: 1.5;
    font-size: 1.6rem;
    overflow-x: hidden;
}

/* ========================================
   Header & Navigation
======================================== */
.ui07-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--ui07-bg-dark) 0%, var(--ui07-bg) 100%);
    border-bottom: 2px solid var(--ui07-primary);
    padding: 1rem 1.5rem;
}

.ui07-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.ui07-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.ui07-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.ui07-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ui07-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ui07-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.ui07-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ui07-btn-login {
    background: transparent;
    color: var(--ui07-primary);
    border: 2px solid var(--ui07-primary);
}

.ui07-btn-login:hover {
    background: var(--ui07-primary);
    color: var(--ui07-bg-dark);
}

.ui07-btn-register {
    background: linear-gradient(135deg, var(--ui07-primary) 0%, var(--ui07-accent) 100%);
    color: var(--ui07-bg-dark);
}

.ui07-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 204, 51, 0.4);
}

.ui07-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.ui07-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--ui07-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Mobile Menu
======================================== */
.ui07-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ui07-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.ui07-mobile-menu.ui07-menu-active {
    right: 0;
}

.ui07-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: all 0.3s ease;
}

.ui07-menu-overlay.ui07-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ui07-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--ui07-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.ui07-nav-list {
    list-style: none;
    margin-top: 4rem;
}

.ui07-nav-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--ui07-border);
}

.ui07-nav-link {
    color: var(--ui07-text);
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.ui07-nav-link:hover {
    color: var(--ui07-primary);
}

.ui07-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--ui07-secondary);
}

/* ========================================
   Main Content
======================================== */
.ui07-main {
    padding-top: 70px;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .ui07-main {
        padding-bottom: 80px;
    }
}

.ui07-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Carousel / Slider
======================================== */
.ui07-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ui07-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    cursor: pointer;
}

.ui07-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui07-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.ui07-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ui07-indicator.ui07-indicator-active {
    background: var(--ui07-primary);
    width: 24px;
    border-radius: 5px;
}

/* ========================================
   Section Headers
======================================== */
.ui07-section {
    margin-bottom: 3rem;
}

.ui07-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ui07-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ui07-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--ui07-primary) 0%, var(--ui07-accent) 100%);
    border-radius: 2px;
}

.ui07-subtitle {
    font-size: 1.6rem;
    color: var(--ui07-text-muted);
    margin-bottom: 1rem;
}

/* ========================================
   Game Grid
======================================== */
.ui07-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ui07-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ui07-game-item:hover {
    transform: translateY(-4px);
}

.ui07-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--ui07-border);
    transition: border-color 0.3s ease;
}

.ui07-game-item:hover .ui07-game-img {
    border-color: var(--ui07-primary);
}

.ui07-game-name {
    font-size: 1.1rem;
    color: var(--ui07-text);
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Cards & Content Boxes
======================================== */
.ui07-card {
    background: var(--ui07-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ui07-border);
}

.ui07-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ui07-primary);
    margin-bottom: 1rem;
}

.ui07-card-text {
    font-size: 1.4rem;
    color: var(--ui07-text-muted);
    line-height: 1.6;
}

.ui07-highlight {
    color: var(--ui07-secondary);
    font-weight: 600;
}

.ui07-accent-text {
    color: var(--ui07-accent);
    font-weight: 600;
}

/* ========================================
   Buttons & Links
======================================== */
.ui07-promo-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--ui07-primary) 0%, var(--ui07-accent) 100%);
    color: var(--ui07-bg-dark);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.ui07-promo-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 204, 51, 0.3);
}

.ui07-text-link {
    color: var(--ui07-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ui07-text-link:hover {
    color: var(--ui07-secondary);
    text-decoration: underline;
}

/* ========================================
   Bottom Navigation (Mobile)
======================================== */
.ui07-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--ui07-bg-dark) 0%, #0D0D0D 100%);
    border-top: 2px solid var(--ui07-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .ui07-bottom-nav {
        display: none;
    }
}

.ui07-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ui07-nav-btn i {
    font-size: 24px;
    color: var(--ui07-text-muted);
    transition: color 0.3s ease;
}

.ui07-nav-btn span {
    font-size: 10px;
    color: var(--ui07-text-muted);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.ui07-nav-btn:hover i,
.ui07-nav-btn:hover span,
.ui07-nav-btn.ui07-active i,
.ui07-nav-btn.ui07-active span {
    color: var(--ui07-primary);
}

.ui07-nav-btn:active {
    transform: scale(0.95);
}

/* ========================================
   Footer
======================================== */
.ui07-footer {
    background: var(--ui07-bg-dark);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 2px solid var(--ui07-border);
}

.ui07-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.ui07-footer-desc {
    font-size: 1.3rem;
    color: var(--ui07-text-muted);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.ui07-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.ui07-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--ui07-bg-card);
    color: var(--ui07-text);
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ui07-footer-link:hover {
    background: var(--ui07-primary);
    color: var(--ui07-bg-dark);
}

.ui07-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ui07-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--ui07-border);
}

/* ========================================
   Utilities
======================================== */
.ui07-text-center { text-align: center; }
.ui07-mb-1 { margin-bottom: 1rem; }
.ui07-mb-2 { margin-bottom: 2rem; }
.ui07-mb-3 { margin-bottom: 3rem; }
.ui07-mt-2 { margin-top: 2rem; }

.ui07-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .ui07-hidden-mobile {
        display: block;
    }
    .ui07-hidden-desktop {
        display: none;
    }
}

/* Touch feedback */
.ui07-touch-active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Loading state */
.ui07-loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
