/**
 * Love PH - Design Stylesheet
 * @description Main CSS for Love PH gaming platform
 * @version 1.0.0
 * @prefix uidf-
 */

/* CSS Variables */
:root {
    --uidf-primary: #2E8B57;
    --uidf-secondary: #34495E;
    --uidf-accent: #D4AF37;
    --uidf-warm: #F4A460;
    --uidf-light: #FAF0E6;
    --uidf-muted: #CCCCCC;
    --uidf-bg: #34495E;
    --uidf-text: #FAF0E6;
    --uidf-card-bg: #2a3f52;
    --uidf-border: rgba(212, 175, 55, 0.3);
}

/* Reset & Base */
* {
    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(--uidf-bg);
    color: var(--uidf-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.uidf-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.uidf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--uidf-secondary) 0%, #1a2530 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

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

.uidf-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.uidf-logo-text {
    color: var(--uidf-accent);
    font-size: 1.6rem;
    font-weight: 700;
}

.uidf-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.uidf-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.uidf-btn-register {
    background: linear-gradient(135deg, var(--uidf-primary) 0%, #236b43 100%);
    color: var(--uidf-text);
}

.uidf-btn-login {
    background: linear-gradient(135deg, var(--uidf-accent) 0%, #b8962f 100%);
    color: var(--uidf-secondary);
}

.uidf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.uidf-menu-btn {
    background: transparent;
    border: none;
    color: var(--uidf-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

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

.uidf-menu-active {
    right: 0;
}

.uidf-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

.uidf-menu-nav {
    margin-top: 3rem;
}

.uidf-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--uidf-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--uidf-border);
    transition: color 0.3s ease;
}

.uidf-menu-link:hover {
    color: var(--uidf-accent);
}

/* Main Content */
.uidf-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.uidf-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.uidf-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.uidf-slide-active {
    opacity: 1;
}

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

/* Section Titles */
.uidf-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uidf-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uidf-primary);
}

/* Game Grid */
.uidf-game-section {
    margin-bottom: 2rem;
}

.uidf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.uidf-game-card {
    background: var(--uidf-card-bg);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.uidf-game-card:hover {
    border-color: var(--uidf-accent);
    transform: translateY(-3px);
}

.uidf-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.uidf-game-name {
    font-size: 1rem;
    color: var(--uidf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.uidf-content-section {
    background: var(--uidf-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.uidf-content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.uidf-content-section a {
    color: var(--uidf-accent);
    text-decoration: underline;
}

/* Features List */
.uidf-features-list {
    list-style: none;
}

.uidf-features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--uidf-border);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.uidf-features-list li:last-child {
    border-bottom: none;
}

.uidf-feature-icon {
    color: var(--uidf-primary);
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* FAQ */
.uidf-faq-item {
    margin-bottom: 1rem;
}

.uidf-faq-question {
    font-weight: 600;
    color: var(--uidf-accent);
    margin-bottom: 0.5rem;
}

.uidf-faq-answer {
    padding-left: 1rem;
    border-left: 3px solid var(--uidf-primary);
}

/* Promo Banner */
.uidf-promo-banner {
    background: linear-gradient(135deg, var(--uidf-primary) 0%, #1a5a38 100%);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.uidf-promo-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.uidf-promo-btn {
    background: linear-gradient(135deg, var(--uidf-accent) 0%, #b8962f 100%);
    color: var(--uidf-secondary);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-block;
    margin-top: 0.8rem;
    cursor: pointer;
    border: none;
}

/* Testimonials */
.uidf-testimonial {
    background: var(--uidf-card-bg);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--uidf-accent);
}

.uidf-testimonial-author {
    font-weight: 600;
    color: var(--uidf-accent);
    margin-bottom: 0.5rem;
}

/* Payment Methods */
.uidf-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.uidf-payment-item {
    background: var(--uidf-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
}

/* Footer */
.uidf-footer {
    background: linear-gradient(135deg, #1a2530 0%, var(--uidf-secondary) 100%);
    padding: 2rem 1rem 3rem;
}

.uidf-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.uidf-footer-brand p {
    font-size: 1.2rem;
    color: var(--uidf-muted);
    line-height: 1.6;
}

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

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

.uidf-footer-link:hover {
    background: var(--uidf-primary);
}

.uidf-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.uidf-footer-promo .uidf-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

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

/* Bottom Navigation */
.uidf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--uidf-secondary) 0%, #1a2530 100%);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 2px solid var(--uidf-primary);
}

.uidf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--uidf-text);
}

.uidf-nav-item:hover {
    color: var(--uidf-accent);
}

.uidf-nav-item.active {
    color: var(--uidf-primary);
}

.uidf-nav-item i,
.uidf-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.uidf-nav-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (min-width: 769px) {
    .uidf-bottom-nav {
        display: none;
    }

    .uidf-main {
        padding-bottom: 2rem;
    }

    .uidf-container {
        max-width: 768px;
    }
}

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

/* Utility Classes */
.uidf-text-center { text-align: center; }
.uidf-mb-1 { margin-bottom: 1rem; }
.uidf-mb-2 { margin-bottom: 2rem; }
.uidf-mt-1 { margin-top: 1rem; }
.uidf-mt-2 { margin-top: 2rem; }

/* Animations */
@keyframes uidf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.uidf-pulse {
    animation: uidf-pulse 2s infinite;
}
