/**
 * PGPH88 Gaming Platform - Main Stylesheet
 * Mobile-first responsive design
 * All classes use prefix: ui2f-
 */

/* CSS Variables */
:root {
    --ui2f-primary: #00FF7F;
    --ui2f-secondary: #9AFF9A;
    --ui2f-accent: #7FFF00;
    --ui2f-bg-dark: #0A0A0A;
    --ui2f-bg-card: #1A1A1A;
    --ui2f-text: #FFFFFF;
    --ui2f-text-muted: #B0B0B0;
    --ui2f-border: #2A2A2A;
    --ui2f-gradient: linear-gradient(135deg, #00FF7F 0%, #7FFF00 100%);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--ui2f-bg-dark);
    color: var(--ui2f-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.ui2f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.ui2f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ui2f-border);
}

.ui2f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.ui2f-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui2f-logo img {
    width: 28px;
    height: 28px;
}

.ui2f-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--ui2f-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui2f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ui2f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.ui2f-btn-login {
    background: transparent;
    border: 1px solid var(--ui2f-primary);
    color: var(--ui2f-primary);
}

.ui2f-btn-login:hover {
    background: rgba(0, 255, 127, 0.1);
}

.ui2f-btn-register {
    background: var(--ui2f-gradient);
    color: var(--ui2f-bg-dark);
}

.ui2f-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
}

.ui2f-menu-toggle {
    background: none;
    border: none;
    color: var(--ui2f-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.ui2f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ui2f-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.ui2f-menu-active {
    right: 0;
}

.ui2f-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;
}

.ui2f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ui2f-nav-list {
    list-style: none;
}

.ui2f-nav-item {
    margin-bottom: 0.5rem;
}

.ui2f-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--ui2f-text);
    font-size: 1.4rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.ui2f-nav-link:hover {
    background: rgba(0, 255, 127, 0.1);
    color: var(--ui2f-primary);
}

/* Main Content */
.ui2f-main {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Carousel */
.ui2f-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.ui2f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.ui2f-slide-active {
    opacity: 1;
}

.ui2f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.ui2f-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--ui2f-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui2f-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.ui2f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.ui2f-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ui2f-game-item:hover {
    transform: translateY(-3px);
}

.ui2f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--ui2f-border);
}

.ui2f-game-item:hover .ui2f-game-img {
    border-color: var(--ui2f-primary);
}

.ui2f-game-name {
    font-size: 1.1rem;
    color: var(--ui2f-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.ui2f-card {
    background: var(--ui2f-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ui2f-border);
}

.ui2f-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ui2f-primary);
}

.ui2f-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--ui2f-text-muted);
    margin-bottom: 1rem;
}

.ui2f-card-text:last-child {
    margin-bottom: 0;
}

/* Promo Link Styles */
.ui2f-promo-link {
    color: var(--ui2f-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ui2f-promo-link:hover {
    color: var(--ui2f-primary);
    text-decoration: underline;
}

.ui2f-promo-btn {
    display: inline-block;
    background: var(--ui2f-gradient);
    color: var(--ui2f-bg-dark);
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ui2f-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 255, 127, 0.5);
}

/* FAQ Section */
.ui2f-faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ui2f-border);
    padding-bottom: 1rem;
}

.ui2f-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ui2f-primary);
    margin-bottom: 0.5rem;
}

.ui2f-faq-answer {
    font-size: 1.3rem;
    color: var(--ui2f-text-muted);
    line-height: 1.6;
}

/* Features List */
.ui2f-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ui2f-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 0.8rem;
}

.ui2f-feature-icon {
    font-size: 2rem;
    color: var(--ui2f-primary);
}

.ui2f-feature-text {
    font-size: 1.2rem;
    color: var(--ui2f-text);
}

/* Footer */
.ui2f-footer {
    background: var(--ui2f-bg-card);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--ui2f-border);
}

.ui2f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ui2f-footer-link {
    font-size: 1.2rem;
    color: var(--ui2f-text-muted);
    transition: color 0.3s ease;
}

.ui2f-footer-link:hover {
    color: var(--ui2f-primary);
}

.ui2f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ui2f-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ui2f-partner-logo:hover {
    opacity: 1;
}

.ui2f-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ui2f-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--ui2f-border);
}

/* Mobile Bottom Navigation */
.ui2f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,1) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 1px solid var(--ui2f-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
}

.ui2f-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 54px;
    background: none;
    border: none;
    color: var(--ui2f-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.ui2f-nav-btn:hover,
.ui2f-nav-btn-active {
    color: var(--ui2f-primary);
    background: rgba(0, 255, 127, 0.1);
}

.ui2f-nav-btn i {
    font-size: 22px;
    margin-bottom: 0.2rem;
}

.ui2f-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* RTP Display */
.ui2f-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.ui2f-rtp-item {
    background: rgba(0, 255, 127, 0.05);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
}

.ui2f-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ui2f-primary);
}

.ui2f-rtp-label {
    font-size: 1.1rem;
    color: var(--ui2f-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
    .ui2f-bottom-nav {
        display: none;
    }

    .ui2f-main {
        padding-bottom: 2rem;
    }

    .ui2f-container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .ui2f-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.ui2f-text-center {
    text-align: center;
}

.ui2f-mb-1 {
    margin-bottom: 1rem;
}

.ui2f-mb-2 {
    margin-bottom: 2rem;
}

.ui2f-hidden {
    display: none;
}
