/**
 * jili999 login Website Styles
 * All classes use prefix "pg76-" for namespace isolation
 */

/* 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: #FFE4B5;
    background-color: #2C3E50;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --pg76-primary: #EE82EE;
    --pg76-secondary: #DA70D6;
    --pg76-accent: #8470FF;
    --pg76-bg: #2C3E50;
    --pg76-bg-light: #34495e;
    --pg76-text: #FFE4B5;
    --pg76-text-light: #DA70D6;
    --pg76-border: rgba(238, 130, 238, 0.3);
    --pg76-shadow: rgba(0, 0, 0, 0.3);
    --pg76-radius: 0.8rem;
    --pg76-transition: all 0.3s ease;
}

/* Container */
.pg76-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pg76-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg76-bg) 0%, var(--pg76-bg-light) 100%);
    border-bottom: 1px solid var(--pg76-border);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.pg76-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: 6rem;
}

.pg76-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--pg76-primary);
    font-weight: 700;
    font-size: 2rem;
}

.pg76-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
}

/* Desktop Navigation */
.pg76-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .pg76-desktop-nav {
        display: block;
    }

    .pg76-desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .pg76-desktop-nav a {
        color: var(--pg76-text);
        text-decoration: none;
        font-weight: 500;
        transition: var(--pg76-transition);
        padding: 0.5rem 1rem;
        border-radius: var(--pg76-radius);
    }

    .pg76-desktop-nav a:hover {
        color: var(--pg76-primary);
        background: rgba(238, 130, 238, 0.1);
    }
}

/* Header Buttons */
.pg76-header-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.pg76-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--pg76-radius);
    cursor: pointer;
    transition: var(--pg76-transition);
    min-height: 4.4rem;
    white-space: nowrap;
}

.pg76-btn-primary {
    background: linear-gradient(135deg, var(--pg76-primary) 0%, #DA70D6 100%);
    color: var(--pg76-bg);
    box-shadow: 0 2px 10px rgba(238, 130, 238, 0.3);
}

.pg76-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(238, 130, 238, 0.4);
}

.pg76-btn-secondary {
    background: transparent;
    color: var(--pg76-primary);
    border: 2px solid var(--pg76-primary);
}

.pg76-btn-secondary:hover {
    background: var(--pg76-primary);
    color: var(--pg76-bg);
}

.pg76-btn-large {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
}

.pg76-btn-xlarge {
    padding: 1.6rem 3.2rem;
    font-size: 1.8rem;
}

.pg76-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pg76-spinner {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: pg76-spin 1s linear infinite;
}

@keyframes pg76-spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Toggle */
.pg76-mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg76-mobile-menu-toggle span {
    width: 2.4rem;
    height: 0.3rem;
    background: var(--pg76-primary);
    transition: var(--pg76-transition);
    border-radius: 0.2rem;
}

@media (min-width: 769px) {
    .pg76-mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.pg76-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 32rem;
    height: 100vh;
    background: linear-gradient(135deg, var(--pg76-bg) 0%, var(--pg76-bg-light) 100%);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.pg76-mobile-menu.active {
    right: 0;
}

.pg76-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--pg76-transition);
    z-index: 9998;
}

.pg76-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pg76-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--pg76-border);
}

.pg76-close-menu {
    background: none;
    border: none;
    color: var(--pg76-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.pg76-mobile-nav ul {
    list-style: none;
    padding: 1.5rem 0;
}

.pg76-mobile-nav li {
    border-bottom: 1px solid var(--pg76-border);
}

.pg76-mobile-nav a {
    display: block;
    padding: 1.5rem;
    color: var(--pg76-text);
    text-decoration: none;
    transition: var(--pg76-transition);
}

.pg76-mobile-nav a:hover {
    color: var(--pg76-primary);
    background: rgba(238, 130, 238, 0.1);
}

.pg76-mobile-menu-buttons {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Main Content */
.pg76-main {
    padding-top: 7rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Carousel */
.pg76-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pg76-radius);
    margin-bottom: 2rem;
}

.pg76-carousel-slide {
    display: none;
    width: 100%;
}

.pg76-carousel-slide.active {
    display: block;
}

.pg76-carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 25rem;
    object-fit: cover;
}

.pg76-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg76-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pg76-transition);
}

.pg76-carousel-indicator.active {
    background: var(--pg76-primary);
}

.pg76-carousel-prev,
.pg76-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--pg76-transition);
}

.pg76-carousel-prev {
    left: 1rem;
}

.pg76-carousel-next {
    right: 1rem;
}

.pg76-carousel-prev:hover,
.pg76-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Games Grid */
.pg76-games-section {
    margin-bottom: 3rem;
}

.pg76-games-title {
    font-size: 2rem;
    color: var(--pg76-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg76-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1rem;
}

.pg76-game-card {
    background: var(--pg76-bg-light);
    border-radius: var(--pg76-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--pg76-transition);
    cursor: pointer;
}

.pg76-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pg76-shadow);
}

.pg76-game-card img {
    width: 100%;
    height: 6rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.pg76-game-card h3 {
    font-size: 1.2rem;
    color: var(--pg76-text);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.pg76-content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--pg76-bg-light);
    border-radius: var(--pg76-radius);
}

.pg76-content-section h2 {
    font-size: 2.4rem;
    color: var(--pg76-primary);
    margin-bottom: 1.5rem;
}

.pg76-content-section h3 {
    font-size: 2rem;
    color: var(--pg76-primary);
    margin-bottom: 1rem;
}

.pg76-content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pg76-content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.pg76-content-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.pg76-footer {
    background: linear-gradient(135deg, var(--pg76-bg-light) 0%, var(--pg76-bg) 100%);
    padding: 3rem 0 8rem;
    margin-top: 3rem;
}

.pg76-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pg76-footer-section h3 {
    color: var(--pg76-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pg76-footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pg76-footer-section ul {
    list-style: none;
}

.pg76-footer-section li {
    margin-bottom: 0.5rem;
}

.pg76-footer-section a {
    color: var(--pg76-text);
    text-decoration: none;
    transition: var(--pg76-transition);
}

.pg76-footer-section a:hover {
    color: var(--pg76-primary);
}

.pg76-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pg76-social-links a {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pg76-bg-light);
    border-radius: 50%;
    transition: var(--pg76-transition);
}

.pg76-social-links a:hover {
    background: var(--pg76-primary);
    color: var(--pg76-bg);
}

.pg76-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--pg76-border);
    color: var(--pg76-text-light);
}

.pg76-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.pg76-partners img {
    height: 3rem;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--pg76-transition);
}

.pg76-partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Bottom Navigation */
.pg76-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg76-bg-light) 0%, var(--pg76-bg) 100%);
    border-top: 1px solid var(--pg76-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6.4rem;
    z-index: 1000;
}

@media (min-width: 769px) {
    .pg76-bottom-nav {
        display: none;
    }

    .pg76-main {
        padding-bottom: 3rem;
    }
}

.pg76-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    background: none;
    border: none;
    color: var(--pg76-text-light);
    cursor: pointer;
    transition: var(--pg76-transition);
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
}

.pg76-bottom-nav-item:hover,
.pg76-bottom-nav-item.active {
    color: var(--pg76-primary);
}

.pg76-bottom-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pg76-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
        gap: 0.8rem;
    }

    .pg76-game-card {
        padding: 0.8rem;
    }

    .pg76-game-card img {
        height: 5rem;
    }

    .pg76-game-card h3 {
        font-size: 1rem;
    }

    .pg76-content-section {
        padding: 1.5rem;
    }

    .pg76-footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Utility Classes */
.pg76-text-center {
    text-align: center;
}

.pg76-text-primary {
    color: var(--pg76-primary);
}

.pg76-mt-1 {
    margin-top: 1rem;
}

.pg76-mt-2 {
    margin-top: 2rem;
}

.pg76-mb-1 {
    margin-bottom: 1rem;
}

.pg76-mb-2 {
    margin-bottom: 2rem;
}

.pg76-hidden {
    display: none;
}

.pg76-flex {
    display: flex;
}

.pg76-grid {
    display: grid;
}

.pg76-gap-1 {
    gap: 1rem;
}

.pg76-gap-2 {
    gap: 2rem;
}