/**
 * Pinaylulu Layout Stylesheet
 * Prefix: pg83-
 * Color Palette: #FF6347 | #2E4057 | #D3D3D3 | #26A69A | #004D40 | #00695C
 */

/* CSS Variables */
:root {
    --pg83-primary: #FF6347;
    --pg83-secondary: #26A69A;
    --pg83-bg-dark: #2E4057;
    --pg83-bg-darker: #004D40;
    --pg83-bg-darkest: #00695C;
    --pg83-text-light: #D3D3D3;
    --pg83-text-white: #FFFFFF;
    --pg83-accent: #FF6347;
    --pg83-success: #26A69A;
    --pg83-header-height: 56px;
    --pg83-bottom-nav-height: 60px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--pg83-bg-darker) 0%, var(--pg83-bg-dark) 100%);
    color: var(--pg83-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pg83-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.pg83-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pg83-header-height);
    background: linear-gradient(90deg, var(--pg83-bg-darker), var(--pg83-bg-dark));
    border-bottom: 2px solid var(--pg83-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}

.pg83-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg83-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pg83-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg83-primary);
}

.pg83-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg83-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg83-btn-primary {
    background: var(--pg83-primary);
    color: var(--pg83-text-white);
}

.pg83-btn-primary:hover {
    background: #FF4500;
    transform: scale(1.05);
}

.pg83-btn-outline {
    background: transparent;
    border: 2px solid var(--pg83-secondary);
    color: var(--pg83-secondary);
}

.pg83-btn-outline:hover {
    background: var(--pg83-secondary);
    color: var(--pg83-bg-dark);
}

.pg83-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pg83-text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Desktop Navigation */
.pg83-nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pg83-nav-link {
    font-size: 1.3rem;
    color: var(--pg83-text-light);
    transition: color 0.3s;
}

.pg83-nav-link:hover {
    color: var(--pg83-primary);
}

/* Mobile Menu */
.pg83-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg83-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.pg83-mobile-menu.x83d3-menu-active {
    right: 0;
}

.pg83-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg83-menu-overlay.x83d3-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg83-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pg83-primary);
}

.pg83-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--pg83-text-white);
    font-size: 2rem;
    cursor: pointer;
}

.pg83-mobile-nav-list {
    list-style: none;
}

.pg83-mobile-nav-item {
    margin-bottom: 1rem;
}

.pg83-mobile-nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.4rem;
    color: var(--pg83-text-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.pg83-mobile-nav-link:hover {
    background: rgba(255, 99, 71, 0.2);
    color: var(--pg83-primary);
}

/* Main Content */
.pg83-main {
    padding-top: calc(var(--pg83-header-height) + 1rem);
    min-height: 100vh;
}

/* Hero Carousel */
.pg83-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.pg83-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.pg83-slide:first-child {
    display: block;
}

.pg83-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.pg83-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg83-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.pg83-dot.x83d3-dot-active,
.pg83-dot:hover {
    background: var(--pg83-primary);
}

/* Section Styles */
.pg83-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(46, 64, 87, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 99, 71, 0.3);
}

.pg83-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg83-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--pg83-primary);
}

.pg83-section-text {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--pg83-text-light);
}

/* Game Grid */
.pg83-game-category {
    margin-bottom: 2rem;
}

.pg83-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg83-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg83-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pg83-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.pg83-game-item:hover {
    transform: scale(1.05);
}

.pg83-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.pg83-game-item:hover .pg83-game-icon {
    border-color: var(--pg83-primary);
}

.pg83-game-name {
    font-size: 1rem;
    color: var(--pg83-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features List */
.pg83-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pg83-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 77, 64, 0.3);
    border-radius: 8px;
}

.pg83-feature-icon {
    font-size: 2rem;
    color: var(--pg83-primary);
}

.pg83-feature-content h4 {
    font-size: 1.4rem;
    color: var(--pg83-text-white);
    margin-bottom: 0.4rem;
}

.pg83-feature-content p {
    font-size: 1.2rem;
    color: var(--pg83-text-light);
}

/* FAQ Section */
.pg83-faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(38, 166, 154, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--pg83-secondary);
}

.pg83-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pg83-primary);
    margin-bottom: 0.5rem;
}

.pg83-faq-answer {
    font-size: 1.2rem;
    color: var(--pg83-text-light);
}

/* Promo Link Styles */
.pg83-promo-text {
    color: var(--pg83-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.pg83-promo-text:hover {
    color: #FF4500;
    text-decoration: underline;
}

.pg83-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--pg83-primary), #FF4500);
    color: var(--pg83-text-white);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.pg83-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
}

/* Footer */
.pg83-footer {
    background: var(--pg83-bg-darker);
    padding: 2rem 1.2rem;
    margin-top: 2rem;
    border-top: 2px solid var(--pg83-primary);
}

.pg83-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 99, 71, 0.3);
}

.pg83-footer-brand p {
    font-size: 1.2rem;
    color: var(--pg83-text-light);
    margin-top: 0.5rem;
}

.pg83-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pg83-footer-link {
    font-size: 1.1rem;
    color: var(--pg83-text-light);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 99, 71, 0.2);
    border-radius: 4px;
    transition: all 0.3s;
}

.pg83-footer-link:hover {
    background: var(--pg83-primary);
    color: var(--pg83-text-white);
}

.pg83-footer-promos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pg83-footer-promo-btn {
    padding: 0.6rem 1.2rem;
    background: var(--pg83-primary);
    color: var(--pg83-text-white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pg83-footer-promo-btn:hover {
    background: #FF4500;
    transform: scale(1.05);
}

.pg83-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pg83-text-light);
    opacity: 0.8;
}

/* Bottom Navigation - Mobile */
.pg83-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pg83-bottom-nav-height);
    background: linear-gradient(180deg, var(--pg83-bg-dark), var(--pg83-bg-darker));
    border-top: 2px solid var(--pg83-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.pg83-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.pg83-nav-btn:hover,
.pg83-nav-btn.active {
    background: rgba(255, 99, 71, 0.2);
}

.pg83-nav-btn:hover .pg83-nav-icon,
.pg83-nav-btn.active .pg83-nav-icon {
    color: var(--pg83-primary);
    transform: scale(1.1);
}

.pg83-nav-icon {
    font-size: 22px;
    color: var(--pg83-text-light);
    margin-bottom: 2px;
    transition: all 0.3s;
}

.pg83-nav-label {
    font-size: 10px;
    color: var(--pg83-text-light);
    transition: color 0.3s;
}

.pg83-nav-btn:hover .pg83-nav-label,
.pg83-nav-btn.active .pg83-nav-label {
    color: var(--pg83-primary);
}

/* Utility Classes */
.pg83-text-center {
    text-align: center;
}

.pg83-mb-1 {
    margin-bottom: 1rem;
}

.pg83-mb-2 {
    margin-bottom: 2rem;
}

.pg83-mt-2 {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pg83-header {
        padding: 0 1rem;
    }

    .pg83-nav-desktop {
        display: none;
    }

    .pg83-menu-toggle {
        display: block;
    }

    .pg83-main {
        padding-bottom: calc(var(--pg83-bottom-nav-height) + 1rem);
    }

    .pg83-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .pg83-game-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .pg83-bottom-nav {
        display: none;
    }

    .pg83-container {
        max-width: 768px;
    }

    .pg83-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animations */
@keyframes pg83-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pg83-animate-pulse {
    animation: pg83-pulse 2s infinite;
}
