/**
 * SkyPH Theme Stylesheet
 * All classes use pg66- prefix to avoid conflicts
 * Mobile-first responsive design
 */

/* CSS Variables for color scheme */
:root {
    --pg66-primary: #0000CD;
    --pg66-secondary: #FFEF94;
    --pg66-dark: #0D1117;
    --pg66-accent: #CD853F;
    --pg66-light: #F0F8FF;
    --pg66-text: #F0F8FF;
    --pg66-text-dark: #0D1117;
    --pg66-border: rgba(255, 239, 148, 0.2);
    --pg66-shadow: rgba(0, 0, 205, 0.3);
    --pg66-overlay: rgba(13, 17, 23, 0.95);
    --pg66-gradient: linear-gradient(135deg, #0000CD 0%, #CD853F 100%);
    --pg66-gradient-hover: linear-gradient(135deg, #CD853F 0%, #0000CD 100%);
}

/* Reset and 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(--pg66-text);
    background-color: var(--pg66-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container styles */
.pg66-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.pg66-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.pg66-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg66-dark);
    border-bottom: 2px solid var(--pg66-primary);
    box-shadow: 0 2px 10px var(--pg66-shadow);
    transition: all 0.3s ease;
}

.pg66-header-scrolled {
    background: var(--pg66-overlay);
    backdrop-filter: blur(10px);
}

.pg66-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg66-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pg66-text);
    font-size: 2rem;
    font-weight: 700;
}

.pg66-logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.8rem;
}

.pg66-header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pg66-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pg66-btn-primary {
    background: var(--pg66-primary);
    color: var(--pg66-light);
}

.pg66-btn-primary:hover {
    background: var(--pg66-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--pg66-shadow);
}

.pg66-btn-secondary {
    background: var(--pg66-secondary);
    color: var(--pg66-text-dark);
}

.pg66-btn-secondary:hover {
    background: var(--pg66-accent);
    color: var(--pg66-text);
    transform: translateY(-2px);
}

.pg66-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pg66-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile menu */
.pg66-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--pg66-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 2px solid var(--pg66-primary);
}

.pg66-menu-active {
    right: 0;
}

.pg66-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg66-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg66-body-locked {
    overflow: hidden;
}

.pg66-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem;
    border-bottom: 1px solid var(--pg66-border);
}

.pg66-menu-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg66-primary);
}

.pg66-menu-close {
    background: none;
    border: none;
    color: var(--pg66-text);
    font-size: 2.8rem;
    cursor: pointer;
}

.pg66-menu-nav {
    padding: 1.6rem;
}

.pg66-menu-nav a {
    display: block;
    padding: 1.2rem 0;
    color: var(--pg66-text);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--pg66-border);
    transition: all 0.3s ease;
}

.pg66-menu-nav a:hover {
    color: var(--pg66-primary);
    padding-left: 1rem;
}

/* Main content */
main {
    margin-top: 80px;
    padding-bottom: 80px;
    flex: 1;
}

/* Carousel */
.pg66-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 200px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 12px;
}

.pg66-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg66-slide-active {
    opacity: 1;
}

.pg66-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.pg66-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pg66-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg66-dot-active {
    background: var(--pg66-primary);
    width: 30px;
    border-radius: 5px;
}

/* Section styles */
.pg66-section {
    padding: 2.4rem 0;
    border-bottom: 1px solid var(--pg66-border);
}

.pg66-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pg66-primary);
    margin-bottom: 1.6rem;
    text-align: center;
}

.pg66-card {
    background: rgba(0, 0, 205, 0.1);
    border: 1px solid var(--pg66-border);
    border-radius: 12px;
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    transition: all 0.3s ease;
}

.pg66-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--pg66-shadow);
    border-color: var(--pg66-primary);
}

/* Game grid */
.pg66-game-section {
    margin-bottom: 2.4rem;
}

.pg66-game-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--pg66-secondary);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--pg66-primary);
}

.pg66-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.pg66-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--pg66-text);
    transition: all 0.3s ease;
}

.pg66-game-item:hover {
    transform: scale(1.05);
}

.pg66-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--pg66-border);
    transition: all 0.3s ease;
}

.pg66-game-item:hover .pg66-game-icon {
    border-color: var(--pg66-primary);
    box-shadow: 0 0 10px var(--pg66-shadow);
}

.pg66-game-name {
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    color: var(--pg66-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Text content styles */
.pg66-content {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--pg66-text);
}

.pg66-content p {
    margin-bottom: 1.2rem;
}

.pg66-content a {
    color: var(--pg64-primary);
    text-decoration: underline;
    font-weight: 600;
}

.pg66-content a:hover {
    color: var(--pg66-accent);
}

.pg66-highlight {
    color: var(--pg66-primary);
    font-weight: 600;
}

.pg66-highlight-secondary {
    color: var(--pg66-secondary);
    font-weight: 600;
}

/* List styles */
.pg66-list {
    list-style: none;
    padding: 0;
}

.pg66-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--pg66-border);
    position: relative;
    padding-left: 2.4rem;
}

.pg66-list li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--pg66-primary);
    font-size: 1.2rem;
}

.pg66-list li:last-child {
    border-bottom: none;
}

/* Footer */
.pg66-footer {
    background: var(--pg66-dark);
    border-top: 2px solid var(--pg66-primary);
    padding: 2.4rem 0 8rem;
    margin-top: 2.4rem;
}

.pg66-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.pg66-footer-description {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--pg66-text);
    margin-bottom: 1.6rem;
    text-align: center;
}

.pg66-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg66-footer-link {
    color: var(--pg66-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--pg66-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pg66-footer-link:hover {
    background: var(--pg66-primary);
    border-color: var(--pg66-primary);
    color: var(--pg66-light);
}

.pg66-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg66-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pg66-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pg66-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(240, 248, 255, 0.7);
}

/* Bottom navigation */
.pg66-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--pg66-dark);
    border-top: 2px solid var(--pg66-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--pg66-shadow);
}

.pg66-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg66-text);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    position: relative;
}

.pg66-bottom-nav a:hover {
    color: var(--pg66-primary);
    background: rgba(0, 0, 205, 0.1);
}

.pg66-bottom-nav a.pg66-nav-active {
    color: var(--pg66-primary);
}

.pg66-bottom-nav a.pg66-nav-active:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--pg66-primary);
    border-radius: 0 0 3px 3px;
}

.pg66-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg66-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Desktop styles */
@media (min-width: 769px) {
    .pg66-menu-toggle {
        display: block;
    }

    .pg66-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2.4rem;
    }

    .pg66-footer {
        padding-bottom: 2.4rem;
    }
}

/* Utility classes */
.pg66-text-center {
    text-align: center;
}

.pg66-mt-1 {
    margin-top: 1rem;
}

.pg66-mt-2 {
    margin-top: 2rem;
}

.pg66-mb-1 {
    margin-bottom: 1rem;
}

.pg66-mb-2 {
    margin-bottom: 2rem;
}

.pg66-hidden {
    display: none;
}

/* Animation */
@keyframes pg66-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg66-animate {
    animation: pg66-fadeIn 0.5s ease;
}
