/**
 * PaldoPlus CSS Stylesheet
 * All classes use g871- prefix for namespace isolation
 * Color scheme: #F8F9FA | #880E4F | #C9C9FF | #BDC3C7 | #BAFFC9 | #1C2833
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g871-primary: #880E4F;
    --g871-secondary: #C9C9FF;
    --g871-accent: #BAFFC9;
    --g871-bg-dark: #1C2833;
    --g871-bg-light: #F8F9FA;
    --g871-text-light: #F8F9FA;
    --g871-text-dark: #1C2833;
    --g871-border: #BDC3C7;
    --g871-gradient: linear-gradient(135deg, #880E4F 0%, #1C2833 100%);
    --g871-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g871-header-height: 60px;
    --g871-bottom-nav-height: 60px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--g871-bg-dark);
    color: var(--g871-text-light);
    overflow-x: hidden;
}

/* Container */
.g871-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.g871-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g871-header-height);
    background: var(--g871-gradient);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.g871-header-scrolled {
    background: rgba(136, 14, 79, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.g871-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g871-logo img {
    width: 32px;
    height: 32px;
}

.g871-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g871-text-light);
    text-decoration: none;
}

.g871-header-actions {
    display: flex;
    gap: 1rem;
}

.g871-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g871-btn-primary {
    background: var(--g871-accent);
    color: var(--g871-text-dark);
}

.g871-btn-primary:hover {
    background: #9affb3;
    transform: translateY(-2px);
}

.g871-btn-secondary {
    background: transparent;
    color: var(--g871-text-light);
    border: 2px solid var(--g871-secondary);
}

.g871-btn-secondary:hover {
    background: var(--g871-secondary);
    color: var(--g871-text-dark);
}

.g871-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.g871-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--g871-text-light);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g871-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g871-bg-dark);
    z-index: 9999;
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g871-menu-active {
    right: 0;
}

.g871-mobile-menu ul {
    list-style: none;
}

.g871-mobile-menu li {
    margin-bottom: 1.5rem;
}

.g871-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--g871-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g871-mobile-menu a:hover {
    background: rgba(201, 201, 255, 0.1);
    color: var(--g871-secondary);
}

.g871-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g871-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: var(--g871-header-height);
    padding-bottom: calc(var(--g871-bottom-nav-height) + 2rem);
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

/* Slider/Carousel */
.g871-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.g871-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g871-slide-active {
    opacity: 1;
}

.g871-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g871-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.g871-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g871-dot-active {
    background: var(--g871-accent);
    transform: scale(1.2);
}

/* Section Styles */
.g871-section {
    padding: 2rem 0;
}

.g871-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g871-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.g871-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--g871-primary);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.g871-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g871-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.g871-game-card:hover {
    background: rgba(201, 201, 255, 0.1);
    transform: translateY(-3px);
}

.g871-game-card img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.g871-game-name {
    font-size: 1.1rem;
    color: var(--g871-text-light);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Tabs */
.g871-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g871-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--g871-primary);
}

/* Content Cards */
.g871-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 201, 255, 0.1);
}

.g871-card h3 {
    font-size: 1.6rem;
    color: var(--g871-secondary);
    margin-bottom: 1rem;
}

.g871-card p {
    font-size: 1.4rem;
    color: var(--g871-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.g871-card ul {
    list-style: none;
    padding-left: 0;
}

.g871-card li {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201, 201, 255, 0.1);
}

.g871-card li:last-child {
    border-bottom: none;
}

/* Promo Link Styles */
.g871-promo-link {
    color: var(--g871-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g871-promo-link:hover {
    color: #9affb3;
    text-decoration: underline;
}

.g871-promo-btn {
    display: inline-block;
    background: var(--g871-primary);
    color: var(--g871-text-light);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.g871-promo-btn:hover {
    background: #a8125f;
    transform: scale(1.05);
}

/* Footer */
.g871-footer {
    background: var(--g871-bg-dark);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(201, 201, 255, 0.1);
}

.g871-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g871-footer-links a {
    color: var(--g871-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.g871-footer-links a:hover {
    color: var(--g871-secondary);
}

.g871-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g871-partners img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g871-partners img:hover {
    opacity: 1;
}

.g871-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Bottom Navigation */
.g871-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g871-bottom-nav-height);
    background: var(--g871-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .g871-bottom-nav {
        display: none;
    }
}

.g871-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.g871-nav-item:hover,
.g871-nav-item-active {
    color: var(--g871-accent);
    transform: scale(1.1);
}

.g871-nav-item i,
.g871-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.g871-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.g871-text-center {
    text-align: center;
}

.g871-mt-2 {
    margin-top: 2rem;
}

.g871-mb-2 {
    margin-bottom: 2rem;
}

.g871-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .g871-container {
        padding: 0 1rem;
    }

    .g871-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g871-game-card img {
        width: 55px;
        height: 55px;
    }

    .g871-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .g871-container {
        max-width: 600px;
    }

    .g871-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Animations */
@keyframes g871fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g871-animate {
    animation: g871fadeIn 0.5s ease forwards;
}

/* Internal Links */
.g871-internal-link {
    color: var(--g871-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.g871-internal-link:hover {
    color: var(--g871-accent);
}
