/**
 * jili365 casino - Layout Stylesheet
 * Prefix: se41-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --se41-primary: #20B2AA;
    --se41-secondary: #273746;
    --se41-accent: #CED4DA;
    --se41-bg: #1a252f;
    --se41-bg-light: #273746;
    --se41-text: #CED4DA;
    --se41-text-light: #ffffff;
    --se41-border: #3d5a6c;
    --se41-success: #28a745;
    --se41-warning: #ffc107;
    --se41-danger: #dc3545;
    --se41-gradient: linear-gradient(135deg, #20B2AA 0%, #273746 100%);
    --se41-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --se41-radius: 8px;
    --se41-radius-lg: 16px;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--se41-bg);
    color: var(--se41-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--se41-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--se41-text-light);
}

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

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

.se41-wrapper {
    padding: 2rem 1.5rem;
}

/* Header */
.se41-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--se41-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--se41-shadow);
    transition: all 0.3s ease;
}

.se41-header-scrolled {
    background: rgba(39, 55, 70, 0.98);
    padding: 0.8rem 1.5rem;
}

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

.se41-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

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

.se41-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.se41-btn-primary {
    background: var(--se41-primary);
    color: var(--se41-text-light);
}

.se41-btn-primary:hover {
    background: #1a9999;
    transform: translateY(-2px);
}

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

.se41-btn-outline:hover {
    background: var(--se41-primary);
    color: var(--se41-text-light);
}

.se41-menu-toggle {
    background: none;
    border: none;
    color: var(--se41-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

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

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

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

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

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

.se41-menu-close {
    background: none;
    border: none;
    color: var(--se41-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.se41-nav-list {
    list-style: none;
}

.se41-nav-item {
    margin-bottom: 1rem;
}

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

.se41-nav-link:hover {
    background: var(--se41-primary);
    color: var(--se41-text-light);
}

/* Main Content */
main {
    padding-top: 70px;
}

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

/* Carousel */
.se41-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--se41-radius-lg);
    margin: 1rem 0;
}

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

.se41-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.se41-slide-active {
    opacity: 1;
    position: relative;
}

.se41-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--se41-radius-lg);
}

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

/* Game Grid */
.se41-section {
    padding: 2rem 1.5rem;
}

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

.se41-section-title i {
    font-size: 2.4rem;
}

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

.se41-game-card {
    background: var(--se41-bg-light);
    border-radius: var(--se41-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.se41-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--se41-shadow);
}

.se41-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.se41-game-name {
    padding: 0.8rem;
    font-size: 1.1rem;
    color: var(--se41-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Grid */
.se41-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.se41-feature-card {
    background: var(--se41-bg-light);
    padding: 2rem;
    border-radius: var(--se41-radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.se41-feature-card:hover {
    transform: scale(1.02);
    box-shadow: var(--se41-shadow);
}

.se41-feature-icon {
    font-size: 3rem;
    color: var(--se41-primary);
    margin-bottom: 1rem;
}

.se41-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--se41-text-light);
    margin-bottom: 0.5rem;
}

.se41-feature-desc {
    font-size: 1.2rem;
    color: var(--se41-text);
}

/* Footer */
.se41-footer {
    background: var(--se41-secondary);
    padding: 3rem 1.5rem 8rem;
    margin-top: 2rem;
}

.se41-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.se41-footer-brand p {
    font-size: 1.3rem;
    color: var(--se41-text);
    margin-top: 1rem;
    line-height: 1.6;
}

.se41-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.se41-footer-link:hover {
    background: var(--se41-primary);
    color: var(--se41-text-light);
}

.se41-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.se41-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--se41-text);
    opacity: 0.8;
}

/* Bottom Navigation */
.se41-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--se41-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

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

.se41-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--se41-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.se41-nav-btn:hover,
.se41-nav-btn-active {
    color: var(--se41-primary);
    background: rgba(32, 178, 170, 0.1);
}

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

.se41-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Banner */
.se41-promo-banner {
    background: var(--se41-gradient);
    padding: 2rem;
    border-radius: var(--se41-radius-lg);
    text-align: center;
    margin: 1.5rem 0;
}

.se41-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--se41-text-light);
    margin-bottom: 1rem;
}

.se41-promo-desc {
    font-size: 1.4rem;
    color: var(--se41-text-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Stats Grid */
.se41-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.se41-stat-card {
    background: var(--se41-bg-light);
    padding: 1.5rem;
    border-radius: var(--se41-radius);
    text-align: center;
}

.se41-stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--se41-primary);
}

.se41-stat-label {
    font-size: 1.2rem;
    color: var(--se41-text);
    margin-top: 0.5rem;
}

/* Testimonials */
.se41-testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.se41-testimonial {
    background: var(--se41-bg-light);
    padding: 1.5rem;
    border-radius: var(--se41-radius-lg);
    border-left: 4px solid var(--se41-primary);
}

.se41-testimonial-text {
    font-size: 1.3rem;
    color: var(--se41-text);
    margin-bottom: 1rem;
    font-style: italic;
}

.se41-testimonial-author {
    font-size: 1.2rem;
    color: var(--se41-primary);
    font-weight: 600;
}

/* Payment Methods */
.se41-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.se41-payment-item {
    background: var(--se41-bg-light);
    padding: 1rem 1.5rem;
    border-radius: var(--se41-radius);
    font-size: 1.3rem;
    color: var(--se41-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Typography */
@media (max-width: 360px) {
    html {
        font-size: 55%;
    }

    .se41-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .se41-container {
        max-width: 768px;
    }

    .se41-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .se41-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .se41-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.se41-animate {
    animation: fadeIn 0.6s ease forwards;
}

/* Feature Cards Grid */
.se41-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.se41-feature-card {
    background: var(--se41-bg-light);
    padding: 1.5rem;
    border-radius: var(--se41-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--se41-border);
}

.se41-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--se41-shadow);
    border-color: var(--se41-primary);
}

.se41-feature-icon {
    font-size: 2.5rem;
    color: var(--se41-primary);
    margin-bottom: 0.8rem;
}

.se41-feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--se41-text-light);
    margin-bottom: 0.5rem;
}

.se41-feature-desc {
    font-size: 1.1rem;
    color: var(--se41-text);
    line-height: 1.4;
}

/* Stats Cards */
.se41-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.se41-stat-card {
    background: rgba(32, 178, 170, 0.1);
    padding: 1.2rem;
    border-radius: var(--se41-radius);
    text-align: center;
    border: 1px solid var(--se41-primary);
}

.se41-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--se41-primary);
}

.se41-stat-label {
    font-size: 1.1rem;
    color: var(--se41-text);
    margin-top: 0.3rem;
}

@media (min-width: 769px) {
    .se41-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .se41-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.se41-text-center { text-align: center; }
.se41-text-primary { color: var(--se41-primary); }
.se41-text-light { color: var(--se41-text-light); }
.se41-mb-1 { margin-bottom: 1rem; }
.se41-mb-2 { margin-bottom: 2rem; }
.se41-mt-1 { margin-top: 1rem; }
.se41-mt-2 { margin-top: 2rem; }
