/**
 * Marathon Gameplay - Theme Stylesheet
 * File: css/theme-d131.css
 * Prefix: pgd1-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --pgd1-primary: #9400D3;
    --pgd1-secondary: #DA70D6;
    --pgd1-bg-dark: #273746;
    --pgd1-bg-darker: #1a252f;
    --pgd1-text-light: #C0C0C0;
    --pgd1-text-white: #ffffff;
    --pgd1-accent: #DA70D6;
    --pgd1-gradient: linear-gradient(135deg, #9400D3, #DA70D6);
    --pgd1-shadow: 0 4px 15px rgba(148, 0, 211, 0.3);
    --pgd1-radius: 8px;
    --pgd1-radius-lg: 16px;
}

/* 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(--pgd1-bg-dark);
    color: var(--pgd1-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pgd1-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.pgd1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgd1-bg-darker);
    padding: 0.8rem 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(218, 112, 214, 0.2);
    transition: all 0.3s ease;
}

.pgd1-header-scrolled {
    background: rgba(26, 37, 47, 0.98);
    box-shadow: var(--pgd1-shadow);
}

.pgd1-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pgd1-logo img {
    width: 28px;
    height: 28px;
}

.pgd1-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--pgd1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgd1-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.pgd1-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--pgd1-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pgd1-btn-primary {
    background: var(--pgd1-gradient);
    color: var(--pgd1-text-white);
}

.pgd1-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--pgd1-shadow);
}

.pgd1-btn-outline {
    background: transparent;
    border: 1px solid var(--pgd1-secondary);
    color: var(--pgd1-secondary);
}

.pgd1-btn-outline:hover {
    background: var(--pgd1-secondary);
    color: var(--pgd1-bg-dark);
}

.pgd1-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pgd1-text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.pgd1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgd1-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pgd1-menu-active {
    right: 0;
}

.pgd1-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;
}

.pgd1-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgd1-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(218, 112, 214, 0.2);
}

.pgd1-menu-close {
    background: transparent;
    border: none;
    color: var(--pgd1-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.pgd1-nav-list {
    list-style: none;
}

.pgd1-nav-item {
    margin-bottom: 0.8rem;
}

.pgd1-nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.3rem;
    color: var(--pgd1-text-light);
    border-radius: var(--pgd1-radius);
    transition: all 0.3s ease;
}

.pgd1-nav-link:hover,
.pgd1-nav-active {
    background: rgba(148, 0, 211, 0.2);
    color: var(--pgd1-secondary);
}

/* Main Content */
.pgd1-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.pgd1-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 var(--pgd1-radius-lg) var(--pgd1-radius-lg);
}

.pgd1-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.pgd1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pgd1-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgd1-slide-active {
    opacity: 1;
}

.pgd1-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.pgd1-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-dot-active {
    background: var(--pgd1-secondary);
    width: 20px;
    border-radius: 4px;
}

/* Sections */
.pgd1-section {
    padding: 1.5rem 1rem;
}

.pgd1-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd1-text-white);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.pgd1-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pgd1-gradient);
    border-radius: 2px;
}

/* Game Grid */
.pgd1-game-section {
    margin-bottom: 2rem;
}

.pgd1-game-category {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgd1-secondary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pgd1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.pgd1-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: rgba(39, 55, 70, 0.5);
    border-radius: var(--pgd1-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-game-item:hover {
    background: rgba(148, 0, 211, 0.2);
    transform: translateY(-2px);
}

.pgd1-game-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--pgd1-radius);
    object-fit: cover;
    margin-bottom: 0.3rem;
}

.pgd1-game-name {
    font-size: 0.9rem;
    color: var(--pgd1-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Cards */
.pgd1-card {
    background: var(--pgd1-bg-darker);
    border-radius: var(--pgd1-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(218, 112, 214, 0.1);
}

.pgd1-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pgd1-text-white);
    margin-bottom: 0.8rem;
}

.pgd1-card-text {
    font-size: 1.2rem;
    color: var(--pgd1-text-light);
    line-height: 1.6;
}

/* Promo Links */
.pgd1-promo-text {
    color: var(--pgd1-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pgd1-promo-text:hover {
    color: var(--pgd1-primary);
}

.pgd1-promo-btn {
    display: inline-block;
    background: var(--pgd1-gradient);
    color: var(--pgd1-text-white);
    padding: 0.8rem 2rem;
    border-radius: var(--pgd1-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pgd1-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--pgd1-shadow);
}

/* Footer */
.pgd1-footer {
    background: var(--pgd1-bg-darker);
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(218, 112, 214, 0.2);
}

.pgd1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.pgd1-footer-link {
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
    transition: color 0.3s ease;
}

.pgd1-footer-link:hover {
    color: var(--pgd1-secondary);
}

.pgd1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pgd1-partner-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pgd1-partner-logo:hover {
    opacity: 1;
}

.pgd1-copyright {
    text-align: center;
    font-size: 1rem;
    color: var(--pgd1-text-light);
    opacity: 0.7;
}

/* Bottom Navigation */
.pgd1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--pgd1-bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(218, 112, 214, 0.2);
}

.pgd1-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--pgd1-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgd1-nav-btn:hover,
.pgd1-nav-btn-active {
    color: var(--pgd1-secondary);
    transform: scale(1.1);
}

.pgd1-nav-btn i,
.pgd1-nav-btn .material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

.pgd1-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgd1-bottom-nav {
        display: none;
    }

    .pgd1-main {
        padding-bottom: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .pgd1-main {
        padding-bottom: 80px;
    }
}

/* RTP Stats */
.pgd1-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.pgd1-rtp-item {
    background: rgba(148, 0, 211, 0.1);
    padding: 1rem;
    border-radius: var(--pgd1-radius);
    text-align: center;
}

.pgd1-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgd1-secondary);
}

.pgd1-rtp-label {
    font-size: 1rem;
    color: var(--pgd1-text-light);
}

/* FAQ Section */
.pgd1-faq-item {
    background: rgba(39, 55, 70, 0.5);
    border-radius: var(--pgd1-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.pgd1-faq-question {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgd1-text-white);
    cursor: pointer;
}

.pgd1-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
    line-height: 1.5;
}

/* Features List */
.pgd1-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pgd1-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(148, 0, 211, 0.1);
    border-radius: var(--pgd1-radius);
}

.pgd1-feature-icon {
    font-size: 1.8rem;
    color: var(--pgd1-secondary);
    flex-shrink: 0;
}

.pgd1-feature-content h4 {
    font-size: 1.2rem;
    color: var(--pgd1-text-white);
    margin-bottom: 0.3rem;
}

.pgd1-feature-content p {
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
}

/* Achievements */
.pgd1-achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.pgd1-achievement-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--pgd1-gradient);
    border-radius: var(--pgd1-radius);
}

.pgd1-achievement-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd1-text-white);
}

.pgd1-achievement-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Tricks/Tips */
.pgd1-tricks-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pgd1-trick-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(39, 55, 70, 0.5);
    border-radius: var(--pgd1-radius);
    border-left: 3px solid var(--pgd1-secondary);
}

.pgd1-trick-number {
    width: 24px;
    height: 24px;
    background: var(--pgd1-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pgd1-text-white);
    flex-shrink: 0;
}

.pgd1-trick-text {
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
}

/* Security Section */
.pgd1-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.pgd1-security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(148, 0, 211, 0.1);
    border-radius: var(--pgd1-radius);
    font-size: 1.1rem;
    color: var(--pgd1-text-light);
}

.pgd1-security-badge i {
    color: var(--pgd1-secondary);
}

/* CTA Section */
.pgd1-cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--pgd1-gradient);
    border-radius: var(--pgd1-radius-lg);
    margin: 1rem;
}

.pgd1-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgd1-text-white);
    margin-bottom: 0.8rem;
}

.pgd1-cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Utility Classes */
.pgd1-text-center {
    text-align: center;
}

.pgd1-mt-1 {
    margin-top: 1rem;
}

.pgd1-mb-1 {
    margin-bottom: 1rem;
}

.pgd1-hidden {
    display: none;
}

/* Desktop styles */
@media (min-width: 769px) {
    .pgd1-container {
        max-width: 1200px;
    }

    .pgd1-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .pgd1-header {
        padding: 1rem 2rem;
    }

    .pgd1-carousel {
        height: 350px;
    }
}
