/**
 * JiliAce PH - Style Sheet
 * Coffee and Gold Theme - Professional Gaming Design
 * All classes use s283- prefix for namespace isolation
 */

/* Root variables - Coffee and Gold Theme */
:root {
    --primary-color: #6F4E37;      /* Coffee Brown */
    --secondary-color: #FFD700;    /* Gold */
    --accent-color: #BF360C;       /* Deep Red */
    --highlight-color: #FF8C00;    /* Dark Orange */
    --text-color: #333333;         /* Dark Text */
    --light-text: #FFFFFF;         /* White Text */
    --bg-primary: #1A0F08;         /* Dark Coffee Background */
    --bg-secondary: #2D1810;       /* Medium Coffee */
    --bg-tertiary: #3E241A;        /* Light Coffee */
    --border-color: #4A3428;       /* Coffee Border */
    --shadow-color: rgba(111, 78, 55, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--highlight-color));

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.5rem;
    color: var(--light-text);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.s283-container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header */
.s283-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.2rem 1rem var(--shadow-color);
}

.s283-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    height: 5.6rem;
}

.s283-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--light-text);
}

.s283-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.8rem;
}

.s283-logo-text {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s283-header-actions {
    display: flex;
    gap: 1.2rem;
}

.s283-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 2.4rem;
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.6rem;
    min-width: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.s283-btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-color);
    box-shadow: 0 0.4rem 1.6rem rgba(255, 215, 0, 0.3);
}

.s283-btn-primary:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 2.4rem rgba(255, 215, 0, 0.4);
}

.s283-btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 0.2rem solid var(--secondary-color);
}

.s283-btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

.s283-menu-toggle {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s283-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 32rem;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -0.4rem 0 2rem var(--shadow-color);
}

.s283-mobile-menu.active {
    right: 0;
}

.s283-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem;
    background: var(--bg-tertiary);
    border-bottom: 0.1rem solid var(--border-color);
}

.s283-menu-close {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.8rem;
}

.s283-menu-nav {
    padding: 1.6rem;
}

.s283-menu-item {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.s283-menu-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(0.4rem);
}

.s283-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 ease;
}

.s283-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    margin-top: 5.6rem;
    padding-bottom: 8rem;
}

/* Carousel */
.s283-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 1.6rem;
    margin: 2rem 0;
    box-shadow: 0 0.8rem 2.4rem var(--shadow-color);
}

.s283-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.s283-carousel-slide.active {
    opacity: 1;
}

.s283-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s283-carousel-indicators {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.s283-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s283-carousel-indicator.active {
    background: var(--secondary-color);
    width: 2.4rem;
    border-radius: 0.4rem;
}

/* Hero Section */
.s283-hero {
    padding: 2rem 0;
    text-align: center;
}

.s283-hero h1 {
    font-family: var(--font-secondary);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.6rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.s283-hero-description {
    font-size: 1.6rem;
    color: #E0E0E0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.s283-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

/* Game Sections */
.s283-section {
    padding: 2.4rem 0;
}

.s283-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.6rem;
}

.s283-section-title {
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s283-section-title .icon {
    font-size: 2.8rem;
}

.s283-game-filter {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.8rem 0;
    margin-bottom: 1.6rem;
    scrollbar-width: none;
}

.s283-game-filter::-webkit-scrollbar {
    display: none;
}

.s283-filter-btn {
    padding: 0.8rem 1.6rem;
    background: var(--bg-secondary);
    border: 0.2rem solid var(--border-color);
    border-radius: 2.4rem;
    color: var(--light-text);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.s283-filter-btn.active,
.s283-filter-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--secondary-color);
}

.s283-game-category {
    margin-bottom: 2.4rem;
}

.s283-game-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
    padding: 1.2rem;
    background: var(--bg-secondary);
    border-radius: 1.2rem;
    border-left: 0.4rem solid var(--secondary-color);
}

.s283-game-category-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.s283-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.s283-game-item {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0.2rem 0.8rem var(--shadow-color);
}

.s283-game-item:hover {
    transform: translateY(-0.4rem) scale(1.05);
    box-shadow: 0 0.8rem 1.6rem var(--shadow-color);
}

.s283-game-item img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 1.2rem 1.2rem 0 0;
}

.s283-game-name {
    padding: 0.8rem 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.s283-content-module {
    background: var(--bg-secondary);
    border-radius: 1.6rem;
    padding: 2rem;
    margin-bottom: 2.4rem;
    box-shadow: 0 0.4rem 1.6rem var(--shadow-color);
    border: 0.1rem solid var(--border-color);
}

.s283-module-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.s283-module-icon {
    width: 4.8rem;
    height: 4.8rem;
    background: var(--gradient-primary);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--secondary-color);
}

.s283-module-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.s283-module-content {
    color: #E0E0E0;
    line-height: 1.6;
}

.s283-module-content p {
    margin-bottom: 1.2rem;
}

.s283-module-content ul {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

.s283-module-content li {
    margin-bottom: 0.8rem;
    list-style-type: none;
    position: relative;
}

.s283-module-content li:before {
    content: "▸";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Partner Section */
.s283-partners {
    padding: 2.4rem 0;
    text-align: center;
}

.s283-partners-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.6rem;
}

.s283-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.s283-partner-item {
    background: var(--bg-secondary);
    border-radius: 0.8rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    transition: all 0.3s ease;
}

.s283-partner-item:hover {
    transform: scale(1.05);
    background: var(--bg-tertiary);
}

.s283-partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
}

.s283-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Bottom Navigation */
.s283-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    z-index: 1000;
    box-shadow: 0 -0.2rem 1rem var(--shadow-color);
    border-top: 0.1rem solid var(--border-color);
}

.s283-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    max-width: 430px;
    margin: 0 auto;
}

.s283-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--light-text);
    text-decoration: none;
    min-width: 6rem;
    min-height: 6rem;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.s283-nav-item:hover,
.s283-nav-item.active {
    color: var(--secondary-color);
    transform: translateY(-0.2rem);
}

.s283-nav-item.active:before {
    content: '';
    position: absolute;
    top: -0.8rem;
    width: 4rem;
    height: 0.4rem;
    background: var(--secondary-color);
    border-radius: 0.2rem 0.2rem 0 0;
}

.s283-nav-icon {
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s283-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.s283-footer {
    background: var(--bg-secondary);
    padding: 2.4rem 0;
    margin-top: 4rem;
    border-top: 0.1rem solid var(--border-color);
}

.s283-footer-content {
    text-align: center;
}

.s283-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.s283-footer-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.s283-footer-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.s283-footer-copyright {
    color: #E0E0E0;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Utility Classes */
.s283-text-center {
    text-align: center;
}

.s283-text-gold {
    color: var(--secondary-color);
}

.s283-bg-gradient {
    background: var(--gradient-primary);
}

.s283-mb-1 { margin-bottom: 1rem; }
.s283-mb-2 { margin-bottom: 2rem; }
.s283-mb-3 { margin-bottom: 3rem; }

.s283-mt-1 { margin-top: 1rem; }
.s283-mt-2 { margin-top: 2rem; }
.s283-mt-3 { margin-top: 3rem; }

/* Responsive Design */
@media (min-width: 769px) {
    .s283-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .s283-container {
        max-width: 1200px;
    }

    .s283-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .s283-partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s283-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.s283-pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.s283-loading {
    position: relative;
    overflow: hidden;
}

.s283-loading:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}