/* Pinoy Time App - Theme CSS */
/* All classes prefixed with pg01- for namespace isolation */

/* CSS Variables */
:root {
    --pg01-primary: #2C3E50;
    --pg01-secondary: #FFEF94;
    --pg01-accent: #3498db;
    --pg01-dark: #1a252f;
    --pg01-light: #ecf0f1;
    --pg01-text: #2c3e50;
    --pg01-text-light: #7f8c8d;
    --pg01-success: #27ae60;
    --pg01-warning: #f39c12;
    --pg01-danger: #e74c3c;
    --pg01-white: #ffffff;
    --pg01-border: #bdc3c7;
    --pg01-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pg01-text);
    background: var(--pg01-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.pg01-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.pg01-header {
    background: var(--pg01-primary);
    color: var(--pg01-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pg01-shadow);
}

.pg01-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.pg01-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg01-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg01-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pg01-header-buttons {
    display: flex;
    gap: 10px;
}

.pg01-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pg01-btn-register {
    background: var(--pg01-secondary);
    color: var(--pg01-primary);
}

.pg01-btn-register:hover {
    background: #ffd966;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 239, 148, 0.4);
}

.pg01-btn-login {
    background: transparent;
    color: var(--pg01-secondary);
    border: 2px solid var(--pg01-secondary);
}

.pg01-btn-login:hover {
    background: var(--pg01-secondary);
    color: var(--pg01-primary);
}

.pg01-menu-toggle {
    display: none;
    background: none;
    color: var(--pg01-white);
    font-size: 24px;
    padding: 5px;
}

/* Mobile Menu */
.pg01-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pg01-primary);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.pg01-mobile-menu.pg01-active {
    display: block;
}

.pg01-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pg01-menu-close {
    font-size: 28px;
    color: var(--pg01-white);
    padding: 10px;
}

.pg01-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pg01-menu-link {
    color: var(--pg01-white);
    font-size: 18px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pg01-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

/* Hero Section */
.pg01-hero {
    background: linear-gradient(135deg, var(--pg01-primary) 0%, var(--pg01-dark) 100%);
    color: var(--pg01-white);
    padding: 40px 0;
    text-align: center;
}

.pg01-hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.pg01-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 380px;
    margin: 0 auto 25px;
}

/* Carousel */
.pg01-carousel {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--pg01-shadow);
}

.pg01-carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pg01-carousel-slide {
    min-width: 100%;
    display: none;
}

.pg01-carousel-slide.pg01-active {
    display: block;
}

.pg01-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pg01-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.pg01-carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--pg01-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: all;
    transition: all 0.3s ease;
}

.pg01-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.pg01-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.pg01-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg01-carousel-dot.pg01-active {
    background: var(--pg01-white);
    transform: scale(1.2);
}

/* Section */
.pg01-section {
    background: var(--pg01-white);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px var(--pg01-shadow);
}

.pg01-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pg01-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg01-section-title i {
    color: var(--pg01-warning);
}

/* Game Grid */
.pg01-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.pg01-game-card {
    background: var(--pg01-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--pg01-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.pg01-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--pg01-shadow);
    border-color: var(--pg01-secondary);
}

.pg01-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pg01-game-name {
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pg01-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filter Buttons */
.pg01-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin: 20px 0;
    scrollbar-width: none;
}

.pg01-filters::-webkit-scrollbar {
    display: none;
}

.pg01-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--pg01-white);
    color: var(--pg01-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid var(--pg01-border);
}

.pg01-filter-btn.pg01-active,
.pg01-filter-btn:hover {
    background: var(--pg01-primary);
    color: var(--pg01-white);
    border-color: var(--pg01-primary);
}

/* Bottom Navigation */
.pg01-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pg01-white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px var(--pg01-shadow);
    z-index: 1000;
}

.pg01-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    color: var(--pg01-text-light);
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 5px;
}

.pg01-nav-item:hover,
.pg01-nav-item.pg01-active {
    color: var(--pg01-primary);
    background: rgba(44, 62, 80, 0.1);
    transform: scale(1.05);
}

.pg01-nav-icon {
    font-size: 24px;
}

.pg01-nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* Footer */
.pg01-footer {
    background: var(--pg01-dark);
    color: var(--pg01-white);
    padding: 40px 0 100px;
    margin-top: 40px;
}

.pg01-footer-content {
    text-align: center;
}

.pg01-footer-intro {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.pg01-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pg01-footer-link {
    color: var(--pg01-secondary);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 239, 148, 0.1);
    transition: all 0.3s ease;
}

.pg01-footer-link:hover {
    background: var(--pg01-secondary);
    color: var(--pg01-primary);
    transform: translateY(-2px);
}

.pg01-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pg01-partner-img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    background: var(--pg01-white);
    border-radius: 8px;
    padding: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pg01-partner-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pg01-copyright {
    font-size: 13px;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Content Styles */
.pg01-content {
    line-height: 1.8;
    font-size: 15px;
}

.pg01-content p {
    margin-bottom: 15px;
}

.pg01-content h2 {
    font-size: 20px;
    color: var(--pg01-primary);
    margin: 25px 0 15px;
}

.pg01-content h3 {
    font-size: 18px;
    color: var(--pg01-primary);
    margin: 20px 0 10px;
}

.pg01-content ul,
.pg01-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.pg01-content li {
    margin-bottom: 10px;
}

.pg01-content a {
    color: var(--pg01-accent);
    text-decoration: underline;
}

.pg01-content a:hover {
    color: var(--pg01-primary);
}

/* Highlight Box */
.pg01-highlight {
    background: linear-gradient(135deg, var(--pg01-secondary) 0%, #ffd966 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--pg01-warning);
}

.pg01-highlight-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg01-primary);
    margin-bottom: 10px;
}

.pg01-highlight-text {
    font-size: 14px;
    color: var(--pg01-dark);
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 769px) {
    .pg01-container {
        max-width: 1200px;
    }

    .pg01-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 40px;
    }

    .pg01-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pg01-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .pg01-menu-toggle {
        display: block;
    }

    .pg01-header-buttons {
        display: none;
    }
}

/* Utility Classes */
.pg01-text-center {
    text-align: center;
}

.pg01-mt-20 {
    margin-top: 20px;
}

.pg01-mb-20 {
    margin-bottom: 20px;
}

.pg01-hidden {
    display: none;
}
