/* NuStarGame Design System */
/* Color Scheme: #CD853F (Peru) | #FFC0CB (Pink) | #212F3D (Dark) | #DB7093 (PaleVioletRed) */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pg5c-primary: #CD853F;
    --pg5c-secondary: #DB7093;
    --pg5c-accent: #FFC0CB;
    --pg5c-dark: #212F3D;
    --pg5c-light: #FFF5EE;
    --pg5c-bg: #1A1A2E;
    --pg5c-text: #FFFFFF;
    --pg5c-border: rgba(205, 133, 63, 0.3);
    --pg5c-shadow: rgba(0, 0, 0, 0.3);
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--pg5c-text);
    background: linear-gradient(135deg, var(--pg5c-bg) 0%, var(--pg5c-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pg5c-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
    width: 100%;
}

.pg5c-wrapper {
    padding: 2rem 0;
}

/* Header & Navigation */
.pg5c-header {
    background: linear-gradient(90deg, var(--pg5c-dark) 0%, #2C3E50 100%);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pg5c-shadow);
}

.pg5c-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg5c-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg5c-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pg5c-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg5c-primary);
}

.pg5c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg5c-btn-header {
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg5c-btn-register {
    background: linear-gradient(135deg, var(--pg5c-primary) 0%, var(--pg5c-secondary) 100%);
    color: #FFF;
}

.pg5c-btn-login {
    background: transparent;
    color: var(--pg5c-accent);
    border: 1px solid var(--pg5c-accent);
}

.pg5c-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

/* Burger Menu */
.pg5c-burger-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.pg5c-burger-line {
    width: 24px;
    height: 3px;
    background: var(--pg5c-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pg5c-burger-menu.pg5c-active .pg5c-burger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.pg5c-burger-menu.pg5c-active .pg5c-burger-line:nth-child(2) {
    opacity: 0;
}

.pg5c-burger-menu.pg5c-active .pg5c-burger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Navigation */
.pg5c-mobile-nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--pg5c-dark);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    border-left: 2px solid var(--pg5c-border);
}

.pg5c-mobile-nav.pg5c-active {
    right: 0;
}

.pg5c-mobile-nav-list {
    list-style: none;
    padding: 2rem 0;
}

.pg5c-mobile-nav-item {
    border-bottom: 1px solid var(--pg5c-border);
}

.pg5c-mobile-nav-link {
    display: block;
    padding: 1.6rem 2rem;
    color: var(--pg5c-text);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.pg5c-mobile-nav-link:hover {
    background: rgba(205, 133, 63, 0.1);
    color: var(--pg5c-primary);
    padding-left: 2.4rem;
}

.pg5c-nav-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.pg5c-nav-overlay.pg5c-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.pg5c-main {
    margin-top: 60px;
    padding: 2rem 0;
    min-height: calc(100vh - 60px);
}

/* Carousel */
.pg5c-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 2rem 0;
    border-radius: 1.2rem;
    overflow: hidden;
}

.pg5c-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg5c-carousel-item.pg5c-active {
    opacity: 1;
}

.pg5c-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.pg5c-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.pg5c-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg5c-carousel-dot.pg5c-active {
    background: var(--pg5c-primary);
    width: 30px;
    border-radius: 5px;
}

/* Buttons */
.pg5c-btn {
    padding: 1.2rem 2.4rem;
    border-radius: 2.5rem;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
}

.pg5c-btn-primary {
    background: linear-gradient(135deg, var(--pg5c-primary) 0%, var(--pg5c-secondary) 100%);
    color: #FFF;
}

.pg5c-btn-secondary {
    background: linear-gradient(135deg, var(--pg5c-secondary) 0%, #C71585 100%);
    color: #FFF;
}

.pg5c-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(205, 133, 63, 0.4);
}

.pg5c-btn:active {
    transform: translateY(-1px);
}

/* Card Components */
.pg5c-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    padding: 2rem;
    margin: 1.6rem 0;
    border: 1px solid var(--pg5c-border);
    backdrop-filter: blur(10px);
}

.pg5c-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg5c-primary);
    margin-bottom: 1.2rem;
}

.pg5c-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--pg5c-text);
}

/* Game Grid */
.pg5c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

.pg5c-game-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pg5c-game-item:hover {
    background: rgba(205, 133, 63, 0.1);
    border-color: var(--pg5c-primary);
    transform: translateY(-4px);
}

.pg5c-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.6rem;
    margin-bottom: 0.6rem;
}

.pg5c-game-name {
    font-size: 1.1rem;
    color: var(--pg5c-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section */
.pg5c-section {
    margin: 3rem 0;
}

.pg5c-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pg5c-primary);
    margin-bottom: 1.6rem;
    text-align: center;
}

.pg5c-section-subtitle {
    font-size: 1.6rem;
    color: var(--pg5c-secondary);
    margin-bottom: 1rem;
}

/* Accordion */
.pg5c-accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--pg5c-border);
}

.pg5c-accordion-header {
    padding: 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--pg5c-text);
    transition: all 0.3s ease;
}

.pg5c-accordion-header:hover {
    background: rgba(205, 133, 63, 0.1);
}

.pg5c-accordion-icon {
    transition: transform 0.3s ease;
    color: var(--pg5c-primary);
}

.pg5c-accordion-item.pg5c-active .pg5c-accordion-icon {
    transform: rotate(180deg);
}

.pg5c-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pg5c-accordion-item.pg5c-active .pg5c-accordion-content {
    max-height: 500px;
    padding: 0 1.6rem 1.6rem;
}

/* Footer */
.pg5c-footer {
    background: var(--pg5c-dark);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
    border-top: 2px solid var(--pg5c-border);
}

.pg5c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg5c-footer-link {
    color: var(--pg5c-accent);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.pg5c-footer-link:hover {
    color: var(--pg5c-primary);
}

.pg5c-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin: 2rem 0;
}

.pg5c-partner-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg5c-partner-img:hover {
    opacity: 1;
}

.pg5c-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.pg5c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, var(--pg5c-dark) 0%, #2C3E50 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--pg5c-border);
    box-shadow: 0 -2px 10px var(--pg5c-shadow);
}

.pg5c-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--pg5c-text);
    text-decoration: none;
    font-size: 1.1rem;
    min-width: 60px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pg5c-bottom-nav-item:hover,
.pg5c-bottom-nav-item.pg5c-active {
    color: var(--pg5c-primary);
    transform: translateY(-3px);
}

.pg5c-bottom-nav-icon {
    font-size: 2.4rem;
}

.pg5c-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Back to Top */
.pg5c-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pg5c-primary) 0%, var(--pg5c-secondary) 100%);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 12px var(--pg5c-shadow);
}

.pg5c-back-to-top.pg5c-visible {
    display: flex;
}

.pg5c-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

/* Utility Classes */
.pg5c-text-center {
    text-align: center;
}

.pg5c-mt-2 {
    margin-top: 2rem;
}

.pg5c-mb-2 {
    margin-bottom: 2rem;
}

.pg5c-mt-4 {
    margin-top: 4rem;
}

.pg5c-mb-4 {
    margin-bottom: 4rem;
}

.pg5c-flex {
    display: flex;
}

.pg5c-flex-col {
    flex-direction: column;
}

.pg5c-items-center {
    align-items: center;
}

.pg5c-justify-center {
    justify-content: center;
}

.pg5c-gap-1 {
    gap: 1rem;
}

.pg5c-gap-2 {
    gap: 2rem;
}

/* Responsive */
@media (max-width: 380px) {
    .pg5c-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg5c-site-name {
        font-size: 1.6rem;
    }
}

@media (min-width: 431px) {
    .pg5c-container {
        max-width: 768px;
    }

    .pg5c-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
