/* FastPlay Theme CSS - Mobile-first gaming platform */

/* CSS Variables for consistent theming */
:root {
    /* Color palette: #F5DEB3 | #1C2833 | #BDB76B | #A9A9A9 | #DEB887 | #1E90FF */
    --pga1-primary: #1E90FF;
    --pga1-secondary: #BDB76B;
    --pga1-accent: #DEB887;
    --pga1-background: #1C2833;
    --pga1-surface: #F5DEB3;
    --pga1-text: #A9A9A9;
    --pga1-text-light: #F5DEB3;
    --pga1-text-dark: #1C2833;
    --pga1-border: #DEB887;
    --pga1-success: #28a745;
    --pga1-warning: #ffc107;
    --pga1-error: #dc3545;
    --pga1-info: #17a2b8;

    /* Spacing scale */
    --pga1-space-xs: 0.25rem;
    --pga1-space-sm: 0.5rem;
    --pga1-space-md: 1rem;
    --pga1-space-lg: 1.5rem;
    --pga1-space-xl: 2rem;
    --pga1-space-2xl: 3rem;

    /* Typography */
    --pga1-font-size-xs: 0.75rem;
    --pga1-font-size-sm: 0.875rem;
    --pga1-font-size-base: 1rem;
    --pga1-font-size-lg: 1.125rem;
    --pga1-font-size-xl: 1.25rem;
    --pga1-font-size-2xl: 1.5rem;
    --pga1-font-size-3xl: 1.875rem;

    /* Border radius */
    --pga1-radius-sm: 0.25rem;
    --pga1-radius-md: 0.375rem;
    --pga1-radius-lg: 0.5rem;
    --pga1-radius-xl: 0.75rem;

    /* Shadows */
    --pga1-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pga1-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pga1-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --pga1-transition-fast: 150ms ease-in-out;
    --pga1-transition-normal: 250ms ease-in-out;
    --pga1-transition-slow: 350ms ease-in-out;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px for easy calculations */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pga1-text-light);
    background-color: var(--pga1-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive design */
.pga1-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--pga1-space-md);
}

.pga1-wrapper {
    min-height: 100vh;
    padding-bottom: 80px; /* Space for bottom navigation */
}

/* Header and Navigation */
.pga1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--pga1-primary) 0%, var(--pga1-secondary) 100%);
    box-shadow: var(--pga1-shadow-md);
    backdrop-filter: blur(10px);
}

.pga1-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--pga1-space-md);
    max-width: 430px;
    margin: 0 auto;
}

.pga1-logo {
    display: flex;
    align-items: center;
    gap: var(--pga1-space-sm);
    font-size: var(--pga1-font-size-xl);
    font-weight: 700;
    color: var(--pga1-text-light);
    text-decoration: none;
}

.pga1-logo img {
    width: 28px;
    height: 28px;
    border-radius: var(--pga1-radius-md);
}

.pga1-header-actions {
    display: flex;
    align-items: center;
    gap: var(--pga1-space-sm);
}

.pga1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--pga1-space-sm) var(--pga1-space-md);
    border: none;
    border-radius: var(--pga1-radius-lg);
    font-size: var(--pga1-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pga1-transition-fast);
    min-height: 44px; /* Touch-friendly minimum size */
    min-width: 60px;
    text-decoration: none;
    text-align: center;
}

.pga1-btn-primary {
    background: var(--pga1-secondary);
    color: var(--pga1-text-dark);
    box-shadow: var(--pga1-shadow-sm);
}

.pga1-btn-primary:hover {
    background: var(--pga1-accent);
    transform: translateY(-2px);
    box-shadow: var(--pga1-shadow-md);
}

.pga1-btn-secondary {
    background: transparent;
    color: var(--pga1-text-light);
    border: 2px solid var(--pga1-text-light);
}

.pga1-btn-secondary:hover {
    background: var(--pga1-text-light);
    color: var(--pga1-primary);
}

.pga1-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.pga1-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--pga1-text-light);
    transition: all var(--pga1-transition-fast);
}

.pga1-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pga1-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.pga1-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.pga1-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pga1-background);
    z-index: 9999;
    transition: right var(--pga1-transition-normal);
    overflow-y: auto;
    padding-top: 80px;
}

.pga1-mobile-menu.active {
    right: 0;
}

.pga1-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--pga1-transition-normal);
}

.pga1-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pga1-menu-list {
    list-style: none;
    padding: var(--pga1-space-md);
}

.pga1-menu-item {
    margin-bottom: var(--pga1-space-sm);
}

.pga1-menu-link {
    display: block;
    padding: var(--pga1-space-md);
    color: var(--pga1-text-light);
    text-decoration: none;
    border-radius: var(--pga1-radius-md);
    transition: all var(--pga1-transition-fast);
}

.pga1-menu-link:hover {
    background: rgba(30, 144, 255, 0.1);
    color: var(--pga1-primary);
}

/* Carousel */
.pga1-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--pga1-radius-xl);
    margin: var(--pga1-space-lg) 0;
    box-shadow: var(--pga1-shadow-lg);
}

.pga1-carousel-inner {
    display: flex;
    transition: transform var(--pga1-transition-normal);
}

.pga1-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.pga1-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.pga1-carousel-indicators {
    position: absolute;
    bottom: var(--pga1-space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--pga1-space-xs);
}

.pga1-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--pga1-transition-fast);
}

.pga1-indicator.active {
    background: var(--pga1-primary);
    width: 24px;
    border-radius: 4px;
}

/* Grid Layout */
.pga1-grid {
    display: grid;
    gap: var(--pga1-space-md);
}

.pga1-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pga1-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pga1-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.pga1-card {
    background: var(--pga1-surface);
    border-radius: var(--pga1-radius-lg);
    padding: var(--pga1-space-md);
    box-shadow: var(--pga1-shadow-sm);
    transition: all var(--pga1-transition-fast);
    border: 1px solid transparent;
}

.pga1-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pga1-shadow-md);
    border-color: var(--pga1-primary);
}

.pga1-card-title {
    font-size: var(--pga1-font-size-lg);
    font-weight: 700;
    color: var(--pga1-text-dark);
    margin-bottom: var(--pga1-space-sm);
}

.pga1-card-text {
    color: var(--pga1-text);
    line-height: 1.6;
}

/* Game Cards */
.pga1-game-card {
    background: var(--pga1-surface);
    border-radius: var(--pga1-radius-lg);
    overflow: hidden;
    transition: all var(--pga1-transition-fast);
    cursor: pointer;
    box-shadow: var(--pga1-shadow-sm);
}

.pga1-game-card:hover {
    transform: scale(1.05);
    box-shadow: var(--pga1-shadow-lg);
}

.pga1-game-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pga1-primary) 0%, var(--pga1-secondary) 100%);
}

.pga1-game-title {
    padding: var(--pga1-space-sm);
    font-size: var(--pga1-font-size-xs);
    font-weight: 600;
    color: var(--pga1-text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Typography */
.pga1-h1 {
    font-size: var(--pga1-font-size-3xl);
    font-weight: 800;
    color: var(--pga1-text-light);
    margin-bottom: var(--pga1-space-lg);
    text-align: center;
    line-height: 1.2;
}

.pga1-h2 {
    font-size: var(--pga1-font-size-2xl);
    font-weight: 700;
    color: var(--pga1-text-light);
    margin-bottom: var(--pga1-space-md);
    line-height: 1.3;
}

.pga1-h3 {
    font-size: var(--pga1-font-size-xl);
    font-weight: 600;
    color: var(--pga1-text-light);
    margin-bottom: var(--pga1-space-sm);
    line-height: 1.4;
}

.pga1-text {
    color: var(--pga1-text);
    line-height: 1.6;
    margin-bottom: var(--pga1-space-md);
}

.pga1-text-center {
    text-align: center;
}

.pga1-text-primary {
    color: var(--pga1-primary);
}

.pga1-text-secondary {
    color: var(--pga1-secondary);
}

/* Section Components */
.pga1-section {
    margin-bottom: var(--pga1-space-2xl);
}

.pga1-section-title {
    font-size: var(--pga1-font-size-2xl);
    font-weight: 700;
    color: var(--pga1-text-light);
    margin-bottom: var(--pga1-space-lg);
    text-align: center;
    position: relative;
}

.pga1-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--pga1-primary);
    border-radius: 2px;
}

/* Affiliate Links */
.pga1-affiliate-link {
    color: var(--pga1-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--pga1-transition-fast);
    cursor: pointer;
}

.pga1-affiliate-link:hover {
    color: var(--pga1-secondary);
    text-decoration: underline;
}

.pga1-affiliate-btn {
    background: linear-gradient(135deg, var(--pga1-primary) 0%, var(--pga1-secondary) 100%);
    color: var(--pga1-text-light);
    border: none;
    border-radius: var(--pga1-radius-xl);
    padding: var(--pga1-space-md) var(--pga1-space-xl);
    font-size: var(--pga1-font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--pga1-transition-fast);
    box-shadow: var(--pga1-shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pga1-affiliate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--pga1-shadow-lg);
}

/* Bottom Navigation */
.pga1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pga1-background);
    border-top: 1px solid var(--pga1-border);
    backdrop-filter: blur(10px);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--pga1-space-md);
}

.pga1-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--pga1-transition-fast);
    color: var(--pga1-text);
    text-decoration: none;
    border-radius: var(--pga1-radius-md);
    position: relative;
}

.pga1-nav-btn:hover,
.pga1-nav-btn.active {
    color: var(--pga1-primary);
    background: rgba(30, 144, 255, 0.1);
    transform: scale(1.1);
}

.pga1-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: all var(--pga1-transition-fast);
}

.pga1-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

.pga1-nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pga1-error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Footer */
.pga1-footer {
    background: var(--pga1-background);
    border-top: 1px solid var(--pga1-border);
    padding: var(--pga1-space-xl) var(--pga1-space-md) var(--pga1-space-2xl);
    margin-top: var(--pga1-space-2xl);
}

.pga1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pga1-space-md);
    margin-bottom: var(--pga1-space-lg);
}

.pga1-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--pga1-transition-fast);
}

.pga1-partner-logo:hover {
    opacity: 1;
}

.pga1-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pga1-space-md);
    margin-bottom: var(--pga1-space-lg);
}

.pga1-footer-link {
    color: var(--pga1-text);
    text-decoration: none;
    font-size: var(--pga1-font-size-sm);
    transition: color var(--pga1-transition-fast);
}

.pga1-footer-link:hover {
    color: var(--pga1-primary);
}

.pga1-copyright {
    text-align: center;
    color: var(--pga1-text);
    font-size: var(--pga1-font-size-sm);
    margin-top: var(--pga1-space-lg);
}

/* Utility Classes */
.pga1-flex {
    display: flex;
}

.pga1-flex-col {
    flex-direction: column;
}

.pga1-items-center {
    align-items: center;
}

.pga1-justify-center {
    justify-content: center;
}

.pga1-justify-between {
    justify-content: space-between;
}

.pga1-gap-sm {
    gap: var(--pga1-space-sm);
}

.pga1-gap-md {
    gap: var(--pga1-space-md);
}

.pga1-gap-lg {
    gap: var(--pga1-space-lg);
}

.pga1-mb-sm {
    margin-bottom: var(--pga1-space-sm);
}

.pga1-mb-md {
    margin-bottom: var(--pga1-space-md);
}

.pga1-mb-lg {
    margin-bottom: var(--pga1-space-lg);
}

.pga1-mt-sm {
    margin-top: var(--pga1-space-sm);
}

.pga1-mt-md {
    margin-top: var(--pga1-space-md);
}

.pga1-mt-lg {
    margin-top: var(--pga1-space-lg);
}

.pga1-p-sm {
    padding: var(--pga1-space-sm);
}

.pga1-p-md {
    padding: var(--pga1-space-md);
}

.pga1-p-lg {
    padding: var(--pga1-space-lg);
}

.pga1-w-full {
    width: 100%;
}

.pga1-h-full {
    height: 100%;
}

.pga1-rounded {
    border-radius: var(--pga1-radius-md);
}

.pga1-rounded-lg {
    border-radius: var(--pga1-radius-lg);
}

.pga1-shadow {
    box-shadow: var(--pga1-shadow-md);
}

.pga1-shadow-lg {
    box-shadow: var(--pga1-shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pga1-container {
        padding: 0 var(--pga1-space-sm);
    }

    .pga1-wrapper {
        padding-bottom: 80px; /* Space for bottom navigation */
    }

    .pga1-h1 {
        font-size: 2.2rem;
    }

    .pga1-h2 {
        font-size: 1.8rem;
    }

    .pga1-h3 {
        font-size: 1.5rem;
    }

    .pga1-bottom-nav {
        display: flex;
    }

    .pga1-game-image {
        height: 60px;
    }

    .pga1-game-title {
        font-size: 9px;
        padding: 4px;
    }
}

@media (min-width: 769px) {
    .pga1-bottom-nav {
        display: none;
    }

    .pga1-wrapper {
        padding-bottom: 0;
    }
}

/* Animation Classes */
.pga1-fade-in {
    animation: pga1FadeIn 0.3s ease-in-out;
}

.pga1-slide-up {
    animation: pga1SlideUp 0.3s ease-in-out;
}

.pga1-scale-in {
    animation: pga1ScaleIn 0.2s ease-in-out;
}

@keyframes pga1FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pga1SlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pga1ScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.pga1-loading {
    position: relative;
    overflow: hidden;
}

.pga1-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: pga1Loading 1.5s infinite;
}

@keyframes pga1Loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Notification Styles */
.pga1-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--pga1-space-md);
    border-radius: var(--pga1-radius-lg);
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform var(--pga1-transition-normal);
}

.pga1-notification.show {
    transform: translateX(0);
}

.pga1-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.pga1-notification-info {
    background: var(--pga1-info);
}

.pga1-notification-success {
    background: var(--pga1-success);
}

.pga1-notification-warning {
    background: var(--pga1-warning);
}

.pga1-notification-error {
    background: var(--pga1-error);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.pga1-btn:focus,
.pga1-nav-btn:focus,
.pga1-menu-toggle:focus,
.pga1-affiliate-link:focus,
.pga1-menu-link:focus {
    outline: 2px solid var(--pga1-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --pga1-text: #ffffff;
        --pga1-text-light: #ffffff;
        --pga1-border: #ffffff;
    }
}

/* Print styles */
@media print {
    .pga1-header,
    .pga1-bottom-nav,
    .pga1-menu-toggle {
        display: none !important;
    }

    .pga1-wrapper {
        padding-bottom: 0 !important;
    }
}