/**
 * MNL777 - Main CSS Stylesheet
 * All classes use pgc4 prefix for namespace isolation
 * Mobile-first responsive design with max-width: 430px
 */

/* ===== CSS Variables ===== */
:root {
    --pgc4-primary: #DA70D6;
    --pgc4-secondary: #EE82EE;
    --pgc4-dark: #141414;
    --pgc4-light: #FFFFFF;
    --pgc4-gray: #f5f5f5;
    --pgc4-text: #333333;
    --pgc4-text-light: #666666;
    --pgc4-border: #e0e0e0;
    --pgc4-gradient: linear-gradient(135deg, #DA70D6 0%, #EE82EE 100%);
    --pgc4-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pgc4-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--pgc4-text);
    background-color: var(--pgc4-gray);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ===== Header Styles ===== */
.pgc4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgc4-dark);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: var(--pgc4-shadow);
}

.pgc4-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--pgc4-primary);
    letter-spacing: 1px;
}

.pgc4-header-buttons {
    display: flex;
    gap: 10px;
}

.pgc4-header-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pgc4-register-btn {
    background: var(--pgc4-gradient);
    color: var(--pgc4-light);
}

.pgc4-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 112, 214, 0.4);
}

.pgc4-login-btn {
    background: transparent;
    color: var(--pgc4-light);
    border: 2px solid var(--pgc4-primary);
}

.pgc4-login-btn:hover {
    background: var(--pgc4-primary);
    transform: translateY(-2px);
}

.pgc4-menu-toggle {
    display: none;
    background: none;
    color: var(--pgc4-light);
    font-size: 24px;
}

/* ===== Mobile Menu ===== */
.pgc4-mobile-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--pgc4-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.pgc4-mobile-menu.pgc4-active {
    left: 0;
}

.pgc4-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--pgc4-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.pgc4-menu-item:hover {
    background: rgba(218, 112, 214, 0.2);
}

.pgc4-menu-item:last-child {
    border-bottom: none;
}

/* ===== Main Content ===== */
.pgc4-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 80px 20px 80px;
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.pgc4-hero {
    background: var(--pgc4-gradient);
    color: var(--pgc4-light);
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin: -20px -20px 30px;
}

.pgc4-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.pgc4-hero p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.8;
}

/* ===== Game Cards ===== */
.pgc4-section {
    margin-bottom: 40px;
}

.pgc4-section-title {
    font-size: 24px;
    color: var(--pgc4-dark);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.pgc4-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pgc4-game-card {
    background: var(--pgc4-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--pgc4-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgc4-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pgc4-shadow-lg);
}

.pgc4-game-card.pgc4-hover {
    transform: scale(1.05);
}

.pgc4-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--pgc4-gray);
}

.pgc4-game-name {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc4-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Featured Games ===== */
.pgc4-featured-card {
    background: var(--pgc4-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pgc4-shadow-lg);
    margin-bottom: 25px;
}

.pgc4-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pgc4-featured-content {
    padding: 20px;
}

.pgc4-featured-title {
    font-size: 20px;
    color: var(--pgc4-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.pgc4-featured-desc {
    font-size: 14px;
    color: var(--pgc4-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.pgc4-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgc4-btn-promo {
    background: var(--pgc4-gradient);
    color: var(--pgc4-light);
}

.pgc4-btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 112, 214, 0.4);
}

/* ===== Bottom Navigation ===== */
.pgc4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pgc4-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.pgc4-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pgc4-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgc4-nav-item:hover {
    background: rgba(218, 112, 214, 0.2);
}

.pgc4-nav-item.pgc4-active {
    color: var(--pgc4-primary);
}

.pgc4-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.pgc4-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgc4-bottom-nav {
        display: none;
    }
}

/* Add padding for mobile bottom nav */
@media (max-width: 768px) {
    .pgc4-main {
        padding-bottom: 80px;
    }
}

/* ===== Footer ===== */
.pgc4-footer {
    background: var(--pgc4-dark);
    color: var(--pgc4-light);
    padding: 40px 20px 100px;
    margin: 0 -20px -20px;
    text-align: center;
}

.pgc4-footer-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--pgc4-primary);
    margin-bottom: 20px;
}

.pgc4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pgc4-footer-link {
    color: var(--pgc4-light);
    font-size: 14px;
    opacity: 0.8;
}

.pgc4-footer-link:hover {
    color: var(--pgc4-primary);
    opacity: 1;
}

.pgc4-footer-text {
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.8;
}

/* ===== Utility Classes ===== */
.pgc4-text-center {
    text-align: center;
}

.pgc4-mb-20 {
    margin-bottom: 20px;
}

.pgc4-mt-20 {
    margin-top: 20px;
}

.pgc4-section-padding {
    padding: 30px 0;
}

/* ===== Loading States ===== */
.pgc4-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--pgc4-light);
    animation: pgc4-spin 1s ease-in-out infinite;
}

@keyframes pgc4-spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
    .pgc4-hero h1 {
        font-size: 28px;
    }

    .pgc4-game-grid {
        grid-template-columns: 1fr;
    }
}
