/**
 * JiliKK Layout Stylesheet
 * Website: jilikk.cfd
 * Prefix: g149-
 * Color Palette: #FA8072 | #CD5C5C | #34495E | #A0522D | #CD853F
 */

/* CSS Variables */
:root {
    --g149-primary: #FA8072;
    --g149-secondary: #CD5C5C;
    --g149-dark: #34495E;
    --g149-accent: #A0522D;
    --g149-gold: #CD853F;
    --g149-bg: #1a1f2e;
    --g149-bg-light: #252b3d;
    --g149-text: #f5f5f5;
    --g149-text-muted: #a0a8b8;
    --g149-border: #3a4258;
    --g149-success: #4caf50;
    --g149-gradient: linear-gradient(135deg, var(--g149-primary) 0%, var(--g149-secondary) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--g149-bg);
    color: var(--g149-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g149-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g149-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g149-dark) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--g149-border);
}

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

.g149-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.g149-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g149-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g149-header-actions {
    display: flex;
    gap: 0.8rem;
}

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

.g149-btn-primary {
    background: var(--g149-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 128, 114, 0.3);
}

.g149-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 128, 114, 0.4);
}

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

.g149-btn-outline:hover {
    background: var(--g149-primary);
    color: white;
}

/* Mobile Menu Button */
.g149-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--g149-bg-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--g149-text);
    font-size: 2rem;
}

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

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

.g149-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;
}

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

.g149-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g149-border);
}

.g149-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g149-bg);
    border: none;
    border-radius: 50%;
    color: var(--g149-text);
    cursor: pointer;
    font-size: 1.6rem;
}

.g149-menu-nav {
    list-style: none;
}

.g149-menu-nav li {
    margin-bottom: 0.5rem;
}

.g149-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    font-size: 1.5rem;
    color: var(--g149-text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g149-menu-nav a:hover {
    background: var(--g149-bg);
    color: var(--g149-primary);
}

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

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

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

.g149-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g149-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

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

.g149-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.g149-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.g149-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.g149-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
}

.g149-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g149-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Section Styles */
.g149-section {
    padding: 2rem 0;
}

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

.g149-section-title i {
    color: var(--g149-primary);
}

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

.g149-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g149-game-item:hover {
    transform: scale(1.05);
}

.g149-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--g149-border);
    transition: border-color 0.3s ease;
}

.g149-game-item:hover .g149-game-icon {
    border-color: var(--g149-primary);
}

.g149-game-name {
    font-size: 1.1rem;
    color: var(--g149-text-muted);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.g149-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.g149-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g149-primary);
}

.g149-category-badge {
    background: var(--g149-gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
}

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

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

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

/* Promo Link Styles */
.g149-promo-link {
    color: var(--g149-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g149-promo-link:hover {
    color: var(--g149-gold);
    text-decoration: underline;
}

.g149-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--g149-gradient);
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.g149-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 128, 114, 0.4);
}

/* Footer */
.g149-footer {
    background: var(--g149-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--g149-border);
}

.g149-footer-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.g149-footer-desc {
    font-size: 1.3rem;
    color: var(--g149-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.g149-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--g149-bg-light);
    color: var(--g149-text);
    font-size: 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.g149-footer-link:hover {
    background: var(--g149-primary);
    color: white;
}

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

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

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

.g149-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;
    color: var(--g149-text-muted);
}

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

.g149-nav-btn i,
.g149-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.g149-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* Utility Classes */
.g149-text-center { text-align: center; }
.g149-text-left { text-align: left; }
.g149-mb-1 { margin-bottom: 1rem; }
.g149-mb-2 { margin-bottom: 2rem; }
.g149-mt-1 { margin-top: 1rem; }
.g149-mt-2 { margin-top: 2rem; }
.g149-hidden { display: none; }

/* Responsive */
@media (max-width: 430px) {
    .g149-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g149-game-icon {
        width: 55px;
        height: 55px;
    }

    .g149-game-name {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes g149-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.g149-fade-in {
    animation: g149-fadeIn 0.5s ease forwards;
}

/* Partners Section */
.g149-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.g149-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g149-partner-logo:hover {
    opacity: 1;
}
