/**
 * Lucky Star Casino - Layout Styles
 * Version: 1.0.0
 * Class Prefix: v287-
 * Color Palette: #20B2AA | #1C2833 | #ADFF2F | #8FBC8F
 */

/* CSS Variables */
:root {
    --v287-primary: #20B2AA;
    --v287-primary-dark: #1a9a93;
    --v287-bg-dark: #1C2833;
    --v287-bg-darker: #151d26;
    --v287-accent: #ADFF2F;
    --v287-accent-green: #8FBC8F;
    --v287-text-light: #ffffff;
    --v287-text-muted: #b0b8c1;
    --v287-border: #2d3b4a;
    --v287-card-bg: #232f3e;
    --v287-gradient-primary: linear-gradient(135deg, #20B2AA 0%, #1C2833 100%);
    --v287-gradient-accent: linear-gradient(135deg, #ADFF2F 0%, #8FBC8F 100%);
    --v287-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v287-radius: 8px;
    --v287-radius-lg: 12px;
}

/* 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(--v287-bg-dark);
    color: var(--v287-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.v287-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v287-bg-darker);
    padding: 0.8rem 1rem;
    z-index: 1000;
    border-bottom: 1px solid var(--v287-border);
    transition: all 0.3s ease;
}

.v287-header-scrolled {
    background: rgba(21, 29, 38, 0.98);
    box-shadow: var(--v287-shadow);
}

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

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

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

.v287-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v287-accent);
    white-space: nowrap;
}

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

.v287-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--v287-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.v287-btn-primary {
    background: var(--v287-gradient-accent);
    color: var(--v287-bg-dark);
}

.v287-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(173, 255, 47, 0.4);
}

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

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

.v287-menu-toggle {
    background: none;
    border: none;
    color: var(--v287-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

.v287-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v287-menu-links li {
    margin-bottom: 0.5rem;
}

.v287-menu-links a {
    display: block;
    padding: 1rem 0.8rem;
    color: var(--v287-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--v287-radius);
    transition: all 0.2s ease;
}

.v287-menu-links a:hover {
    background: var(--v287-primary);
    color: var(--v287-text-light);
}

/* Main Content */
.v287-main {
    padding-top: 5.5rem;
    padding-bottom: 8rem;
}

/* Slider Styles */
.v287-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--v287-radius-lg);
    margin-bottom: 1.5rem;
}

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

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

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

.v287-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--v287-radius-lg);
}

.v287-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v287-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v287-dot-active {
    background: var(--v287-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.v287-section {
    padding: 1.5rem 0;
}

.v287-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v287-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v287-section-title i {
    font-size: 1.8rem;
}

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

.v287-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.v287-game-item:hover {
    transform: scale(1.08);
}

.v287-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v287-radius);
    margin-bottom: 0.4rem;
    border: 2px solid var(--v287-border);
    transition: border-color 0.2s ease;
}

.v287-game-item:hover img {
    border-color: var(--v287-primary);
}

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

/* Card Styles */
.v287-card {
    background: var(--v287-card-bg);
    border-radius: var(--v287-radius-lg);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--v287-border);
}

.v287-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v287-accent);
    margin-bottom: 0.8rem;
}

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

/* Footer Styles */
.v287-footer {
    background: var(--v287-bg-darker);
    padding: 2rem 1rem;
    border-top: 1px solid var(--v287-border);
}

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

.v287-footer-desc {
    font-size: 1.2rem;
    color: var(--v287-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

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

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

/* Bottom Navigation */
.v287-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(21, 29, 38, 0.95) 0%, rgba(21, 29, 38, 1) 100%);
    border-top: 2px solid var(--v287-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0;
}

.v287-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--v287-text-muted);
    border-radius: 8px;
    padding: 0.4rem;
}

.v287-nav-item:hover {
    color: var(--v287-accent);
    background: rgba(32, 178, 170, 0.15);
}

.v287-nav-item.active {
    color: var(--v287-accent);
}

.v287-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.v287-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Typography */
.v287-h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--v287-text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.v287-h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v287-accent);
    margin-bottom: 0.8rem;
}

.v287-h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v287-text-light);
    margin-bottom: 0.6rem;
}

.v287-text {
    font-size: 1.2rem;
    color: var(--v287-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.v287-text-link {
    color: var(--v287-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.v287-text-link:hover {
    color: var(--v287-accent);
    text-decoration: underline;
}

/* Promo Link Styles */
.v287-promo-link {
    color: var(--v287-accent);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.v287-promo-link:hover {
    color: var(--v287-primary);
}

/* Utility Classes */
.v287-text-center {
    text-align: center;
}

.v287-mb-1 {
    margin-bottom: 0.5rem;
}

.v287-mb-2 {
    margin-bottom: 1rem;
}

.v287-mb-3 {
    margin-bottom: 1.5rem;
}

.v287-mt-2 {
    margin-top: 1rem;
}

.v287-hidden {
    display: none;
}

/* Desktop: Hide Bottom Nav */
@media (min-width: 769px) {
    .v287-bottom-nav {
        display: none;
    }

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

/* Mobile Optimization */
@media (max-width: 768px) {
    .v287-main {
        padding-bottom: 80px;
    }
}

/* Partners Grid */
.v287-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.v287-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.v287-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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

.v287-feature-item {
    background: var(--v287-card-bg);
    padding: 1rem;
    border-radius: var(--v287-radius);
    text-align: center;
    border: 1px solid var(--v287-border);
}

.v287-feature-item i {
    font-size: 2.4rem;
    color: var(--v287-primary);
    margin-bottom: 0.5rem;
}

.v287-feature-item h4 {
    font-size: 1.2rem;
    color: var(--v287-text-light);
    margin-bottom: 0.3rem;
}

.v287-feature-item p {
    font-size: 1rem;
    color: var(--v287-text-muted);
}

/* FAQ Styles */
.v287-faq-item {
    background: var(--v287-card-bg);
    border-radius: var(--v287-radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--v287-border);
}

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

.v287-faq-answer {
    font-size: 1.2rem;
    color: var(--v287-text-muted);
    line-height: 1.5;
}

/* List Styles */
.v287-list {
    list-style: none;
    padding: 0;
}

.v287-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.2rem;
    color: var(--v287-text-muted);
    border-bottom: 1px solid var(--v287-border);
}

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

.v287-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--v287-primary);
    border-radius: 50%;
}

/* CTA Button Large */
.v287-cta-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    background: var(--v287-gradient-accent);
    color: var(--v287-bg-dark);
    border-radius: var(--v287-radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v287-cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(173, 255, 47, 0.5);
}
