/* Fair Play Login Mobile Gaming Platform - Core Styles */

/* CSS Custom Properties */
:root {
    --pgd4-primary: #C0C0C0;
    --pgd4-secondary: #A0522D;
    --pgd4-bg-dark: #0C0C0C;
    --pgd4-bg-secondary: #2F2F2F;
    --pgd4-text-light: #C0C0C0;
    --pgd4-text-dark: #0C0C0C;
    --pgd4-accent: #778899;
    --pgd4-success: #32CD32;
    --pgd4-danger: #FF6B6B;
    --pgd4-warning: #FFB347;
    --pgd4-gradient: linear-gradient(135deg, #A0522D 0%, #778899 100%);
    --pgd4-gradient-alt: linear-gradient(45deg, #778899 0%, #A0522D 100%);
    --pgd4-shadow: 0 4px 8px rgba(0,0,0,0.2);
    --pgd4-shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    --pgd4-border-radius: 6px;
    --pgd4-transition: all 0.3s ease;
    font-size: 62.5%;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pgd4-text-light);
    background: var(--pgd4-bg-dark);
    overflow-x: hidden;
}

/* Container and Layout */
.pgd4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.pgd4-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pgd4-main {
    flex: 1;
    padding-bottom: 8rem;
}

/* Header Navigation */
.pgd4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pgd4-gradient);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--pgd4-shadow);
    border-bottom: 1px solid rgba(192,192,192,0.1);
}

.pgd4-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.pgd4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--pgd4-text-light);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pgd4-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: var(--pgd4-border-radius);
    background: var(--pgd4-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--pgd4-shadow);
}

.pgd4-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgd4-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--pgd4-border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--pgd4-transition);
    cursor: pointer;
    min-height: 44px;
    line-height: 1;
    box-shadow: var(--pgd4-shadow);
}

.pgd4-btn-primary {
    background: var(--pgd4-accent);
    color: var(--pgd4-text-dark);
}

.pgd4-btn-primary:hover,
.pgd4-btn-primary:focus {
    background: #8BA3B8;
    transform: translateY(-2px);
    box-shadow: var(--pgd4-shadow-lg);
}

.pgd4-btn-secondary {
    background: transparent;
    color: var(--pgd4-text-light);
    border: 2px solid var(--pgd4-text-light);
}

.pgd4-btn-secondary:hover,
.pgd4-btn-secondary:focus {
    background: var(--pgd4-text-light);
    color: var(--pgd4-text-dark);
}

.pgd4-menu-toggle {
    background: none;
    border: none;
    color: var(--pgd4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: var(--pgd4-border-radius);
    transition: var(--pgd4-transition);
}

.pgd4-menu-toggle:hover,
.pgd4-menu-toggle:focus {
    background: rgba(192,192,192,0.1);
}

/* Mobile Navigation */
.pgd4-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--pgd4-bg-secondary);
    border-left: 1px solid var(--pgd4-accent);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--pgd4-shadow-lg);
}

.pgd4-nav-open {
    right: 0;
}

.pgd4-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,12,12,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.pgd4-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pgd4-mobile-nav-header {
    padding: 2rem 1.6rem;
    border-bottom: 1px solid rgba(192,192,192,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pgd4-nav-close {
    background: none;
    border: none;
    color: var(--pgd4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: var(--pgd4-border-radius);
}

.pgd4-nav-menu {
    list-style: none;
    padding: 2rem 0;
}

.pgd4-nav-item {
    margin-bottom: 0.4rem;
}

.pgd4-nav-link {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--pgd4-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--pgd4-transition);
    border-left: 3px solid transparent;
}

.pgd4-nav-link:hover,
.pgd4-nav-link:focus {
    background: rgba(192,192,192,0.05);
    border-left-color: var(--pgd4-accent);
    color: var(--pgd4-accent);
}

/* Carousel/Hero Section */
.pgd4-hero {
    padding-top: 8rem;
    margin-bottom: 2rem;
}

.pgd4-carousel {
    position: relative;
    border-radius: var(--pgd4-border-radius);
    overflow: hidden;
    box-shadow: var(--pgd4-shadow-lg);
}

.pgd4-slide {
    display: none;
    position: relative;
}

.pgd4-slide-active {
    display: block;
}

.pgd4-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--pgd4-transition);
}

.pgd4-slide img:hover {
    transform: scale(1.02);
}

.pgd4-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pgd4-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(192,192,192,0.5);
    cursor: pointer;
    transition: var(--pgd4-transition);
    border: 2px solid transparent;
}

.pgd4-indicator-active {
    background: var(--pgd4-accent);
    transform: scale(1.2);
    border-color: var(--pgd4-text-light);
}

/* Section Styling */
.pgd4-section {
    margin-bottom: 3rem;
    padding: 0 1.6rem;
}

.pgd4-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--pgd4-text-light);
    text-align: center;
    background: var(--pgd4-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pgd4-section-subtitle {
    font-size: 1.6rem;
    color: rgba(192,192,192,0.8);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Game Grid */
.pgd4-games-section {
    margin-bottom: 3rem;
}

.pgd4-games-category {
    margin-bottom: 2.4rem;
}

.pgd4-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--pgd4-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgd4-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pgd4-game-item {
    background: rgba(192,192,192,0.05);
    border-radius: var(--pgd4-border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--pgd4-transition);
    border: 1px solid rgba(192,192,192,0.1);
}

.pgd4-game-item:hover,
.pgd4-game-touch {
    background: rgba(192,192,192,0.1);
    transform: translateY(-2px);
    box-shadow: var(--pgd4-shadow);
}

.pgd4-game-selected {
    background: var(--pgd4-secondary);
    transform: scale(0.95);
}

.pgd4-game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--pgd4-border-radius);
    margin: 0 auto 0.8rem;
    object-fit: cover;
    background: var(--pgd4-primary);
}

.pgd4-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--pgd4-text-light);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature Cards */
.pgd4-features-grid {
    display: grid;
    gap: 1.6rem;
}

.pgd4-feature-card {
    background: rgba(192,192,192,0.05);
    border-radius: var(--pgd4-border-radius);
    padding: 2rem;
    border: 1px solid rgba(192,192,192,0.1);
    transition: var(--pgd4-transition);
}

.pgd4-feature-card:hover {
    background: rgba(192,192,192,0.08);
    transform: translateY(-2px);
    box-shadow: var(--pgd4-shadow);
}

.pgd4-feature-icon {
    font-size: 3rem;
    color: var(--pgd4-accent);
    margin-bottom: 1rem;
}

.pgd4-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pgd4-text-light);
}

.pgd4-feature-description {
    color: rgba(192,192,192,0.8);
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

/* Promotional Elements */
.pgd4-promo-section {
    background: var(--pgd4-gradient);
    border-radius: var(--pgd4-border-radius);
    padding: 2.4rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pgd4-shadow-lg);
}

.pgd4-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120,136,153,0.2) 0%, transparent 70%);
    animation: pgd4-pulse 4s infinite;
}

.pgd4-promo-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pgd4-text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pgd4-promo-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: rgba(192,192,192,0.9);
    line-height: 1.5;
}

.pgd4-promo-btn {
    background: var(--pgd4-accent);
    color: var(--pgd4-text-dark);
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    border-radius: var(--pgd4-border-radius);
    cursor: pointer;
    transition: var(--pgd4-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    box-shadow: var(--pgd4-shadow);
}

.pgd4-promo-btn:hover,
.pgd4-promo-btn:focus {
    background: #8BA3B8;
    transform: scale(1.05);
    box-shadow: var(--pgd4-shadow-lg);
}

.pgd4-btn-clicked {
    animation: pgd4-click-feedback 0.2s ease;
}

/* RTP Display */
.pgd4-rtp-section {
    background: rgba(160,82,45,0.1);
    border-radius: var(--pgd4-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(160,82,45,0.2);
}

.pgd4-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgd4-rtp-item {
    text-align: center;
    padding: 1rem;
    background: rgba(192,192,192,0.05);
    border-radius: var(--pgd4-border-radius);
}

.pgd4-rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pgd4-accent);
    display: block;
}

.pgd4-rtp-label {
    font-size: 1.2rem;
    color: rgba(192,192,192,0.7);
    margin-top: 0.4rem;
}

/* Bottom Navigation */
.pgd4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pgd4-bg-secondary);
    border-top: 1px solid rgba(192,192,192,0.1);
    padding: 0.8rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 8px rgba(0,0,0,0.2);
}

.pgd4-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pgd4-bottom-nav-item {
    flex: 1;
    text-align: center;
    transition: var(--pgd4-transition);
}

.pgd4-bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(192,192,192,0.6);
    padding: 0.4rem;
    transition: var(--pgd4-transition);
    min-height: 44px;
    justify-content: center;
}

.pgd4-bottom-nav-item:hover a,
.pgd4-nav-current a {
    color: var(--pgd4-accent);
    transform: translateY(-2px);
}

.pgd4-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.pgd4-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.pgd4-footer {
    background: var(--pgd4-bg-secondary);
    padding: 3rem 1.6rem 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(192,192,192,0.1);
}

.pgd4-footer-content {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.pgd4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.pgd4-footer-link {
    color: rgba(192,192,192,0.8);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--pgd4-transition);
}

.pgd4-footer-link:hover {
    color: var(--pgd4-accent);
}

.pgd4-partners {
    margin-bottom: 2rem;
}

.pgd4-partners-title {
    font-size: 1.4rem;
    color: rgba(192,192,192,0.8);
    margin-bottom: 1rem;
}

.pgd4-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.pgd4-partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    opacity: 0.6;
    transition: var(--pgd4-transition);
    filter: grayscale(100%);
}

.pgd4-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.pgd4-footer-copyright {
    font-size: 1.2rem;
    color: rgba(192,192,192,0.6);
}

/* Animations */
@keyframes pgd4-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes pgd4-click-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes pgd4-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pgd4-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.pgd4-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pgd4-fade-in {
    animation: pgd4-fade-in 0.5s ease;
}

/* Responsive Design */
@media (max-width: 375px) {
    .pgd4-container {
        padding: 0 1.2rem;
    }
    
    .pgd4-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pgd4-game-icon {
        width: 3.2rem;
        height: 3.2rem;
    }
    
    .pgd4-game-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .pgd4-nav-actions .pgd4-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .pgd4-section-title {
        font-size: 2rem;
    }
    
    .pgd4-promo-title {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pgd4-animate {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.pgd4-btn:focus,
.pgd4-nav-link:focus,
.pgd4-game-item:focus {
    outline: 2px solid var(--pgd4-accent);
    outline-offset: 2px;
}

/* Tooltip */
.pgd4-tooltip {
    position: absolute;
    background: var(--pgd4-bg-secondary);
    color: var(--pgd4-text-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--pgd4-border-radius);
    font-size: 1.2rem;
    z-index: 10000;
    box-shadow: var(--pgd4-shadow-lg);
    border: 1px solid rgba(192,192,192,0.1);
}