/* JL29 Theme Stylesheet - v018 prefix
 * Color Palette:
 * - Dark Blue: #212F3D
 * - Light Gray: #E0E0E0
 * - Light Goldenrod: #FAFAD2
 * - Peru: #CD853F
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark-blue: #212F3D;
    --color-light-gray: #E0E0E0;
    --color-light-goldenrod: #FAFAD2;
    --color-peru: #CD853F;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition-base: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-dark-blue);
    color: var(--color-light-gray);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Container */
.v018-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 769px) {
    .v018-container {
        max-width: 1200px;
    }
}

/* Header Styles */
.v018-header {
    background-color: var(--color-dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.v018-header.v018-hidden {
    transform: translateY(-100%);
}

.v018-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .v018-header-inner {
        max-width: 1200px;
        padding: 15px 20px;
    }
}

.v018-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-light-goldenrod);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.v018-header-buttons {
    display: flex;
    gap: 10px;
}

.v018-header-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.v018-btn-register {
    background-color: var(--color-peru);
    color: var(--color-white);
}

.v018-btn-register:hover {
    background-color: #b8732f;
    transform: translateY(-2px);
}

.v018-btn-login {
    background-color: transparent;
    color: var(--color-light-goldenrod);
    border: 2px solid var(--color-light-goldenrod);
}

.v018-btn-login:hover {
    background-color: var(--color-light-goldenrod);
    color: var(--color-dark-blue);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.v018-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
}

@media (min-width: 769px) {
    .v018-menu-toggle {
        display: none;
    }
}

.v018-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-light-goldenrod);
    margin: 5px 0;
    transition: var(--transition-base);
}

/* Mobile Menu Overlay */
.v018-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v018-menu-overlay.v018-active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.v018-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark-blue);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.v018-mobile-menu.v018-active {
    right: 0;
}

.v018-close-menu {
    background: none;
    border: none;
    color: var(--color-light-goldenrod);
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v018-mobile-menu-nav {
    list-style: none;
}

.v018-mobile-menu-nav li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(254, 250, 210, 0.1);
    padding-bottom: 15px;
}

.v018-mobile-menu-nav a {
    color: var(--color-light-gray);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-base);
}

.v018-mobile-menu-nav a:hover {
    color: var(--color-light-goldenrod);
    padding-left: 5px;
}

/* Hero Slider */
.v018-hero-slider {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v018-hero-slider {
        margin-top: 70px;
        border-radius: 15px;
    }
}

.v018-hero-slide {
    display: none;
    width: 100%;
    height: 200px;
    position: relative;
}

@media (min-width: 769px) {
    .v018-hero-slide {
        height: 400px;
    }
}

.v018-hero-slide.v018-active {
    display: block;
}

.v018-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v018-slider-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.v018-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.v018-slider-dot.v018-active,
.v018-slider-dot:hover {
    background-color: var(--color-peru);
    transform: scale(1.2);
}

.v018-slider-prev,
.v018-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-base);
    z-index: 10;
}

.v018-slider-prev {
    left: 10px;
}

.v018-slider-next {
    right: 10px;
}

.v018-slider-prev:hover,
.v018-slider-next:hover {
    background-color: var(--color-peru);
}

/* Main Content */
main {
    padding: 20px 0 80px;
}

@media (min-width: 769px) {
    main {
        padding: 30px 0 40px;
    }
}

/* Section Styles */
.v018-section {
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .v018-section {
        margin-bottom: 50px;
    }
}

.v018-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-light-goldenrod);
    margin-bottom: 15px;
    text-align: center;
}

@media (min-width: 769px) {
    .v018-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* Category Filter */
.v018-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.v018-category-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid var(--color-peru);
    color: var(--color-light-gray);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-base);
}

.v018-category-btn:hover,
.v018-category-btn.v018-active {
    background-color: var(--color-peru);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Game Grid */
.v018-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 769px) {
    .v018-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Game Card */
.v018-game-card {
    background-color: rgba(33, 47, 61, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.v018-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.v018-game-card-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 769px) {
    .v018-game-card-image {
        height: 180px;
    }
}

.v018-game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.v018-game-card:hover .v018-game-card-image img {
    transform: scale(1.1);
}

.v018-game-card-info {
    padding: 10px;
}

.v018-game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-light-gray);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .v018-game-card-title {
        font-size: 16px;
    }
}

.v018-game-card-category {
    font-size: 12px;
    color: var(--color-peru);
    text-transform: uppercase;
}

/* Featured Games */
.v018-featured-section {
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.1) 0%, rgba(33, 47, 61, 0.8) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Content Sections */
.v018-content {
    background-color: rgba(33, 47, 61, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.v018-content h2 {
    color: var(--color-light-goldenrod);
    font-size: 20px;
    margin-bottom: 15px;
}

.v018-content h3 {
    color: var(--color-peru);
    font-size: 18px;
    margin-bottom: 10px;
}

.v018-content p {
    margin-bottom: 15px;
    color: var(--color-light-gray);
}

.v018-content ul,
.v018-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.v018-content li {
    margin-bottom: 8px;
    color: var(--color-light-gray);
}

.v018-content a {
    color: var(--color-peru);
    text-decoration: none;
    transition: var(--transition-base);
}

.v018-content a:hover {
    color: var(--color-light-goldenrod);
    text-decoration: underline;
}

/* Partner Section */
.v018-partners-section {
    text-align: center;
    margin: 30px 0;
}

.v018-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 769px) {
    .v018-partners-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 20px;
    }
}

.v018-partner-logo {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: var(--transition-base);
}

.v018-partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(205, 133, 63, 0.3);
}

.v018-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer */
.v018-footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px 0 80px;
    margin-top: 40px;
}

@media (min-width: 769px) {
    .v018-footer {
        padding: 40px 0 20px;
    }
}

.v018-footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 769px) {
    .v018-footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.v018-footer-section {
    flex: 1;
}

.v018-footer-title {
    color: var(--color-light-goldenrod);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.v018-footer-links {
    list-style: none;
}

.v018-footer-links li {
    margin-bottom: 8px;
}

.v018-footer-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
}

.v018-footer-links a:hover {
    color: var(--color-peru);
    padding-left: 5px;
}

.v018-footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(224, 224, 224, 0.2);
    color: var(--color-light-gray);
    font-size: 12px;
}

/* Mobile Bottom Navigation */
.v018-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-top: 2px solid var(--color-peru);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v018-bottom-nav {
        display: none;
    }
}

.v018-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v018-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--color-light-gray);
    transition: var(--transition-base);
    cursor: pointer;
    padding: 5px;
}

.v018-nav-item:hover,
.v018-nav-item.v018-active {
    color: var(--color-peru);
    transform: scale(1.1);
}

.v018-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v018-nav-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* Notification */
.v018-notification {
    position: fixed;
    top: 80px;
    right: 15px;
    background-color: var(--color-peru);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: v018SlideIn 0.3s ease;
}

@keyframes v018SlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Back to Top Button */
.v018-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 15px;
    background-color: var(--color-peru);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 769px) {
    .v018-back-to-top {
        bottom: 30px;
    }
}

.v018-back-to-top.v018-visible {
    opacity: 1;
    visibility: visible;
}

.v018-back-to-top:hover {
    background-color: #b8732f;
    transform: translateY(-5px);
}

/* Utility Classes */
.v018-text-center {
    text-align: center;
}

.v018-mt-20 {
    margin-top: 20px;
}

.v018-mb-20 {
    margin-bottom: 20px;
}

.v018-hidden {
    display: none !important;
}

/* Accessibility */
.v018-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .v018-header,
    .v018-bottom-nav,
    .v018-back-to-top,
    .v018-mobile-menu {
        display: none !important;
    }

    main {
        padding-bottom: 0;
    }
}

/* Loading Animation */
.v018-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: v018Spin 1s ease-in-out infinite;
}

@keyframes v018Spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation for CTA */
.v018-pulse {
    animation: v018Pulse 2s infinite;
}

@keyframes v018Pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--color-peru);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8732f;
}
