/**
 * Jil29 Core Stylesheet
 * Website: jil29.club
 * Prefix: w76f3-
 */

/* CSS Variables */
:root {
    --w76f3-primary: #DAA520;
    --w76f3-secondary: #DEB887;
    --w76f3-bg-dark: #141414;
    --w76f3-bg-card: #1a1a1a;
    --w76f3-text-light: #ADB5BD;
    --w76f3-text-white: #ffffff;
    --w76f3-accent: #DAA520;
    --w76f3-border: #2a2a2a;
    --w76f3-shadow: rgba(0, 0, 0, 0.3);
    --w76f3-radius: 8px;
    --w76f3-radius-lg: 12px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w76f3-bg-dark);
    color: var(--w76f3-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.w76f3-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w76f3-wrapper {
    padding: 1.2rem;
}

/* Header */
.w76f3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #141414 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--w76f3-border);
    z-index: 1000;
    padding: 0.8rem 1rem;
}

.w76f3-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w76f3-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w76f3-logo img {
    width: 28px;
    height: 28px;
}

.w76f3-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w76f3-primary);
    letter-spacing: 0.5px;
}

.w76f3-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w76f3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w76f3-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 36px;
}

.w76f3-btn-primary {
    background: linear-gradient(135deg, var(--w76f3-primary) 0%, #c4951a 100%);
    color: var(--w76f3-bg-dark);
}

.w76f3-btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.w76f3-btn-outline {
    background: transparent;
    border: 1.5px solid var(--w76f3-primary);
    color: var(--w76f3-primary);
}

.w76f3-btn-outline:hover {
    background: rgba(218, 165, 32, 0.1);
}

.w76f3-menu-btn {
    background: none;
    border: none;
    color: var(--w76f3-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.w76f3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w76f3-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.w76f3-menu-active {
    right: 0;
}

.w76f3-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w76f3-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w76f3-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w76f3-border);
}

.w76f3-close-btn {
    background: none;
    border: none;
    color: var(--w76f3-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.w76f3-nav-links {
    list-style: none;
}

.w76f3-nav-links li {
    margin-bottom: 0.8rem;
}

.w76f3-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--w76f3-text-light);
    font-size: 1.4rem;
    border-radius: var(--w76f3-radius);
    transition: all 0.2s ease;
}

.w76f3-nav-links a:hover {
    background: rgba(218, 165, 32, 0.1);
    color: var(--w76f3-primary);
}

/* Main Content */
.w76f3-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.w76f3-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--w76f3-radius-lg);
    margin: 1rem 0;
}

.w76f3-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w76f3-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.w76f3-slide-active {
    opacity: 1;
    position: relative;
}

.w76f3-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

/* Sections */
.w76f3-section {
    padding: 1.5rem 0;
}

.w76f3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w76f3-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w76f3-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.w76f3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w76f3-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.w76f3-game-item:hover {
    transform: translateY(-3px);
}

.w76f3-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--w76f3-radius);
    border: 2px solid var(--w76f3-border);
    transition: border-color 0.2s ease;
}

.w76f3-game-item:hover .w76f3-game-img {
    border-color: var(--w76f3-primary);
}

.w76f3-game-name {
    font-size: 1.1rem;
    color: var(--w76f3-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.w76f3-category {
    margin-bottom: 2rem;
}

.w76f3-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.w76f3-category-icon {
    width: 24px;
    height: 24px;
    color: var(--w76f3-primary);
}

.w76f3-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w76f3-text-white);
}

/* Cards */
.w76f3-card {
    background: var(--w76f3-bg-card);
    border-radius: var(--w76f3-radius-lg);
    padding: 1.2rem;
    border: 1px solid var(--w76f3-border);
}

.w76f3-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w76f3-primary);
    margin-bottom: 0.8rem;
}

.w76f3-card-text {
    font-size: 1.3rem;
    color: var(--w76f3-text-light);
    line-height: 1.6;
}

/* Footer */
.w76f3-footer {
    background: var(--w76f3-bg-card);
    border-top: 1px solid var(--w76f3-border);
    padding: 2rem 1rem;
}

.w76f3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w76f3-footer-links a {
    font-size: 1.2rem;
    color: var(--w76f3-text-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--w76f3-radius);
    transition: all 0.2s ease;
}

.w76f3-footer-links a:hover {
    color: var(--w76f3-primary);
    background: rgba(218, 165, 32, 0.1);
}

.w76f3-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w76f3-partners img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.w76f3-partners img:hover {
    opacity: 1;
}

.w76f3-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--w76f3-text-light);
    opacity: 0.7;
}

/* Bottom Navigation */
.w76f3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border-top: 1px solid var(--w76f3-border);
    z-index: 1000;
    padding: 0.6rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.w76f3-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 60px;
    min-height: 48px;
    background: none;
    border: none;
    color: var(--w76f3-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.4rem;
}

.w76f3-nav-btn:hover,
.w76f3-nav-btn.w76f3-active {
    color: var(--w76f3-primary);
}

.w76f3-nav-btn i,
.w76f3-nav-btn .material-icons {
    font-size: 22px;
}

.w76f3-nav-btn span {
    font-size: 1rem;
}

/* Utilities */
.w76f3-text-gold {
    color: var(--w76f3-primary);
}

.w76f3-text-center {
    text-align: center;
}

.w76f3-mb-1 {
    margin-bottom: 1rem;
}

.w76f3-mb-2 {
    margin-bottom: 2rem;
}

.w76f3-py-1 {
    padding: 1rem 0;
}

.w76f3-hidden-mobile {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .w76f3-container {
        max-width: 800px;
    }

    .w76f3-bottom-nav {
        display: none;
    }

    .w76f3-main {
        padding-bottom: 2rem;
    }

    .w76f3-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w76f3-hidden-mobile {
        display: block;
    }
}

/* Touch feedback */
@media (hover: none) {
    .w76f3-btn:active,
    .w76f3-nav-btn:active,
    .w76f3-game-item:active {
        transform: scale(0.95);
    }
}

/* List Styles */
.w76f3-list {
    list-style: none;
}

.w76f3-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--w76f3-border);
    font-size: 1.3rem;
    line-height: 1.5;
}

.w76f3-list li:last-child {
    border-bottom: none;
}

/* Promo Banner */
.w76f3-promo-banner {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2) 0%, rgba(222, 184, 135, 0.1) 100%);
    border: 1px solid var(--w76f3-primary);
    border-radius: var(--w76f3-radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.w76f3-promo-banner h3 {
    color: var(--w76f3-primary);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.w76f3-promo-banner p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* H1 Title */
.w76f3-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w76f3-text-white);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

.w76f3-h1-title span {
    color: var(--w76f3-primary);
}

/* Content Text */
.w76f3-content {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--w76f3-text-light);
}

.w76f3-content p {
    margin-bottom: 1rem;
}

.w76f3-content strong {
    color: var(--w76f3-primary);
}

.w76f3-content a {
    color: var(--w76f3-primary);
    text-decoration: underline;
}
