/**
 * JLTT Core CSS Styles
 * Class prefix: s3d3-
 * Color scheme: #CED4DA | #ADFF2F | #2C2C2C | #E0F2F1 | #00B8D4
 */

/* CSS Variables */
:root {
    --s3d3-primary: #00B8D4;
    --s3d3-secondary: #ADFF2F;
    --s3d3-bg: #2C2C2C;
    --s3d3-bg-light: #3a3a3a;
    --s3d3-text: #CED4DA;
    --s3d3-text-light: #E0F2F1;
    --s3d3-accent: #ADFF2F;
    --s3d3-border: #4a4a4a;
    --s3d3-card-bg: #333333;
    --s3d3-gradient: linear-gradient(135deg, #00B8D4, #ADFF2F);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s3d3-bg);
    color: var(--s3d3-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.s3d3-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s3d3-wrapper {
    padding: 1rem;
}

/* Header */
.s3d3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2C2C2C 0%, #1a1a1a 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    border-bottom: 1px solid var(--s3d3-border);
}

.s3d3-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s3d3-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s3d3-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s3d3-logo-text {
    color: var(--s3d3-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s3d3-header-buttons {
    display: flex;
    gap: 0.6rem;
}

.s3d3-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.s3d3-btn-primary {
    background: var(--s3d3-gradient);
    color: #2C2C2C;
}

.s3d3-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.4);
}

.s3d3-btn-secondary {
    background: transparent;
    color: var(--s3d3-primary);
    border: 1px solid var(--s3d3-primary);
}

.s3d3-btn-secondary:hover {
    background: var(--s3d3-primary);
    color: var(--s3d3-bg);
}

/* Menu Toggle */
.s3d3-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--s3d3-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation */
.s3d3-nav {
    display: flex;
    gap: 1rem;
}

.s3d3-nav a {
    color: var(--s3d3-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.s3d3-nav a:hover {
    color: var(--s3d3-secondary);
}

/* Mobile Menu */
.s3d3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s3d3-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.s3d3-menu-active {
    right: 0;
}

.s3d3-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s3d3-border);
}

.s3d3-close-menu {
    background: transparent;
    border: none;
    color: var(--s3d3-text);
    font-size: 2rem;
    cursor: pointer;
}

.s3d3-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.s3d3-mobile-nav a {
    color: var(--s3d3-text);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.s3d3-mobile-nav a:hover {
    background: var(--s3d3-bg-light);
    color: var(--s3d3-secondary);
}

/* Menu Overlay */
.s3d3-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.s3d3-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.s3d3-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.s3d3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.s3d3-slides {
    position: relative;
}

.s3d3-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.s3d3-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.s3d3-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s3d3-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.s3d3-dot-active {
    background: var(--s3d3-secondary);
}

/* Section Titles */
.s3d3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s3d3-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--s3d3-primary);
}

/* Game Grid */
.s3d3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s3d3-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.s3d3-game-item:hover {
    transform: translateY(-3px);
}

.s3d3-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    margin-bottom: 0.4rem;
}

.s3d3-game-name {
    font-size: 1rem;
    color: var(--s3d3-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.s3d3-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s3d3-primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--s3d3-border);
}

/* Info Cards */
.s3d3-card {
    background: var(--s3d3-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--s3d3-border);
}

.s3d3-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s3d3-secondary);
    margin-bottom: 0.8rem;
}

.s3d3-card-text {
    font-size: 1.2rem;
    color: var(--s3d3-text);
    line-height: 1.6;
}

/* Feature List */
.s3d3-feature-list {
    list-style: none;
    padding: 0;
}

.s3d3-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--s3d3-border);
}

.s3d3-feature-item:last-child {
    border-bottom: none;
}

.s3d3-feature-icon {
    color: var(--s3d3-primary);
    font-size: 1.6rem;
    min-width: 24px;
}

.s3d3-feature-text {
    font-size: 1.2rem;
    color: var(--s3d3-text);
}

/* Footer */
.s3d3-footer {
    background: #1a1a1a;
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--s3d3-border);
}

.s3d3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s3d3-footer-links a {
    color: var(--s3d3-text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.s3d3-footer-links a:hover {
    color: var(--s3d3-secondary);
    background: var(--s3d3-bg-light);
}

.s3d3-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s3d3-partners img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.s3d3-partners img:hover {
    opacity: 1;
}

.s3d3-copyright {
    text-align: center;
    font-size: 1rem;
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid var(--s3d3-border);
}

/* Bottom Navigation */
.s3d3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2C2C2C 0%, #1a1a1a 100%);
    padding: 0.6rem 0.5rem;
    z-index: 1000;
    border-top: 1px solid var(--s3d3-border);
    display: flex;
    justify-content: space-around;
}

.s3d3-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    border-radius: 10px;
    transition: all 0.3s;
}

.s3d3-nav-item:hover {
    background: var(--s3d3-bg-light);
}

.s3d3-nav-item.active {
    background: rgba(0, 184, 212, 0.2);
}

.s3d3-nav-item i,
.s3d3-nav-item .material-icons {
    font-size: 24px;
    color: var(--s3d3-text);
}

.s3d3-nav-item.active i,
.s3d3-nav-item.active .material-icons {
    color: var(--s3d3-secondary);
}

.s3d3-nav-text {
    font-size: 1rem;
    color: var(--s3d3-text);
}

.s3d3-nav-item.active .s3d3-nav-text {
    color: var(--s3d3-secondary);
}

/* Promo Link Styles */
.s3d3-promo-link {
    color: var(--s3d3-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.s3d3-promo-link:hover {
    color: var(--s3d3-primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .s3d3-menu-toggle {
        display: block;
    }

    .s3d3-nav {
        display: none;
    }

    .s3d3-main {
        padding-bottom: 90px;
    }
}

@media (min-width: 769px) {
    .s3d3-bottom-nav {
        display: none;
    }

    .s3d3-main {
        padding-bottom: 20px;
    }
}

/* Utility Classes */
.s3d3-text-center {
    text-align: center;
}

.s3d3-mb-1 {
    margin-bottom: 1rem;
}

.s3d3-mb-2 {
    margin-bottom: 2rem;
}

.s3d3-flex {
    display: flex;
}

.s3d3-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation */
@keyframes s3d3-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s3d3-animate {
    animation: s3d3-fade-in 0.5s ease forwards;
}
