/* ============================================
   PNEUOMA Games Hub — Styles
   ============================================ */

/* Page Hero */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filters Section */
.filters-section {
    padding: var(--space-md) 0;
    position: sticky;
    top: 70px;
    z-index: 50;
    background: rgba(7, 8, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.filters-section.collapsed {
    padding: var(--space-sm) 0;
}

/* Filter Toggle Button */
.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    margin: 0 auto var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: fit-content;
}

.filters-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
}

.filters-toggle .toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filters-toggle .active-filters {
    display: flex;
    gap: var(--space-xs);
}

.filters-toggle .active-filter {
    padding: 0.25rem 0.6rem;
    background: rgba(100, 255, 218, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.filters-toggle .toggle-icon {
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.filters-section.expanded .filters-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* Filters Container */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.filters-section.expanded .filters {
    max-height: 300px;
    opacity: 1;
    padding-top: var(--space-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-deep);
}

/* Games Section */
.games-section {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.games-count {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
}

.count-number {
    color: var(--accent-primary);
    font-weight: 600;
}

.count-coming {
    color: var(--text-secondary);
}

/* Games Grid */
.games-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* Game Card Full */
.game-card-full {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
}

.game-card-full:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card-full.coming-soon {
    opacity: 0.7;
}

.game-card-full.coming-soon:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.2);
}

.game-card-full.hidden {
    display: none;
}

/* Game Status */
.game-status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
}

.status-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.live {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

.status-badge.coming {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* Game Visual */
.game-visual-full {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Visual Backgrounds */
.aura-bg {
    background: linear-gradient(135deg, #0a1628 0%, #1a0a28 100%);
}

.echo-bg {
    background: linear-gradient(135deg, #0a1a28 0%, #0a280a 100%);
}

.tide-bg {
    background: linear-gradient(135deg, #0a1828 0%, #0a2828 100%);
}

.pulse-bg {
    background: linear-gradient(135deg, #1a0a1a 0%, #280a1a 100%);
}

.deep-bg {
    background: linear-gradient(135deg, #050a14 0%, #0a1428 100%);
}

.cloud-bg {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 100%);
}

/* Cloud Keeper Visual */
.cloud-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-puff {
    position: absolute;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cloud-puff::before,
.cloud-puff::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-puff.c1 {
    width: 60px;
    height: 25px;
    top: 30%;
    left: 20%;
    animation: cloud-float 5s ease-in-out infinite;
}

.cloud-puff.c1::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud-puff.c2 {
    width: 80px;
    height: 35px;
    top: 45%;
    left: 40%;
    animation: cloud-float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.cloud-puff.c2::before {
    width: 40px;
    height: 35px;
    top: -20px;
    left: 15px;
}

.cloud-puff.c3 {
    width: 50px;
    height: 22px;
    top: 55%;
    right: 25%;
    animation: cloud-float 4s ease-in-out infinite;
    animation-delay: -1s;
}

.cloud-puff.c3::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 12px;
}

.cloud-sun {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 2rem;
    opacity: 0.4;
    animation: sun-peek 8s ease-in-out infinite;
}

@keyframes cloud-float {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(10px) translateY(-5px); }
}

@keyframes sun-peek {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.zone-bg {
    background: linear-gradient(135deg, #0a0a14 0%, #14140a 100%);
}

.threshold-bg {
    background: radial-gradient(ellipse at center, #1a1a25 0%, #0a0a0f 100%);
}

/* Threshold Visual */
.threshold-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threshold-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.6;
}

.threshold-ring.t1 {
    width: 90px;
    height: 90px;
    border-color: #a78bfa;
    animation: rotate-threshold 20s linear infinite;
}

.threshold-ring.t2 {
    width: 70px;
    height: 70px;
    border-color: #8b5cf6;
    animation: rotate-threshold 15s linear infinite reverse;
}

.threshold-ring.t3 {
    width: 50px;
    height: 50px;
    border-color: #6366f1;
    animation: rotate-threshold 10s linear infinite;
}

@keyframes rotate-threshold {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.threshold-core {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    border-radius: 50%;
    animation: threshold-pulse 3s ease-in-out infinite;
}

@keyframes threshold-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

.before-bg {
    background: radial-gradient(ellipse at center, #1e293b 0%, #0f172a 100%);
}

/* Before Visual */
.before-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-clock-face {
    width: 80px;
    height: 80px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    position: relative;
}

.before-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 30px;
    background: #f59e0b;
    transform-origin: bottom center;
    transform: translateX(-50%);
    animation: before-tick 5s linear infinite;
}

@keyframes before-tick {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.before-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: before-pulse 3s ease-in-out infinite;
}

@keyframes before-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Songbird Visual */
.songbird-bg {
    background: linear-gradient(180deg, #87ceeb 0%, #a8d8ea 50%, #4a7a4a 100%);
}

.songbird-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.songbird-tree {
    width: 40px;
    height: 100px;
    background: #2d4a2d;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 20%;
}

.songbird-bird {
    font-size: 3rem;
    position: absolute;
    top: 30%;
    animation: bird-bob 2s ease-in-out infinite;
}

@keyframes bird-bob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.songbird-notes {
    position: absolute;
    top: 20%;
    left: 60%;
}

.songbird-notes .note {
    position: absolute;
    font-size: 1.5rem;
    color: #ffd700;
    opacity: 0;
    animation: note-rise 2s ease-out infinite;
}

.songbird-notes .n1 { animation-delay: 0s; }
.songbird-notes .n2 { animation-delay: 1s; left: 20px; }

@keyframes note-rise {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-40px); }
}

/* Solfege Visual */
.solfege-bg {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.solfege-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.solfege-piano {
    display: flex;
    gap: 2px;
}

.piano-key-mini {
    width: 20px;
    height: 50px;
    background: #fafafa;
    border-radius: 0 0 3px 3px;
}

.piano-key-mini.black {
    width: 14px;
    height: 32px;
    background: #2c2c2c;
    margin: 0 -7px;
    z-index: 1;
}

.solfege-notes {
    display: flex;
    gap: 8px;
}

.solfege-notes span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.solfege-notes span:nth-child(1) { background: #e94560; color: white; }
.solfege-notes span:nth-child(2) { background: #ff6b35; color: white; }
.solfege-notes span:nth-child(3) { background: #f7c52d; color: #333; }

/* Visual Elements */
.game-orb {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 8s ease-in-out infinite;
    box-shadow: 0 0 60px var(--accent-primary);
}

.echo-circles {
    position: relative;
    width: 80px;
    height: 80px;
}

.echo-circle {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    animation: echo 3s ease-out infinite;
}

.echo-circle:nth-child(2) { animation-delay: 1s; }
.echo-circle:nth-child(3) { animation-delay: 2s; }

.tide-waves {
    position: absolute;
    inset: 0;
}

.tide-wave {
    position: absolute;
    width: 200%;
    height: 30px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.3;
    animation: wave 4s ease-in-out infinite;
}

.tide-wave:nth-child(1) { bottom: 30%; }
.tide-wave:nth-child(2) { bottom: 50%; animation-delay: -1.3s; opacity: 0.2; }
.tide-wave:nth-child(3) { bottom: 70%; animation-delay: -2.6s; opacity: 0.1; }

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 3px solid #ff6b9d;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.deep-particles {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(99, 179, 237, 0.3) 0%, transparent 30%),
                radial-gradient(circle at 80% 20%, rgba(99, 179, 237, 0.2) 0%, transparent 20%),
                radial-gradient(circle at 50% 50%, rgba(99, 179, 237, 0.1) 0%, transparent 40%);
}

/* The Deep Visual */
.deep-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deep-diver {
    width: 30px;
    height: 50px;
    background: rgba(0, 50, 80, 0.6);
    border-radius: 10px 10px 5px 5px;
    position: relative;
    animation: diver-sink 4s ease-in-out infinite;
}

.deep-diver::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 50, 80, 0.6);
    border-radius: 50%;
}

@keyframes diver-sink {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
}

.deep-bubbles {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.deep-bubbles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: deep-bubble 3s ease-in infinite;
}

.deep-bubbles span:nth-child(1) { left: -15px; animation-delay: 0s; }
.deep-bubbles span:nth-child(2) { left: 0; animation-delay: 0.5s; width: 6px; height: 6px; }
.deep-bubbles span:nth-child(3) { left: 10px; animation-delay: 1s; width: 4px; height: 4px; }

@keyframes deep-bubble {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-80px); opacity: 0; }
}

.cloud-puffs {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Zone Rings Visual */
.zone-rings-visual {
    position: relative;
    width: 120px;
    height: 120px;
}

.zone-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid currentColor;
    animation: zone-ring-pulse 3s ease-in-out infinite;
}

.zone-ring-red {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    color: #E85D5D;
    animation-delay: 0s;
}

.zone-ring-yellow {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    color: #F5C842;
    animation-delay: 0.2s;
}

.zone-ring-green {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    color: #70C490;
    animation-delay: 0.4s;
}

.zone-ring-blue {
    width: 30px;
    height: 30px;
    top: 45px;
    left: 45px;
    color: #5B9BD5;
    animation-delay: 0.6s;
}

@keyframes zone-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

.threshold-door {
    width: 40px;
    height: 80px;
    border: 2px solid var(--accent-purple);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.threshold-door::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.before-timer {
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    position: relative;
}

.before-timer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 20px;
    background: var(--accent-primary);
    transform-origin: bottom;
    transform: translate(-50%, -100%) rotate(45deg);
}

/* Game Info */
.game-info {
    padding: var(--space-lg);
}

.game-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.game-tagline {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.game-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.game-tags .tag {
    background: var(--bg-mid);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-intentions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.intention {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.intention.calm {
    background: rgba(100, 255, 218, 0.15);
    color: #64ffda;
}

.intention.focus {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.intention.energy {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.intention.sleep {
    background: rgba(183, 148, 246, 0.15);
    color: #b794f6;
}

.intention.transition {
    background: rgba(99, 179, 237, 0.15);
    color: #63b3ed;
}

/* CTA Section */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-mid);
}

.cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Simple Footer */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
}

.footer-simple p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

/* Nav Active State */
.nav-links a.active {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .games-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group {
        width: 100%;
        max-width: 400px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .games-grid-full {
        grid-template-columns: 1fr;
    }
    
    .footer-simple {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

