/**
 * 4JL Website Theme Stylesheet
 * Prefix: g8d2-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --g8d2-bg-dark: #212F3D;
    --g8d2-accent: #FF4500;
    --g8d2-text-light: #D3D3D3;
    --g8d2-accent-light: #FF7F50;
    --g8d2-accent-deep: #BF360C;
    --g8d2-bg-cream: #FFFACD;
    --g8d2-white: #FFFFFF;
    --g8d2-black: #000000;
    --g8d2-overlay: rgba(33, 47, 61, 0.95);
    --g8d2-shadow: rgba(0, 0, 0, 0.3);
    --g8d2-gold: #FFD700;
}

/* 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(--g8d2-bg-dark);
    color: var(--g8d2-text-light);
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container */
.g8d2-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.g8d2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g8d2-bg-dark) 0%, #1a2530 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--g8d2-shadow);
    transition: box-shadow 0.3s ease;
}

.g8d2-header-scrolled {
    box-shadow: 0 4px 20px var(--g8d2-shadow);
}

.g8d2-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.g8d2-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--g8d2-white);
}

.g8d2-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g8d2-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--g8d2-accent), var(--g8d2-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g8d2-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g8d2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.g8d2-btn-primary {
    background: linear-gradient(135deg, var(--g8d2-accent) 0%, var(--g8d2-accent-deep) 100%);
    color: var(--g8d2-white);
}

.g8d2-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.g8d2-btn-secondary {
    background: transparent;
    border: 2px solid var(--g8d2-accent);
    color: var(--g8d2-accent);
}

.g8d2-btn-secondary:hover {
    background: var(--g8d2-accent);
    color: var(--g8d2-white);
}

/* Hamburger Menu */
.g8d2-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    background: transparent;
    border: none;
}

.g8d2-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--g8d2-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.g8d2-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.g8d2-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.g8d2-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.g8d2-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g8d2-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.g8d2-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g8d2-overlay);
    z-index: 9999;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g8d2-menu-active {
    right: 0;
}

.g8d2-nav-list {
    list-style: none;
}

.g8d2-nav-item {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.g8d2-nav-item a {
    color: var(--g8d2-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.g8d2-nav-item a:hover {
    color: var(--g8d2-accent);
}

.g8d2-nav-item i {
    width: 20px;
    text-align: center;
    color: var(--g8d2-accent);
}

/* Main Content */
main {
    padding-top: 60px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Slider/Carousel */
.g8d2-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.g8d2-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g8d2-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
    display: none;
}

.g8d2-slide-active {
    display: block;
}

.g8d2-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.g8d2-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g8d2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
}

.g8d2-dot-active {
    background: var(--g8d2-accent);
}

/* Section Styles */
.g8d2-section {
    padding: 2rem 0;
}

.g8d2-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g8d2-white);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--g8d2-accent);
}

.g8d2-section-desc {
    font-size: 1.3rem;
    color: var(--g8d2-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Game Grid */
.g8d2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g8d2-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g8d2-game-item:hover {
    transform: scale(1.05);
}

.g8d2-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.g8d2-game-item:hover .g8d2-game-img {
    border-color: var(--g8d2-accent);
}

.g8d2-game-name {
    font-size: 1rem;
    color: var(--g8d2-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.g8d2-cat-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g8d2-accent);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g8d2-cat-title i {
    font-size: 1.8rem;
}

/* Cards */
.g8d2-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.g8d2-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g8d2-accent);
    margin-bottom: 0.8rem;
}

.g8d2-card-text {
    font-size: 1.2rem;
    color: var(--g8d2-text-light);
    line-height: 1.6;
}

/* Feature List */
.g8d2-feature-list {
    list-style: none;
}

.g8d2-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g8d2-feature-item:last-child {
    border-bottom: none;
}

.g8d2-feature-item i {
    color: var(--g8d2-accent);
    font-size: 1.4rem;
    margin-top: 2px;
}

/* FAQ Accordion */
.g8d2-faq-item {
    margin-bottom: 0.8rem;
}

.g8d2-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.g8d2-faq-question:hover {
    background: rgba(255, 69, 0, 0.1);
}

.g8d2-faq-answer {
    padding: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--g8d2-text-light);
}

/* Promo Links */
.g8d2-promo-link {
    color: var(--g8d2-accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g8d2-promo-link:hover {
    color: var(--g8d2-accent-light);
}

.g8d2-promo-text {
    color: var(--g8d2-accent);
    font-weight: 600;
}

/* Footer */
.g8d2-footer {
    background: linear-gradient(180deg, var(--g8d2-bg-dark) 0%, #1a2530 100%);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
}

.g8d2-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g8d2-footer-link {
    color: var(--g8d2-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g8d2-footer-link:hover {
    color: var(--g8d2-accent);
}

.g8d2-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.g8d2-partner-img {
    width: 40px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g8d2-partner-img:hover {
    opacity: 1;
}

.g8d2-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g8d2-text-light);
    opacity: 0.7;
}

/* Bottom Navigation */
.g8d2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a2530 0%, var(--g8d2-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 15px var(--g8d2-shadow);
    border-top: 1px solid rgba(255, 69, 0, 0.3);
}

@media (min-width: 769px) {
    .g8d2-bottom-nav {
        display: none;
    }
}

.g8d2-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--g8d2-text-light);
}

.g8d2-nav-btn:hover,
.g8d2-nav-btn-active {
    color: var(--g8d2-accent);
    transform: scale(1.1);
}

.g8d2-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.g8d2-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utilities */
.g8d2-text-center {
    text-align: center;
}

.g8d2-mt-2 {
    margin-top: 2rem;
}

.g8d2-mb-2 {
    margin-bottom: 2rem;
}

.g8d2-py-2 {
    padding: 2rem 0;
}

/* H1 Title */
.g8d2-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g8d2-white);
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Internal Links */
.g8d2-internal-link {
    color: var(--g8d2-accent-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.g8d2-internal-link:hover {
    color: var(--g8d2-accent);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .g8d2-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g8d2-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}
