/* PHJewel CSS with wd85b- prefix for all classes */

/* CSS Variables for consistent theming */
:root {
    --wd85b-primary: #FF1493;
    --wd85b-secondary: #FFB6C1;
    --wd85b-bg-dark: #2C2C2C;
    --wd85b-bg-light: #FDF5E6;
    --wd85b-accent: #FFFFBA;
    --wd85b-text-light: #FDF5E6;
    --wd85b-text-dark: #2C2C2C;
    --wd85b-border: rgba(255, 20, 147, 0.3);
    --wd85b-shadow: rgba(255, 20, 147, 0.2);
    --wd85b-radius: 8px;
    --wd85b-transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--wd85b-text-light);
    background: linear-gradient(135deg, var(--wd85b-bg-dark) 0%, #1a1a1a 100%);
    overflow-x: hidden;
}

/* Container and layout */
.wd85b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wd85b-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for bottom nav on mobile */
}

.wd85b-grid {
    display: grid;
    gap: 1.5rem;
}

.wd85b-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wd85b-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header and Navigation */
.wd85b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--wd85b-bg-dark) 0%, #1a1a1a 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wd85b-border);
    padding: 1rem 0;
}

.wd85b-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.wd85b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--wd85b-text-light);
    font-weight: 700;
    font-size: 2rem;
}

.wd85b-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}

.wd85b-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wd85b-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--wd85b-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wd85b-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem; /* Touch-friendly height */
}

.wd85b-btn-primary {
    background: linear-gradient(135deg, var(--wd85b-primary) 0%, #ff1493cc 100%);
    color: white;
    box-shadow: 0 4px 15px var(--wd85b-shadow);
}

.wd85b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--wd85b-shadow);
}

.wd85b-btn-secondary {
    background: transparent;
    color: var(--wd85b-text-light);
    border: 2px solid var(--wd85b-primary);
}

.wd85b-btn-secondary:hover {
    background: var(--wd85b-primary);
    color: white;
    transform: translateY(-2px);
}

.wd85b-menu-toggle {
    background: none;
    border: none;
    color: var(--wd85b-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--wd85b-radius);
    transition: var(--wd85b-transition);
}

.wd85b-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Mobile Menu */
.wd85b-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--wd85b-bg-dark) 0%, #1a1a1a 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.wd85b-mobile-menu.active {
    right: 0;
}

.wd85b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wd85b-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wd85b-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wd85b-border);
}

.wd85b-menu-close {
    background: none;
    border: none;
    color: var(--wd85b-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--wd85b-radius);
    transition: var(--wd85b-transition);
}

.wd85b-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.wd85b-menu-list {
    list-style: none;
}

.wd85b-menu-item {
    margin-bottom: 1rem;
}

.wd85b-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--wd85b-text-light);
    text-decoration: none;
    border-radius: var(--wd85b-radius);
    transition: var(--wd85b-transition);
    font-size: 1.6rem;
}

.wd85b-menu-link:hover {
    background: rgba(255, 20, 147, 0.2);
    color: var(--wd85b-primary);
    transform: translateX(5px);
}

.wd85b-menu-icon {
    font-size: 2rem;
    width: 2.4rem;
    text-align: center;
}

/* Main Content */
.wd85b-main {
    padding-top: 8rem; /* Space for fixed header */
    min-height: calc(100vh - 8rem);
}

.wd85b-section {
    margin-bottom: 3rem;
}

.wd85b-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wd85b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hero Section */
.wd85b-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 182, 193, 0.1) 100%);
    border-radius: var(--wd85b-radius);
    margin-bottom: 3rem;
}

.wd85b-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--wd85b-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wd85b-hero p {
    font-size: 1.6rem;
    color: var(--wd85b-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Carousel */
.wd85b-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--wd85b-radius);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wd85b-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.wd85b-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.wd85b-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wd85b-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

.wd85b-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wd85b-carousel-desc {
    font-size: 1.4rem;
    opacity: 0.9;
}

.wd85b-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.wd85b-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--wd85b-transition);
}

.wd85b-carousel-indicator.active {
    background: var(--wd85b-primary);
    transform: scale(1.2);
}

/* Game Cards */
.wd85b-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.wd85b-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--wd85b-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--wd85b-transition);
    border: 1px solid transparent;
}

.wd85b-game-card:hover {
    background: rgba(255, 20, 147, 0.1);
    border-color: var(--wd85b-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--wd85b-shadow);
}

.wd85b-game-icon {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--wd85b-radius);
    margin-bottom: 0.5rem;
}

.wd85b-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wd85b-text-light);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Content Sections */
.wd85b-content-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--wd85b-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--wd85b-border);
}

.wd85b-content-section h2 {
    color: var(--wd85b-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.wd85b-content-section h3 {
    color: var(--wd85b-secondary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wd85b-content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wd85b-content-section ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.wd85b-content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.wd85b-content-link {
    color: var(--wd85b-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--wd85b-transition);
}

.wd85b-content-link:hover {
    color: var(--wd85b-secondary);
    text-decoration: underline;
}

/* Search Component */
.wd85b-search {
    position: relative;
    margin-bottom: 2rem;
}

.wd85b-search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid var(--wd85b-border);
    border-radius: var(--wd85b-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--wd85b-text-light);
    font-size: 1.6rem;
    transition: var(--wd85b-transition);
}

.wd85b-search-input:focus {
    outline: none;
    border-color: var(--wd85b-primary);
    background: rgba(255, 255, 255, 0.15);
}

.wd85b-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.wd85b-search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wd85b-primary);
    font-size: 2rem;
}

.wd85b-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wd85b-bg-dark);
    border: 1px solid var(--wd85b-border);
    border-radius: var(--wd85b-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.wd85b-search-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--wd85b-border);
    cursor: pointer;
    transition: var(--wd85b-transition);
}

.wd85b-search-item:hover {
    background: rgba(255, 20, 147, 0.1);
}

.wd85b-search-item:last-child {
    border-bottom: none;
}

/* Bottom Navigation */
.wd85b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--wd85b-bg-dark) 0%, #1a1a1a 100%);
    border-top: 1px solid var(--wd85b-border);
    z-index: 1000;
    height: 6rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

.wd85b-bottom-nav-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: var(--wd85b-transition);
    padding: 0.5rem;
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wd85b-bottom-nav-item:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: scale(1.05);
}

.wd85b-bottom-nav-item.active {
    color: var(--wd85b-primary);
}

.wd85b-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: var(--wd85b-transition);
}

.wd85b-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Footer */
.wd85b-footer {
    background: linear-gradient(135deg, var(--wd85b-bg-dark) 0%, #1a1a1a 100%);
    border-top: 1px solid var(--wd85b-border);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.wd85b-footer-content {
    text-align: center;
}

.wd85b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wd85b-footer-link {
    color: var(--wd85b-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--wd85b-transition);
}

.wd85b-footer-link:hover {
    color: var(--wd85b-primary);
}

.wd85b-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wd85b-partner {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--wd85b-transition);
}

.wd85b-partner:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wd85b-copyright {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
}

/* Scroll to top button */
.wd85b-scroll-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    background: var(--wd85b-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--wd85b-transition);
    box-shadow: 0 4px 15px var(--wd85b-shadow);
}

.wd85b-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.wd85b-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--wd85b-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wd85b-wrapper {
        padding-bottom: 8rem; /* Space for bottom nav */
    }

    .wd85b-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .wd85b-bottom-nav {
        display: none;
    }

    .wd85b-container {
        max-width: 1200px;
    }

    .wd85b-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .wd85b-carousel-slide img {
        height: 300px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wd85b-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility classes */
.wd85b-text-center {
    text-align: center;
}

.wd85b-text-primary {
    color: var(--wd85b-primary);
}

.wd85b-text-secondary {
    color: var(--wd85b-secondary);
}

.wd85b-bg-primary {
    background-color: var(--wd85b-primary);
}

.wd85b-bg-secondary {
    background-color: var(--wd85b-secondary);
}

.wd85b-mb-1 { margin-bottom: 1rem; }
.wd85b-mb-2 { margin-bottom: 2rem; }
.wd85b-mb-3 { margin-bottom: 3rem; }
.wd85b-mt-1 { margin-top: 1rem; }
.wd85b-mt-2 { margin-top: 2rem; }
.wd85b-mt-3 { margin-top: 3rem; }

.wd85b-p-1 { padding: 1rem; }
.wd85b-p-2 { padding: 2rem; }
.wd85b-p-3 { padding: 3rem; }

/* Loading states */
.wd85b-loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--wd85b-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.wd85b-btn:focus,
.wd85b-menu-toggle:focus,
.wd85b-menu-link:focus,
.wd85b-search-input:focus {
    outline: 2px solid var(--wd85b-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --wd85b-border: rgba(255, 20, 147, 0.7);
        --wd85b-shadow: rgba(255, 20, 147, 0.4);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}