/**
 * JL29 App - Main Stylesheet
 * All classes use s172- prefix to avoid conflicts
 */

/* CSS Variables */
:root {
    --s172-primary: #A0522D;
    --s172-secondary: #333333;
    --s172-accent: #FFDEAD;
    --s172-highlight: #20B2AA;
    --s172-purple: #DA70D6;
    --s172-white: #FFFFFF;
    --s172-light: #F5F5F5;
    --s172-dark: #1A1A1A;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s172-white);
    background-color: var(--s172-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.s172-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--s172-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.8rem 0;
}

.s172-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.s172-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--s172-white);
    font-size: 1.8rem;
    font-weight: bold;
}

.s172-logo img {
    width: 28px;
    height: 28px;
}

.s172-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.s172-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.s172-btn-primary {
    background-color: var(--s172-highlight);
    color: var(--s172-white);
}

.s172-btn-primary:hover {
    background-color: #1A9B93;
    transform: translateY(-2px);
}

.s172-btn-secondary {
    background-color: var(--s172-primary);
    color: var(--s172-white);
}

.s172-btn-secondary:hover {
    background-color: #8B4513;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.s172-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.s172-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--s172-white);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.s172-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--s172-dark);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding-top: 60px;
}

.s172-mobile-menu.web72d-menu-open {
    right: 0;
}

.s172-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--s172-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 10px;
}

.s172-menu-nav {
    padding: 1rem;
}

.s172-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--s172-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.s172-menu-nav a:hover {
    background-color: var(--s172-primary);
    padding-left: 1.5rem;
}

/* Main Content */
.s172-main {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero Carousel */
.s172-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.s172-carousel-slide {
    min-width: 100%;
}

.s172-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styles */
.s172-section {
    padding: 2rem 0;
}

.s172-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--s172-accent);
    text-align: center;
}

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

.s172-game-item {
    background-color: var(--s172-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.s172-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4);
}

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

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

/* Category Section */
.s172-category {
    margin-bottom: 3rem;
}

.s172-category-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--s172-highlight);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--s172-primary);
}

/* Card Styles */
.s172-card {
    background-color: var(--s172-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.s172-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s172-accent);
    margin-bottom: 1rem;
}

.s172-card-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--s172-white);
}

/* Promo Links */
.s172-promo-link {
    color: var(--s172-highlight);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.s172-promo-link:hover {
    color: var(--s172-purple);
    text-decoration: underline;
}

/* Bottom Navigation */
.s172-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--s172-primary), var(--s172-secondary));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.s172-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--s172-accent);
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.s172-nav-item:hover {
    transform: scale(1.1);
}

.s172-nav-item i {
    font-size: 24px;
}

.s172-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

/* Footer */
.s172-footer {
    background-color: var(--s172-dark);
    padding: 2rem 0;
    margin-top: 3rem;
}

.s172-footer-content {
    text-align: center;
}

.s172-footer-links {
    margin-bottom: 1.5rem;
}

.s172-footer-links a {
    color: var(--s172-highlight);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.s172-footer-links a:hover {
    color: var(--s172-purple);
}

.s172-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.s172-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.s172-partner-logo:hover {
    filter: grayscale(0%);
}

.s172-copyright {
    color: var(--s172-white);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s172-bottom-nav {
        display: none;
    }

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

/* Desktop navigation (hidden on mobile) */
@media (min-width: 769px) {
    .s172-desktop-nav {
        display: block;
    }

    .s172-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .s172-desktop-nav {
        display: none;
    }
}

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

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

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

.s72-highlight {
    color: var(--s172-highlight);
    font-weight: bold;
}
