/**
 * JL78 Core CSS Stylesheet
 * Website: jl78.sbs
 * Prefix: w132d-
 * Color Palette: #273746 | #A0522D | #ADB5BD | #F4A460 | #D2691E
 */

/* CSS Variables */
:root {
    --w132d-primary: #A0522D;
    --w132d-secondary: #D2691E;
    --w132d-accent: #F4A460;
    --w132d-bg-dark: #273746;
    --w132d-bg-light: #1a2630;
    --w132d-text-light: #ADB5BD;
    --w132d-text-white: #ffffff;
    --w132d-border: #3d5166;
    --w132d-success: #28a745;
    --w132d-gradient: linear-gradient(135deg, #A0522D 0%, #D2691E 100%);
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w132d-bg-dark);
    color: var(--w132d-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.w132d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w132d-wrapper {
    width: 100%;
    padding: 1.5rem 0;
}

/* Header Styles */
.w132d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w132d-bg-dark) 0%, var(--w132d-bg-light) 100%);
    border-bottom: 1px solid var(--w132d-border);
    z-index: 1000;
    padding: 0.8rem 0;
}

.w132d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w132d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w132d-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w132d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w132d-accent);
    letter-spacing: 1px;
}

.w132d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w132d-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;
}

.w132d-btn-primary {
    background: var(--w132d-gradient);
    color: var(--w132d-text-white);
}

.w132d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.4);
}

.w132d-btn-secondary {
    background: transparent;
    color: var(--w132d-accent);
    border: 1px solid var(--w132d-accent);
}

.w132d-btn-secondary:hover {
    background: var(--w132d-accent);
    color: var(--w132d-bg-dark);
}

.w132d-menu-toggle {
    background: none;
    border: none;
    color: var(--w132d-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.w132d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w132d-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid var(--w132d-border);
}

.game131f-menu-active {
    right: 0 !important;
}

.w132d-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;
}

.game131f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w132d-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w132d-border);
}

.w132d-menu-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w132d-accent);
}

.w132d-menu-close {
    background: none;
    border: none;
    color: var(--w132d-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.w132d-menu-nav {
    list-style: none;
}

.w132d-menu-nav li {
    margin-bottom: 0.5rem;
}

.w132d-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--w132d-text-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.w132d-menu-nav a:hover {
    background: var(--w132d-bg-light);
    color: var(--w132d-accent);
}

/* Main Content */
.w132d-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .w132d-main {
        padding-bottom: 80px;
    }
}

/* Carousel Slider */
.w132d-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.w132d-slides {
    position: relative;
    width: 100%;
    height: 180px;
}

.w132d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.game131f-slide-active {
    opacity: 1;
}

.w132d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.w132d-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(39, 55, 70, 0.95));
    border-radius: 0 0 12px 12px;
}

.w132d-slide-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w132d-text-white);
    margin-bottom: 0.5rem;
}

.w132d-slide-desc {
    font-size: 1.2rem;
    color: var(--w132d-text-light);
}

/* Section Styles */
.w132d-section {
    padding: 1.5rem 0;
}

.w132d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w132d-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w132d-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.w132d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.w132d-game-card {
    background: var(--w132d-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w132d-border);
}

.w132d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w132d-primary);
    box-shadow: 0 6px 16px rgba(160, 82, 45, 0.3);
}

.w132d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w132d-game-name {
    padding: 0.6rem;
    font-size: 1rem;
    color: var(--w132d-text-white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, transparent, var(--w132d-bg-dark));
}

/* Category Title */
.w132d-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w132d-secondary);
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w132d-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Content Box */
.w132d-content-box {
    background: var(--w132d-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--w132d-border);
}

.w132d-content-box h3 {
    font-size: 1.5rem;
    color: var(--w132d-accent);
    margin-bottom: 1rem;
}

.w132d-content-box p {
    color: var(--w132d-text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.w132d-content-box ul {
    list-style: none;
    padding-left: 0;
}

.w132d-content-box li {
    padding: 0.5rem 0;
    color: var(--w132d-text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.w132d-content-box li i {
    color: var(--w132d-accent);
    margin-top: 0.2rem;
}

/* Promo Link */
.w132d-promo-link {
    color: var(--w132d-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w132d-promo-link:hover {
    color: var(--w132d-secondary);
    text-decoration: underline;
}

/* Footer */
.w132d-footer {
    background: var(--w132d-bg-light);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--w132d-border);
}

.w132d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w132d-footer-links a {
    font-size: 1.1rem;
    color: var(--w132d-text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.w132d-footer-links a:hover {
    background: var(--w132d-bg-dark);
    color: var(--w132d-accent);
}

.w132d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.w132d-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.w132d-partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.w132d-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--w132d-text-light);
    opacity: 0.7;
}

/* Bottom Navigation */
.w132d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w132d-bg-light), var(--w132d-bg-dark));
    border-top: 1px solid var(--w132d-border);
    z-index: 1000;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .w132d-bottom-nav {
        display: none;
    }
}

.w132d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.4rem;
}

.w132d-nav-item:hover {
    background: rgba(160, 82, 45, 0.2);
}

.w132d-nav-item.active {
    color: var(--w132d-accent);
}

.w132d-nav-item i {
    font-size: 22px;
    margin-bottom: 0.3rem;
}

.w132d-nav-item span {
    font-size: 1rem;
    color: var(--w132d-text-light);
}

.w132d-nav-item.active span {
    color: var(--w132d-accent);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .w132d-desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .w132d-desktop-nav a {
        color: var(--w132d-text-light);
        font-size: 1.3rem;
        transition: color 0.3s ease;
    }

    .w132d-desktop-nav a:hover {
        color: var(--w132d-accent);
    }

    .w132d-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .w132d-desktop-nav {
        display: none;
    }
}

/* Utility Classes */
.w132d-text-center { text-align: center; }
.w132d-mt-1 { margin-top: 1rem; }
.w132d-mt-2 { margin-top: 2rem; }
.w132d-mb-1 { margin-bottom: 1rem; }
.w132d-mb-2 { margin-bottom: 2rem; }
.w132d-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.w132d-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Highlight Box */
.w132d-highlight {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.2), rgba(210, 105, 30, 0.1));
    border-left: 3px solid var(--w132d-primary);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

/* Badge */
.w132d-badge {
    display: inline-block;
    background: var(--w132d-gradient);
    color: var(--w132d-text-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* RTP Stats */
.w132d-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.w132d-rtp-item {
    background: var(--w132d-bg-dark);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--w132d-border);
}

.w132d-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w132d-accent);
}

.w132d-rtp-label {
    font-size: 1.1rem;
    color: var(--w132d-text-light);
    margin-top: 0.3rem;
}
