/* phpfamous CSS Stylesheet */
/* Author: phpfamous Development Team */
/* Version: 1.0 */
/* Description: Core styles for phpfamous website */

/* CSS Variables */
:root {
    --pg88-primary-dark: #141414;
    --pg88-primary-light: #F8F8FF;
    --pg88-accent-light: #F0FDFF;
    --pg88-accent-purple: #800080;
    --pg88-text-primary: #FFFFFF;
    --pg88-text-secondary: #CCCCCC;
    --pg88-text-muted: #999999;
    --pg88-border: #333333;
    --pg88-gradient-1: linear-gradient(135deg, var(--pg88-accent-purple) 0%, var(--pg88-primary-dark) 100%);
    --pg88-gradient-2: linear-gradient(90deg, var(--pg88-accent-purple), var(--pg88-primary-dark));
    --pg88-shadow: 0 4px 12px rgba(128, 0, 128, 0.3);
    --pg88-border-radius: 8px;
    --pg88-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pg88-text-primary);
    background-color: var(--pg88-primary-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.pg88-loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Container Styles */
.pg88-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.pg88-wrapper {
    padding: 20px 0;
    min-height: 100vh;
}

/* Header Styles */
.pg88-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--pg88-primary-dark);
    border-bottom: 1px solid var(--pg88-border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.95);
}

.pg88-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    height: 60px;
}

.pg88-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pg88-text-primary);
}

.pg88-logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 6px;
}

.pg88-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pg88-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg88-header-buttons {
    display: flex;
    gap: 10px;
}

.pg88-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg88-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.pg88-btn-primary {
    background: var(--pg88-gradient-2);
    color: var(--pg88-text-primary);
    box-shadow: var(--pg88-shadow);
}

.pg88-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 128, 0.4);
}

.pg88-btn-secondary {
    background-color: transparent;
    color: var(--pg88-text-primary);
    border: 2px solid var(--pg88-accent-purple);
}

.pg88-btn-secondary:hover {
    background-color: var(--pg88-accent-purple);
    transform: translateY(-2px);
}

/* Mobile Menu */
.pg88-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.pg88-hamburger span {
    display: block;
    height: 2px;
    background-color: var(--pg88-text-primary);
    transition: var(--pg88-transition);
}

.pg88-hamburger.pg88-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pg88-hamburger.pg88-active span:nth-child(2) {
    opacity: 0;
}

.pg88-hamburger.pg88-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.pg88-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--pg88-primary-dark);
    border-left: 1px solid var(--pg88-border);
    z-index: 9999;
    transition: var(--pg88-transition);
    overflow-y: auto;
}

.pg88-mobile-menu.pg88-menu-open {
    right: 0;
}

.pg88-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--pg88-border);
}

.pg88-mobile-menu-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--pg88-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--pg88-transition);
}

.pg88-mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pg88-mobile-menu-nav {
    padding: 20px;
}

.pg88-mobile-menu-item {
    display: block;
    padding: 12px 0;
    color: var(--pg88-text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--pg88-transition);
}

.pg88-mobile-menu-item:hover {
    color: var(--pg88-accent-purple);
    padding-left: 10px;
}

.pg88-mobile-menu-item:last-child {
    border-bottom: none;
}

/* Main Content */
.pg88-main {
    margin-top: 60px;
    padding-bottom: 80px;
    min-height: calc(100vh - 140px);
}

/* Carousel */
.pg88-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    border-radius: var(--pg88-border-radius);
    overflow: hidden;
}

.pg88-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.pg88-carousel-slide.pg88-active {
    opacity: 1;
}

.pg88-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg88-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pg88-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--pg88-transition);
}

.pg88-carousel-dot.pg88-active {
    background-color: var(--pg88-accent-purple);
    transform: scale(1.2);
}

/* Section Styles */
.pg88-section {
    margin-bottom: 40px;
}

.pg88-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--pg88-text-primary);
    background: var(--pg88-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.pg88-game-category {
    margin-bottom: 30px;
}

.pg88-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--pg88-accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg88-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pg88-game-item {
    text-decoration: none;
    color: var(--pg88-text-primary);
    transition: var(--pg88-transition);
    text-align: center;
}

.pg88-game-item:hover {
    transform: scale(1.05);
}

.pg88-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pg88-border-radius);
    object-fit: cover;
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: var(--pg88-transition);
}

.pg88-game-item:hover .pg88-game-icon {
    border-color: var(--pg88-accent-purple);
    box-shadow: var(--pg88-shadow);
}

.pg88-game-name {
    font-size: 1.0rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Styles */
.pg88-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pg88-border);
    border-radius: var(--pg88-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.pg88-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--pg88-accent-light);
}

/* Bottom Navigation */
.pg88-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--pg88-primary-dark);
    border-top: 1px solid var(--pg88-border);
    z-index: 1000;
    height: 60px;
    backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.95);
}

.pg88-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.pg88-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg88-text-secondary);
    transition: var(--pg88-transition);
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
}

.pg88-bottom-nav-item:hover,
.pg88-bottom-nav-item.pg88-active {
    color: var(--pg88-accent-purple);
    transform: scale(1.1);
}

.pg88-bottom-nav-icon {
    font-size: 2.0rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.pg88-bottom-nav-text {
    font-size: 1.0rem;
    font-weight: 500;
}

/* Footer */
.pg88-footer {
    background-color: var(--pg88-primary-dark);
    border-top: 2px solid var(--pg88-accent-purple);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.pg88-footer-content {
    text-align: center;
}

.pg88-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pg88-footer-link {
    color: var(--pg88-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--pg88-transition);
}

.pg88-footer-link:hover {
    color: var(--pg88-accent-purple);
}

.pg88-partners {
    margin: 30px 0;
}

.pg88-partners-title {
    font-size: 1.4rem;
    color: var(--pg88-text-muted);
    margin-bottom: 15px;
}

.pg88-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.pg88-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
    transition: var(--pg88-transition);
}

.pg88-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pg88-copyright {
    color: var(--pg88-text-muted);
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pg88-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pg88-hamburger {
        display: flex;
    }

    .pg88-header-buttons {
        display: none;
    }

    .pg88-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .pg88-bottom-nav {
        display: none;
    }

    .pg88-main {
        padding-bottom: 0;
    }

    .pg88-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utility Classes */
.pg88-text-center {
    text-align: center;
}

.pg88-mb-20 {
    margin-bottom: 20px;
}

.pg88-mt-20 {
    margin-top: 20px;
}

.pg88-highlight {
    color: var(--pg88-accent-purple);
    font-weight: 600;
}

.pg88-gradient-text {
    background: var(--pg88-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
@keyframes pg88-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pg88-pulse {
    animation: pg88-pulse 2s infinite;
}

@keyframes pg88-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg88-fade-in {
    animation: pg88-fadeIn 0.6s ease-out;
}

/* Icon Styles */
.pg88-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}