/**
 * Buenas PH Layout Stylesheet
 * All classes use pgda- prefix for namespace isolation
 * Color Palette: #A9A9A9 | #FFD700 | #DEB887 | #1E1E1E
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pgda-primary: #FFD700;
    --pgda-secondary: #DEB887;
    --pgda-text: #A9A9A9;
    --pgda-bg: #1E1E1E;
    --pgda-bg-light: #2a2a2a;
    --pgda-bg-card: #333333;
    --pgda-accent: #FFD700;
    --pgda-white: #ffffff;
    --pgda-black: #000000;
    --pgda-success: #4CAF50;
    --pgda-danger: #f44336;
    --pgda-gradient: linear-gradient(135deg, #FFD700 0%, #DEB887 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pgda-bg);
    color: var(--pgda-white);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.pgda-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.pgda-wrapper {
    padding: 1rem;
}

/* Header */
.pgda-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pgda-bg) 0%, rgba(30, 30, 30, 0.95) 100%);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--pgda-primary);
}

.pgda-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pgda-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgda-logo img {
    width: 28px;
    height: 28px;
}

.pgda-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgda-primary);
    letter-spacing: 0.5px;
}

.pgda-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgda-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pgda-btn-primary {
    background: var(--pgda-gradient);
    color: var(--pgda-bg);
}

.pgda-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.pgda-btn-outline {
    background: transparent;
    color: var(--pgda-primary);
    border: 2px solid var(--pgda-primary);
}

.pgda-btn-outline:hover {
    background: var(--pgda-primary);
    color: var(--pgda-bg);
}

.pgda-menu-toggle {
    background: none;
    border: none;
    color: var(--pgda-primary);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pgda-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgda-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pgda-menu-active {
    right: 0;
}

.pgda-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;
}

.pgda-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgda-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pgda-primary);
}

.pgda-menu-close {
    background: none;
    border: none;
    color: var(--pgda-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgda-menu-nav {
    list-style: none;
}

.pgda-menu-nav li {
    margin-bottom: 0.8rem;
}

.pgda-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--pgda-white);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pgda-menu-nav a:hover {
    background: var(--pgda-bg-card);
    color: var(--pgda-primary);
    padding-left: 1.5rem;
}

/* Main Content */
.pgda-main {
    padding-top: 60px;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .pgda-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.pgda-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.pgda-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgda-slide-active {
    opacity: 1;
}

.pgda-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgda-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

/* Section Titles */
.pgda-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgda-primary);
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--pgda-secondary);
}

.pgda-section-subtitle {
    font-size: 1.4rem;
    color: var(--pgda-text);
    margin-bottom: 1.5rem;
}

/* Game Grid */
.pgda-game-section {
    margin-bottom: 2rem;
}

.pgda-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgda-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgda-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pgda-game-card {
    background: var(--pgda-bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pgda-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--pgda-primary);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.pgda-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgda-game-name {
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--pgda-white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

/* Content Sections */
.pgda-content-section {
    background: var(--pgda-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pgda-bg-light);
}

.pgda-content-section h2 {
    font-size: 1.6rem;
    color: var(--pgda-primary);
    margin-bottom: 1rem;
}

.pgda-content-section p {
    color: var(--pgda-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.pgda-content-section ul {
    list-style: none;
    padding-left: 0;
}

.pgda-content-section li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--pgda-text);
}

.pgda-content-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--pgda-success);
}

/* Promo Link Styles */
.pgda-promo-link {
    color: var(--pgda-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pgda-promo-link:hover {
    color: var(--pgda-secondary);
    text-decoration: underline;
}

.pgda-promo-btn {
    background: var(--pgda-gradient);
    color: var(--pgda-bg);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.pgda-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* Footer */
.pgda-footer {
    background: var(--pgda-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--pgda-primary);
}

.pgda-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pgda-footer-links a {
    color: var(--pgda-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.pgda-footer-links a:hover {
    color: var(--pgda-primary);
}

.pgda-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pgda-partners img {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pgda-partners img:hover {
    opacity: 1;
}

.pgda-copyright {
    text-align: center;
    color: var(--pgda-text);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.pgda-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, var(--pgda-bg) 100%);
    border-top: 2px solid var(--pgda-primary);
    z-index: 1000;
    padding: 0.6rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .pgda-bottom-nav {
        display: none;
    }
}

.pgda-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pgda-text);
    text-decoration: none;
    border-radius: 8px;
    padding: 0.4rem;
}

.pgda-nav-item:hover,
.pgda-nav-item.pgda-nav-active {
    color: var(--pgda-primary);
    transform: scale(1.1);
}

.pgda-nav-item.pgda-nav-active {
    background: rgba(255, 215, 0, 0.1);
}

.pgda-nav-item i,
.pgda-nav-item .material-icons {
    font-size: 22px;
    margin-bottom: 0.2rem;
}

.pgda-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.pgda-text-center { text-align: center; }
.pgda-text-gold { color: var(--pgda-primary); }
.pgda-text-secondary { color: var(--pgda-secondary); }
.pgda-mt-1 { margin-top: 1rem; }
.pgda-mb-1 { margin-bottom: 1rem; }
.pgda-mt-2 { margin-top: 2rem; }
.pgda-mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 360px) {
    .pgda-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgda-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}

/* RTP Table Styles */
.pgda-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.pgda-rtp-table th,
.pgda-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--pgda-bg-light);
}

.pgda-rtp-table th {
    color: var(--pgda-primary);
    font-weight: 600;
}

.pgda-rtp-table td {
    color: var(--pgda-text);
}

/* FAQ Section */
.pgda-faq-item {
    background: var(--pgda-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.pgda-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--pgda-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgda-faq-answer {
    padding: 0 1rem 1rem;
    color: var(--pgda-text);
    display: none;
}

.pgda-faq-item.pgda-active .pgda-faq-answer {
    display: block;
}

/* Features Grid */
.pgda-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgda-feature-card {
    background: var(--pgda-bg-card);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--pgda-bg-light);
    transition: all 0.3s ease;
}

.pgda-feature-card:hover {
    border-color: var(--pgda-primary);
}

.pgda-feature-card i {
    font-size: 2.4rem;
    color: var(--pgda-primary);
    margin-bottom: 0.6rem;
}

.pgda-feature-card h3 {
    font-size: 1.2rem;
    color: var(--pgda-white);
    margin-bottom: 0.4rem;
}

.pgda-feature-card p {
    font-size: 1rem;
    color: var(--pgda-text);
}
