/**
 * PLDT777 Gaming Website CSS
 * Mobile-first responsive design
 */

:root {
    --pd-primary: #FFD700;
    --pd-secondary: #FF6B35;
    --pd-bg-dark: #1A1A2E;
    --pd-bg-darker: #0F0F1E;
    --pd-text: #FFFFFF;
    --pd-text-secondary: #B0B0B0;
    --pd-success: #4CAF50;
    --pd-warning: #FFA726;
    --pd-error: #F44336;
    --pd-border: #333;
    --pd-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--pd-bg-dark);
    color: var(--pd-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.pd-header {
    background: var(--pd-bg-darker);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pd-shadow);
}

.pd-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--pd-primary);
    text-decoration: none;
}

.pd-nav-desktop {
    display: none;
}

.pd-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pd-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pd-btn-primary {
    background: var(--pd-primary);
    color: var(--pd-bg-dark);
}

.pd-btn-primary:hover {
    background: #FFC700;
    transform: translateY(-2px);
}

.pd-btn-secondary {
    background: transparent;
    color: var(--pd-primary);
    border: 2px solid var(--pd-primary);
}

.pd-btn-secondary:hover {
    background: var(--pd-primary);
    color: var(--pd-bg-dark);
}

.pd-menu-toggle {
    background: none;
    border: none;
    color: var(--pd-primary);
    font-size: 24px;
    cursor: pointer;
    display: block;
}

/* Mobile Menu */
.pd-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pd-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pd-mobile-menu.pd-active {
    right: 0;
}

.pd-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.pd-menu-overlay.pd-active {
    display: block;
}

.pd-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--pd-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-menu-close {
    background: none;
    border: none;
    color: var(--pd-text);
    font-size: 24px;
    cursor: pointer;
}

.pd-menu-list {
    list-style: none;
    padding: 20px;
}

.pd-menu-list li {
    margin-bottom: 15px;
}

.pd-menu-list a {
    color: var(--pd-text);
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.pd-menu-list a:hover {
    background: var(--pd-bg-dark);
    color: var(--pd-primary);
}

/* Main Content */
.pd-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .pd-main {
        padding-bottom: 80px;
    }
}

/* Hero Section */
.pd-hero {
    background: linear-gradient(135deg, var(--pd-bg-dark) 0%, var(--pd-bg-darker) 100%);
    padding: 40px 20px;
    text-align: center;
}

.pd-hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--pd-primary);
}

.pd-hero p {
    font-size: 18px;
    color: var(--pd-text-secondary);
    margin-bottom: 30px;
}

/* Carousel */
.pd-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--pd-shadow);
}

.pd-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.pd-carousel-item {
    min-width: 100%;
    position: relative;
}

.pd-carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pd-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.pd-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.pd-carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.pd-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Game Grid */
.pd-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pd-section-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--pd-primary);
}

.pd-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.pd-game-card {
    background: var(--pd-bg-darker);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.pd-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--pd-shadow);
}

.pd-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.pd-game-info {
    padding: 12px;
}

.pd-game-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-game-category {
    font-size: 12px;
    color: var(--pd-text-secondary);
}

.pd-game-play {
    background: var(--pd-primary);
    color: var(--pd-bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.pd-game-play:hover {
    background: #FFC700;
}

/* Bottom Navigation */
.pd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pd-bg-darker);
    border-top: 1px solid var(--pd-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.pd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 60px;
    padding: 5px;
    background: none;
    border: none;
    color: var(--pd-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.pd-bottom-nav-item:hover,
.pd-bottom-nav-item.pd-active {
    color: var(--pd-primary);
}

.pd-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.pd-bottom-nav-label {
    font-size: 10px;
    white-space: nowrap;
}

/* Footer */
.pd-footer {
    background: var(--pd-bg-darker);
    padding: 40px 20px 20px;
    margin-bottom: 80px;
}

.pd-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pd-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.pd-footer-links a {
    color: var(--pd-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pd-footer-links a:hover {
    color: var(--pd-primary);
}

.pd-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--pd-border);
    color: var(--pd-text-secondary);
    font-size: 12px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .pd-menu-toggle {
        display: none;
    }

    .pd-nav-desktop {
        display: flex;
        gap: 30px;
    }

    .pd-nav-desktop a {
        color: var(--pd-text);
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s ease;
    }

    .pd-nav-desktop a:hover {
        color: var(--pd-primary);
    }

    .pd-bottom-nav {
        display: none;
    }

    .pd-main {
        padding-bottom: 0;
    }

    .pd-footer {
        margin-bottom: 0;
    }

    .pd-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .pd-carousel-item img {
        height: 300px;
    }

    .pd-hero h1 {
        font-size: 48px;
    }
}

/* Utility Classes */
.pd-text-center {
    text-align: center;
}

.pd-mt-20 {
    margin-top: 20px;
}

.pd-mb-20 {
    margin-bottom: 20px;
}

.pd-hidden {
    display: none;
}

/* FAQ Styles */
.pd-faq-item {
    background: var(--pd-bg-darker);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.pd-faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.pd-faq-question:hover {
    background: var(--pd-bg-dark);
}

.pd-faq-question.pd-active {
    background: var(--pd-bg-dark);
    color: var(--pd-primary);
}

.pd-faq-icon {
    font-size: 20px;
    font-weight: bold;
}

.pd-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--pd-text-secondary);
    line-height: 1.8;
}

.pd-faq-answer.pd-active {
    padding: 0 20px 20px;
    max-height: 500px;
}