/* staph.xyz - Main CSS Stylesheet */
/* All classes use pg29- prefix for namespace isolation */

/* CSS Variables */
:root {
    --pg29-primary: #800080;
    --pg29-secondary: #9370DB;
    --pg29-dark: #0F0F23;
    --pg29-darker: #0a0a18;
    --pg29-light: #e8e8ff;
    --pg29-white: #ffffff;
    --pg29-gray: #888888;
    --pg29-gradient: linear-gradient(135deg, #800080 0%, #9370DB 100%);
    --pg29-shadow: 0 4px 20px rgba(128, 0, 128, 0.3);
    --pg29-shadow-sm: 0 2px 8px rgba(128, 0, 128, 0.2);
}

/* Reset & 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, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pg29-white);
    background-color: var(--pg29-dark);
    min-height: 100vh;
}

/* Container */
.pg29-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.pg29-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pg29-darker);
    box-shadow: var(--pg29-shadow-sm);
    z-index: 1000;
    padding: 0.8rem 0;
}

.pg29-header-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pg29-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--pg29-white);
}

.pg29-logo-icon {
    width: 28px;
    height: 28px;
}

.pg29-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pg29-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Buttons */
.pg29-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.pg29-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pg29-btn-primary {
    background: var(--pg29-gradient);
    color: var(--pg29-white);
    box-shadow: var(--pg29-shadow-sm);
}

.pg29-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg29-shadow);
}

.pg29-btn-secondary {
    background: transparent;
    color: var(--pg29-secondary);
    border: 2px solid var(--pg29-secondary);
}

.pg29-btn-secondary:hover {
    background: var(--pg29-secondary);
    color: var(--pg29-white);
}

/* Menu Button */
.pg29-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg29-menu-line {
    width: 24px;
    height: 2px;
    background: var(--pg29-secondary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pg29-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--pg29-darker);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.pg29-mobile-menu.pg29-active {
    right: 0;
}

.pg29-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--pg29-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg29-menu-nav {
    margin-top: 3rem;
}

.pg29-menu-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--pg29-white);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    transition: all 0.3s ease;
}

.pg29-menu-nav a:hover {
    color: var(--pg29-secondary);
    padding-left: 1rem;
}

/* Main Content */
.pg29-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .pg29-main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.pg29-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.pg29-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg29-carousel-slide.pg29-active {
    opacity: 1;
}

.pg29-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg29-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 35, 0.8);
    color: var(--pg29-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pg29-carousel-btn:hover {
    background: var(--pg29-primary);
}

.pg29-carousel-prev {
    left: 10px;
}

.pg29-carousel-next {
    right: 10px;
}

.pg29-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg29-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg29-carousel-dot.pg29-active {
    background: var(--pg29-secondary);
    width: 25px;
    border-radius: 5px;
}

/* Headings */
.pg29-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    background: var(--pg29-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.pg29-game-section {
    margin: 3rem 0;
}

.pg29-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pg29-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg29-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pg29-gradient);
    border-radius: 2px;
}

.pg29-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pg29-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.pg29-game-item:hover {
    transform: scale(1.05);
}

.pg29-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--pg29-darker);
    box-shadow: var(--pg29-shadow-sm);
}

.pg29-game-name {
    font-size: 1rem;
    color: var(--pg29-light);
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Styles */
.pg29-card {
    background: rgba(147, 112, 219, 0.1);
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pg29-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pg29-secondary);
}

.pg29-card-content {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--pg29-light);
}

/* Link Styles */
.pg29-link {
    color: var(--pg29-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pg29-link:hover {
    color: var(--pg29-primary);
    text-decoration: underline;
}

/* Footer */
.pg29-footer {
    background: var(--pg29-darker);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.pg29-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.pg29-footer-link {
    color: var(--pg29-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pg29-footer-link:hover {
    background: var(--pg29-gradient);
    color: var(--pg29-white);
    border-color: transparent;
}

.pg29-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.pg29-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pg29-partner-logo:hover {
    opacity: 1;
}

.pg29-copyright {
    text-align: center;
    color: var(--pg29-gray);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
}

/* Bottom Navigation */
.pg29-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pg29-darker);
    box-shadow: 0 -4px 20px rgba(128, 0, 128, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    height: 60px;
}

@media (min-width: 769px) {
    .pg29-bottom-nav {
        display: none;
    }
}

.pg29-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg29-gray);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    padding: 0.3rem;
}

.pg29-nav-item:hover {
    color: var(--pg29-secondary);
    transform: scale(1.1);
}

.pg29-nav-item.pg29-active {
    color: var(--pg29-primary);
}

.pg29-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg29-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Utilities */
@media (max-width: 380px) {
    .pg29-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg29-title {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes pg29-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pg29-animate-pulse {
    animation: pg29-pulse 2s infinite;
}
