/**
 * Jl44 Website CSS Module
 * Mobile-first responsive design for Philippine market
 * All classes use uie7- prefix for namespace isolation
 * Color palette: #FFEBCD | #6C757D | #34495E | #BDB76B | #F5F5F5 | #0D1117
 */

/* CSS Variables */
:root {
    --uie7-primary: #BDB76B;
    --uie7-secondary: #FFEBCD;
    --uie7-bg: #0D1117;
    --uie7-bg-light: #1a1f2e;
    --uie7-text: #F5F5F5;
    --uie7-text-muted: #6C757D;
    --uie7-accent: #BDB76B;
    --uie7-border: #34495E;
    --uie7-success: #28a745;
    --uie7-danger: #dc3545;
    --uie7-header-height: 56px;
    --uie7-bottom-nav-height: 60px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--uie7-bg);
    color: var(--uie7-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--uie7-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--uie7-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.uie7-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.uie7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--uie7-header-height);
    background: linear-gradient(135deg, var(--uie7-bg) 0%, var(--uie7-bg-light) 100%);
    border-bottom: 1px solid var(--uie7-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.uie7-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uie7-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.uie7-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uie7-accent);
}

.uie7-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.uie7-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
    min-width: 70px;
}

.uie7-btn-primary {
    background: linear-gradient(135deg, var(--uie7-accent) 0%, #9a8b4e 100%);
    color: var(--uie7-bg);
}

.uie7-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(189, 183, 107, 0.3);
}

.uie7-btn-outline {
    background: transparent;
    border: 1px solid var(--uie7-accent);
    color: var(--uie7-accent);
}

.uie7-btn-outline:hover {
    background: var(--uie7-accent);
    color: var(--uie7-bg);
}

.uie7-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.uie7-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--uie7-text);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.uie7-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--uie7-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.game4eb1_menu_active {
    right: 0;
}

.uie7-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;
}

.game4eb1_overlay_active {
    opacity: 1;
    visibility: visible;
}

.uie7-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--uie7-text);
    font-size: 2rem;
    cursor: pointer;
}

.uie7-menu-nav {
    margin-top: 3rem;
}

.uie7-menu-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--uie7-border);
    color: var(--uie7-text);
    font-size: 1.4rem;
}

.uie7-menu-nav a:hover {
    color: var(--uie7-accent);
}

/* Main Content */
main {
    padding-top: var(--uie7-header-height);
}

/* Carousel/Slider */
.uie7-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.uie7-slide {
    width: 100%;
    cursor: pointer;
}

.uie7-slide img {
    width: 100%;
    border-radius: 8px;
}

/* Section Styles */
.uie7-section {
    padding: 1.5rem 0;
}

.uie7-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--uie7-accent);
    border-left: 3px solid var(--uie7-accent);
    padding-left: 0.8rem;
}

/* Game Grid */
.uie7-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.uie7-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: var(--uie7-bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uie7-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(189, 183, 107, 0.2);
}

.uie7-game-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.uie7-game-name {
    font-size: 1rem;
    color: var(--uie7-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Label */
.uie7-category-label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--uie7-accent);
    color: var(--uie7-bg);
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Info Cards */
.uie7-info-card {
    background: var(--uie7-bg-light);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--uie7-border);
}

.uie7-info-card h3 {
    font-size: 1.5rem;
    color: var(--uie7-accent);
    margin-bottom: 0.8rem;
}

.uie7-info-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--uie7-text);
}

/* Promo Link Styles */
.uie7-promo-link {
    color: var(--uie7-accent);
    font-weight: 600;
    cursor: pointer;
}

.uie7-promo-link:hover {
    text-decoration: underline;
}

.uie7-promo-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--uie7-accent) 0%, #9a8b4e 100%);
    color: var(--uie7-bg);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uie7-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(189, 183, 107, 0.4);
}

/* Footer */
.uie7-footer {
    background: var(--uie7-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--uie7-border);
}

.uie7-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.uie7-footer-links a {
    font-size: 1.2rem;
    color: var(--uie7-text-muted);
}

.uie7-footer-links a:hover {
    color: var(--uie7-accent);
}

.uie7-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.uie7-partners img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uie7-partners img:hover {
    opacity: 1;
}

.uie7-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--uie7-text-muted);
}

/* Bottom Navigation (Mobile) */
.uie7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--uie7-bottom-nav-height);
    background: linear-gradient(180deg, var(--uie7-bg-light) 0%, var(--uie7-bg) 100%);
    border-top: 1px solid var(--uie7-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.uie7-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.3rem;
}

.uie7-nav-item:hover {
    background: rgba(189, 183, 107, 0.1);
}

.uie7-nav-item.active {
    color: var(--uie7-accent);
}

.uie7-nav-item i,
.uie7-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.uie7-nav-item span {
    font-size: 1rem;
    color: var(--uie7-text);
}

.uie7-nav-item.active span {
    color: var(--uie7-accent);
}

/* Utility Classes */
.uie7-text-center {
    text-align: center;
}

.uie7-mt-1 {
    margin-top: 0.5rem;
}

.uie7-mt-2 {
    margin-top: 1rem;
}

.uie7-mb-2 {
    margin-bottom: 1rem;
}

.uie7-hidden {
    display: none;
}

/* List Styles */
.uie7-list {
    list-style: none;
    padding: 0;
}

.uie7-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--uie7-border);
    font-size: 1.3rem;
}

.uie7-list li:last-child {
    border-bottom: none;
}

/* RTP Table */
.uie7-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.uie7-rtp-table th,
.uie7-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--uie7-border);
}

.uie7-rtp-table th {
    background: var(--uie7-bg-light);
    color: var(--uie7-accent);
    font-size: 1.2rem;
}

.uie7-rtp-table td {
    font-size: 1.2rem;
}

/* FAQ Accordion */
.uie7-faq-item {
    background: var(--uie7-bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.uie7-faq-question {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--uie7-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uie7-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.3rem;
    color: var(--uie7-text-muted);
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .uie7-bottom-nav {
        display: none;
    }

    .uie7-container {
        max-width: 768px;
    }
}

/* Mobile: Add bottom padding for nav clearance */
@media (max-width: 768px) {
    main {
        padding-bottom: calc(var(--uie7-bottom-nav-height) + 20px);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .uie7-btn,
    .uie7-nav-item,
    .uie7-game-item {
        min-height: 44px;
    }
}
