/* BetPK Styles - Mobile-first responsive design */

/* CSS Variables */
:root {
    --pg5e-primary: #34495E;
    --pg5e-secondary: #808080;
    --pg5e-accent: #CD853F;
    --pg5e-dark: #2c3e50;
    --pg5e-light: #f8f9fa;
    --pg5e-white: #ffffff;
    --pg5e-border: #e9ecef;
    --pg5e-text: #212529;
    --pg5e-text-light: #6c757d;
}

/* Reset and base styles */
* {
    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(--pg5e-text);
    background-color: var(--pg5e-light);
    overflow-x: hidden;
}

/* Container */
.pg5e-container {
    max-width: 430px;
    margin: 0 auto;
    background-color: var(--pg5e-white);
    min-height: 100vh;
    position: relative;
}

/* Header */
.pg5e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--pg5e-primary);
    color: var(--pg5e-white);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pg5e-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pg5e-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pg5e-white);
    font-size: 20px;
    font-weight: bold;
    flex: 1;
}

.pg5e-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.pg5e-header-buttons {
    display: flex;
    gap: 8px;
}

.pg5e-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.pg5e-btn-register {
    background-color: var(--pg5e-accent);
    color: var(--pg5e-white);
}

.pg5e-btn-register:hover {
    background-color: #b8732b;
    transform: translateY(-1px);
}

.pg5e-btn-login {
    background-color: var(--pg5e-white);
    color: var(--pg5e-primary);
}

.pg5e-btn-login:hover {
    background-color: var(--pg5e-light);
    transform: translateY(-1px);
}

/* Menu Toggle Button */
.pg5e-menu-toggle {
    background: none;
    border: none;
    color: var(--pg5e-white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg5e-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg5e-menu-overlay.pg5e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg5e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--pg5e-white);
    z-index: 9999;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg5e-mobile-menu.pg5e-menu-active {
    right: 0;
}

.pg5e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--pg5e-primary);
    color: var(--pg5e-white);
}

.pg5e-menu-close {
    background: none;
    border: none;
    color: var(--pg5e-white);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
}

.pg5e-menu-links {
    padding: 16px 0;
}

.pg5e-menu-link {
    display: block;
    padding: 12px 16px;
    color: var(--pg5e-text);
    text-decoration: none;
    border-bottom: 1px solid var(--pg5e-border);
    transition: background-color 0.2s ease;
}

.pg5e-menu-link:hover {
    background-color: var(--pg5e-light);
}

/* Main Content */
.pg5e-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero Section */
.pg5e-hero {
    background: linear-gradient(135deg, var(--pg5e-primary) 0%, var(--pg5e-dark) 100%);
    color: var(--pg5e-white);
    padding: 32px 16px;
    text-align: center;
    margin-bottom: 24px;
}

.pg5e-hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.pg5e-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Section */
.pg5e-section {
    padding: 24px 16px;
    margin-bottom: 16px;
}

.pg5e-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg5e-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg5e-section-title i {
    color: var(--pg5e-accent);
}

/* Game Grid */
.pg5e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pg5e-game-item {
    background-color: var(--pg5e-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--pg5e-text);
    display: block;
}

.pg5e-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pg5e-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pg5e-game-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Content Box */
.pg5e-content-box {
    background-color: var(--pg5e-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pg5e-content-box h3 {
    font-size: 18px;
    color: var(--pg5e-primary);
    margin-bottom: 12px;
}

.pg5e-content-box p {
    font-size: 15px;
    color: var(--pg5e-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.pg5e-content-box p:last-child {
    margin-bottom: 0;
}

/* List */
.pg5e-list {
    list-style: none;
    padding: 0;
}

.pg5e-list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--pg5e-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pg5e-list-item:last-child {
    border-bottom: none;
}

.pg5e-list-item i {
    color: var(--pg5e-accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* FAQ Accordion */
.pg5e-faq-item {
    background-color: var(--pg5e-white);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pg5e-faq-question {
    padding: 16px;
    background-color: var(--pg5e-white);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--pg5e-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pg5e-faq-question i {
    color: var(--pg5e-accent);
    transition: transform 0.3s ease;
}

.pg5e-faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--pg5e-light);
}

.pg5e-faq-item.pg5e-faq-active .pg5e-faq-answer {
    padding: 16px;
    max-height: 500px;
}

.pg5e-faq-item.pg5e-faq-active .pg5e-faq-question i {
    transform: rotate(180deg);
}

/* Footer */
.pg5e-footer {
    background-color: var(--pg5e-primary);
    color: var(--pg5e-white);
    padding: 32px 16px 80px;
}

.pg5e-footer-section {
    margin-bottom: 24px;
}

.pg5e-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pg5e-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.pg5e-partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background-color: var(--pg5e-white);
    padding: 4px;
}

.pg5e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pg5e-footer-link {
    color: var(--pg5e-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.pg5e-footer-link:hover {
    opacity: 1;
}

.pg5e-copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.pg5e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--pg5e-white);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid var(--pg5e-border);
}

.pg5e-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--pg5e-text-light);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 8px;
}

.pg5e-nav-item:hover {
    color: var(--pg5e-accent);
    background-color: var(--pg5e-light);
}

.pg5e-nav-item.pg5e-nav-active {
    color: var(--pg5e-accent);
}

.pg5e-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg5e-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg5e-bottom-nav {
        display: none;
    }

    .pg5e-main {
        padding-bottom: 32px;
    }

    .pg5e-footer {
        padding-bottom: 32px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pg5e-main {
        padding-bottom: 80px;
    }
}
