/**
 * JL Pub Core Stylesheet
 * Version: 1.0.0
 * Mobile-first responsive design
 */

:root {
    --w1572-primary: #FF6347;
    --w1572-secondary: #FF9800;
    --w1572-accent: #FF4500;
    --w1572-success: #008000;
    --w1572-dark: #333333;
    --w1572-light: #E5E5E5;
    --w1572-white: #FFFFFF;
    --w1572-overlay: rgba(0, 0, 0, 0.9);
    --w1572-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --w1572-transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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(--w1572-light);
    background-color: var(--w1572-dark);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--w1572-transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.w1572-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.w1572-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.w1572-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--w1572-dark);
    box-shadow: var(--w1572-shadow);
    z-index: 1000;
    border-bottom: 2px solid var(--w1572-primary);
}

.w1572-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.w1572-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w1572-primary);
}

.w1572-logo-icon {
    width: 32px;
    height: 32px;
}

.w1572-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    z-index: 10001;
}

.w1572-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--w1572-primary);
    transition: var(--w1572-transition);
}

.w1572-header-actions {
    display: flex;
    gap: 0.5rem;
}

.w1572-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--w1572-transition);
    cursor: pointer;
}

.w1572-btn-primary {
    background: linear-gradient(135deg, var(--w1572-primary), var(--w1572-accent));
    color: var(--w1572-white);
}

.w1572-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4);
}

.w1572-btn-secondary {
    background-color: transparent;
    color: var(--w1572-primary);
    border: 2px solid var(--w1572-primary);
}

.w1572-btn-secondary:hover {
    background-color: var(--w1572-primary);
    color: var(--w1572-white);
}

.w1572-btn-text {
    color: var(--w1572-primary);
    font-weight: 700;
    text-decoration: underline;
}

/* Mobile Menu */
.w1572-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--w1572-overlay);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 80px 2rem 2rem;
    overflow-y: auto;
}

.w1572-mobile-menu.w1572-menu-open {
    transform: translateX(0);
}

.w1572-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w1572-menu-link {
    display: block;
    padding: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w1572-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--w1572-transition);
}

.w1572-menu-link:hover {
    color: var(--w1572-primary);
    padding-left: 1.5rem;
}

.w1572-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w1572-transition);
}

.w1572-menu-overlay.w1572-menu-open {
    opacity: 1;
    visibility: visible;
}

.w1572-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.4rem;
    color: var(--w1572-light);
    padding: 0.5rem;
}

/* Main Content */
main {
    padding-top: 80px;
    padding-bottom: 2rem;
}

/* Carousel */
.w1572-carousel {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--w1572-shadow);
}

.w1572-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.w1572-carousel-slide {
    min-width: 100%;
    position: relative;
}

.w1572-carousel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.w1572-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--w1572-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--w1572-transition);
}

.w1572-carousel-btn:hover {
    background-color: var(--w1572-primary);
}

.w1572-carousel-prev {
    left: 10px;
}

.w1572-carousel-next {
    right: 10px;
}

/* Sections */
.w1572-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.9), rgba(51, 51, 51, 0.95));
    border-radius: 12px;
    box-shadow: var(--w1572-shadow);
}

.w1572-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w1572-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w1572-section-content {
    color: var(--w1572-light);
    line-height: 1.8;
}

/* Game Grid */
.w1572-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.w1572-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: var(--w1572-transition);
}

.w1572-game-item:hover {
    transform: scale(1.05);
}

.w1572-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--w1572-shadow);
}

.w1572-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w1572-game-name {
    font-size: 1rem;
    color: var(--w1572-light);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w1572-game-item:hover .w1572-game-name {
    color: var(--w1572-primary);
}

.w1572-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w1572-secondary);
    margin: 1.5rem 0 1rem;
    text-align: center;
}

/* Cards */
.w1572-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--w1572-primary);
}

.w1572-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w1572-primary);
    margin-bottom: 0.8rem;
}

.w1572-card-content {
    font-size: 1.4rem;
    color: var(--w1572-light);
    line-height: 1.7;
}

.w1572-card-content strong {
    color: var(--w1572-primary);
    font-weight: 700;
}

/* Lists */
.w1572-list {
    list-style: none;
    margin: 1rem 0;
}

.w1572-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.w1572-list-item::before {
    content: "✓";
    color: var(--w1572-success);
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Footer */
.w1572-footer {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 3px solid var(--w1572-primary);
}

.w1572-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w1572-footer-link {
    color: var(--w1572-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.w1572-footer-link:hover {
    color: var(--w1572-secondary);
}

.w1572-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.w1572-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--w1572-transition);
}

.w1572-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.w1572-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Mobile Bottom Navigation */
.w1572-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w1572-dark), #2a2a2a);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 2px solid var(--w1572-primary);
}

.w1572-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    transition: var(--w1572-transition);
    cursor: pointer;
}

.w1572-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    color: var(--w1572-light);
    transition: var(--w1572-transition);
}

.w1572-nav-text {
    font-size: 10px;
    color: var(--w1572-light);
    font-weight: 600;
    text-transform: uppercase;
}

.w1572-nav-item:hover {
    transform: scale(1.1);
}

.w1572-nav-item:hover .w1572-nav-icon,
.w1572-nav-item:hover .w1572-nav-text {
    color: var(--w1572-primary);
}

.w1572-nav-item.active .w1572-nav-icon,
.w1572-nav-item.active .w1572-nav-text {
    color: var(--w1572-primary);
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .w1572-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .w1572-desktop-nav {
        display: flex;
    }
}

.w1572-desktop-nav {
    display: none;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.w1572-text-center {
    text-align: center;
}

.w1572-mt-1 {
    margin-top: 1rem;
}

.w1572-mt-2 {
    margin-top: 2rem;
}

.w1572-mb-1 {
    margin-bottom: 1rem;
}

.w1572-mb-2 {
    margin-bottom: 2rem;
}

.w1572-highlight {
    color: var(--w1572-primary);
    font-weight: 700;
}

.w1572-promo-link {
    color: var(--w1572-secondary);
    font-weight: 700;
    text-decoration: underline;
}

.w1572-promo-link:hover {
    color: var(--w1572-accent);
}
