/* ==========================================================================
   Workspace Public View
   /w/{workspace} — public-facing workspace profile
   ========================================================================== */

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes wsp-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes wsp-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wsp-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes wsp-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes wsp-pulse-ring {

    0%,
    100% {
        border-color: var(--crypto-accent-alpha-20);
    }

    50% {
        border-color: var(--crypto-accent-alpha-10);
    }
}

/* --------------------------------------------------------------------------
   Page Override — hero extends behind fixed navbar
   -------------------------------------------------------------------------- */

.page-wrapper:has(.wsp-hero) {
    padding-top: 0 !important;
}

.page-wrapper:has(.wsp-hero)>.page-body {
    margin-top: 0 !important;
}

/* Tone down login button when navbar is scrolled (glass state) */
#zf-page-wrapper:has(.wsp-hero) .zf-main-navbar:not(.no-effect) .btn-primary {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid var(--crypto-border-glass) !important;
    color: var(--crypto-text-secondary) !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

#zf-page-wrapper:has(.wsp-hero) .zf-main-navbar:not(.no-effect) .btn-primary::before {
    display: none !important;
}

#zf-page-wrapper:has(.wsp-hero) .zf-main-navbar:not(.no-effect) .btn-primary:hover {
    background: var(--crypto-accent-alpha-10) !important;
    background-image: none !important;
    border-color: var(--crypto-accent-500) !important;
    color: var(--crypto-accent-500) !important;
}

/* --------------------------------------------------------------------------
   Hero — Full-width breakout, extends to top
   -------------------------------------------------------------------------- */

.wsp-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 8rem 0 3rem;
    transition: padding 0.3s ease;
    overflow: hidden;
}

/* Dark theme hero */
[data-bs-theme="dark"] .wsp-hero {
    background: linear-gradient(135deg,
            rgba(120, 121, 246, 0.15) 0%,
            #14131c 40%,
            #14131c 60%,
            rgba(6, 182, 212, 0.12) 100%);
    background-size: 200% 200%;
    animation: wsp-gradient-shift 24s ease infinite;
}

/* Light theme hero — lavender-tinted to match the new body */
[data-bs-theme="light"] .wsp-hero {
    background: linear-gradient(135deg,
            rgba(120, 121, 246, 0.12) 0%,
            #e9e8f8 40%,
            #e9e8f8 60%,
            rgba(6, 182, 212, 0.10) 100%);
    background-size: 200% 200%;
    animation: wsp-gradient-shift 24s ease infinite;
}

/* No dot pattern — constellation canvas provides the texture */
.wsp-hero::before {
    content: none;
}

/* Constellation canvas overlay */
.wsp-hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Bottom accent line */
.wsp-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(120, 121, 246, 0.15) 25%,
            rgba(160, 122, 246, 0.15) 50%,
            rgba(6, 182, 212, 0.15) 75%,
            transparent);
    pointer-events: none;
}

[data-bs-theme="light"] .wsp-hero::after {
    background: linear-gradient(90deg,
            transparent,
            rgba(120, 121, 246, 0.15) 25%,
            rgba(160, 122, 246, 0.15) 50%,
            rgba(6, 182, 212, 0.15) 75%,
            transparent);
}

/* --------------------------------------------------------------------------
   Hero Glow Orbs
   -------------------------------------------------------------------------- */

.wsp-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.wsp-hero-glow--primary {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    background: var(--crypto-accent-500);
    opacity: 0.06;
    animation: wsp-float 20s ease-in-out infinite;
}

.wsp-hero-glow--secondary {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -30px;
    background: #06b6d4;
    opacity: 0.04;
    animation: wsp-float 25s ease-in-out infinite;
    animation-delay: -8s;
}

[data-bs-theme="light"] .wsp-hero-glow--primary {
    opacity: 0.05;
}

[data-bs-theme="light"] .wsp-hero-glow--secondary {
    opacity: 0.04;
}

/* --------------------------------------------------------------------------
   Hero Inner — re-centers content
   -------------------------------------------------------------------------- */

.wsp-hero-inner {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Hero Content — staggered entrance
   -------------------------------------------------------------------------- */

.wsp-hero-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--crypto-radius-full);
    font-size: var(--crypto-font-size-sm);
    font-weight: 500;
    background: var(--crypto-accent-alpha-20);
    color: var(--crypto-accent-400);
    animation: wsp-fade-up 0.3s ease both;
    animation-delay: 0.1s;
}

.wsp-hero-title {
    font-size: var(--crypto-font-size-4xl);
    font-weight: 700;
    color: var(--crypto-text-primary);
    line-height: var(--crypto-line-height-tight);
    margin-bottom: 0.75rem;
    animation: wsp-fade-up 0.3s ease both;
    animation-delay: 0.2s;
}

.wsp-hero-desc {
    font-size: var(--crypto-font-size-md);
    color: var(--crypto-text-secondary);
    max-width: 600px;
    margin-bottom: 0.75rem;
    animation: wsp-fade-up 0.3s ease both;
    animation-delay: 0.3s;
}

.wsp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--crypto-text-tertiary);
    animation: wsp-fade-up 0.3s ease both;
    animation-delay: 0.4s;
}

.wsp-hero-meta a {
    color: var(--crypto-text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsp-hero-meta a:hover {
    color: var(--crypto-accent-400);
}

/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */

.wsp-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--crypto-accent-alpha-30);
    box-shadow:
        var(--crypto-shadow-md),
        var(--crypto-glow-accent-sm);
    object-fit: cover;
    transition: width 0.3s ease, height 0.3s ease;
    animation: wsp-fade-in 0.5s ease both, wsp-pulse-ring 3s ease-in-out infinite;
}


/* --------------------------------------------------------------------------
   Share Button
   -------------------------------------------------------------------------- */

.wsp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--crypto-radius-full);
    font-size: var(--crypto-font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[data-bs-theme="dark"] .wsp-share-btn {
    background: var(--crypto-glass-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--crypto-border-glass);
    color: var(--crypto-text-secondary);
}

[data-bs-theme="light"] .wsp-share-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 100, 160, 0.16);
    color: var(--crypto-text-secondary);
}

.wsp-share-btn:hover {
    border-color: var(--crypto-accent-alpha-30);
    color: var(--crypto-accent-400);
}

.wsp-share-btn .icon {
    transition: transform 0.2s ease;
}

.wsp-share-btn:hover .icon {
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Hero Top Bar (share button positioning)
   -------------------------------------------------------------------------- */

.wsp-hero-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    animation: wsp-fade-in 0.3s ease both;
    animation-delay: 0.1s;
}

/* --------------------------------------------------------------------------
   Verified Badge
   -------------------------------------------------------------------------- */

.wsp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--crypto-radius-full);
    font-size: var(--crypto-font-size-xs);
    font-weight: 500;
    background: rgba(34, 197, 94, 0.12);
    color: var(--crypto-success);
}

/* --------------------------------------------------------------------------
   Hero Metrics (inline stats)
   -------------------------------------------------------------------------- */

.wsp-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--crypto-border-glass);
    animation: wsp-fade-up 0.3s ease both;
    animation-delay: 0.5s;
}

.wsp-hero-metric {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/* Center the trust gauge + tier label within its metric cell */
.wsp-hero-metric .trust-gauge {
    align-self: center;
}

.wsp-hero-metric > .wsp-hero-metric-label:first-of-type {
    text-align: center;
}

.wsp-hero-metric-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--crypto-font-size-xl);
    font-weight: 700;
    color: var(--crypto-text-primary);
}

.wsp-hero-metric-value .icon {
    color: var(--crypto-accent-400);
    width: 20px;
    height: 20px;
}

.wsp-hero-metric-label {
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Repo Snapshot Count
   -------------------------------------------------------------------------- */

.wsp-repo-snapshots {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--crypto-text-muted);
    font-size: var(--crypto-font-size-xs);
}

/* --------------------------------------------------------------------------
   Section Wrappers
   -------------------------------------------------------------------------- */

.wsp-section {
    margin-bottom: 3rem;
}

.wsp-hero+.wsp-section {
    margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */

.wsp-section-header {
    margin-bottom: 2rem;
    position: relative;
}

.wsp-section-title {
    font-size: var(--crypto-font-size-xl);
    font-weight: 700;
    color: var(--crypto-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.wsp-section-subtitle {
    color: var(--crypto-text-muted);
    font-size: var(--crypto-font-size-sm);
    margin-bottom: 0;
}

.wsp-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--crypto-gradient-tech);
    margin-top: 0.75rem;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.wsp-section-header:hover::after {
    width: 100px;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.wsp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wsp-reveal.wsp-visible {
    opacity: 1;
    transform: translateY(0);
}

.wsp-stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.wsp-stagger>*:nth-child(2) {
    transition-delay: 0.08s;
}

.wsp-stagger>*:nth-child(3) {
    transition-delay: 0.08s;
}

.wsp-stagger>*:nth-child(4) {
    transition-delay: 0.16s;
}

.wsp-stagger>*:nth-child(5) {
    transition-delay: 0.24s;
}

.wsp-stagger>*:nth-child(6) {
    transition-delay: 0.32s;
}

.wsp-stagger>*:nth-child(7) {
    transition-delay: 0.40s;
}

.wsp-stagger>*:nth-child(8) {
    transition-delay: 0.48s;
}

.wsp-stagger>*:nth-child(9) {
    transition-delay: 0.56s;
}

.wsp-stagger>*:nth-child(10) {
    transition-delay: 0.64s;
}

.wsp-stagger>*:nth-child(11) {
    transition-delay: 0.72s;
}

.wsp-stagger>*:nth-child(12) {
    transition-delay: 0.80s;
}

/* --------------------------------------------------------------------------
   Repo Cards
   -------------------------------------------------------------------------- */

.wsp-repo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--crypto-border-default);
    border-radius: var(--crypto-radius-md);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s ease;
}

[data-bs-theme="dark"] .wsp-repo-card {
    background: var(--crypto-bg-elevated);
}

[data-bs-theme="light"] .wsp-repo-card {
    background: #fff;
}

/* Gradient top border on hover */
.wsp-repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--crypto-gradient-tech);
    border-radius: var(--crypto-radius-md) var(--crypto-radius-md) 0 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wsp-repo-card:hover {
    transform: translateY(-3px);
    border-color: var(--crypto-accent-alpha-30);
    box-shadow:
        var(--crypto-shadow-md),
        var(--crypto-glow-accent-sm);
}

.wsp-repo-card:hover::before {
    opacity: 1;
}

/* Invisible overlay link — makes the entire card clickable */
.wsp-repo-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wsp-repo-card-body {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.wsp-repo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--crypto-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    background: var(--crypto-gradient-tech);
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.wsp-repo-info {
    flex-grow: 1;
    min-width: 0;
}

.wsp-repo-name {
    font-size: var(--crypto-font-size-base);
    font-weight: 600;
    color: var(--crypto-text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.wsp-repo-card:hover .wsp-repo-name {
    color: var(--crypto-accent-400);
}

.wsp-repo-name a {
    color: inherit;
    text-decoration: none;
}

.wsp-repo-desc {
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.5;
}

.wsp-repo-desc--empty {
    font-style: italic;
    color: var(--crypto-text-muted);
}

.wsp-repo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem -1.25rem -1.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--crypto-border-default);
    font-size: var(--crypto-font-size-sm);
}

.wsp-repo-external {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--crypto-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsp-repo-external:hover {
    color: var(--crypto-accent-400);
}

/* --------------------------------------------------------------------------
   Activity Items
   -------------------------------------------------------------------------- */

.wsp-activity-item {
    padding: 1.25rem;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wsp-activity-item:hover {
    background: var(--crypto-bg-hover);
    border-left-color: var(--crypto-accent-500);
}

.wsp-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--crypto-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Search Toolbar & Pagination
   -------------------------------------------------------------------------- */

.wsp-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wsp-toolbar .wsp-search {
    flex: 0 1 280px;
}

.wsp-toolbar-count {
    margin-left: auto;
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-muted);
}

.wsp-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .wsp-hero {
        padding: 6rem 0 2rem;
    }

    /* Stack avatar above name/stats and center everything */
    .wsp-hero .wsp-hero-inner > .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wsp-hero .wsp-hero-inner > .row > .col-auto {
        width: auto;
        margin-bottom: 0.75rem;
    }

    .wsp-hero .wsp-hero-inner > .row > .col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wsp-hero .wsp-hero-inner .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }

    .wsp-hero-meta {
        justify-content: center;
    }

    .wsp-hero-metrics {
        justify-content: center;
        gap: 1rem;
    }

    .wsp-hero-metric-value {
        font-size: var(--crypto-font-size-lg);
    }

    .wsp-hero-title {
        font-size: var(--crypto-font-size-2xl);
    }

    .wsp-avatar {
        width: 80px;
        height: 80px;
    }

    .wsp-hero-glow--primary {
        width: 200px;
        height: 200px;
    }

    .wsp-hero-glow--secondary {
        width: 150px;
        height: 150px;
    }

    .wsp-section {
        margin-bottom: 2rem;
    }

    .wsp-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wsp-toolbar .wsp-search {
        flex: 1;
    }

    .wsp-toolbar-count {
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Minimal Public Footer
   -------------------------------------------------------------------------- */

.wsp-footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--crypto-border-default);
}

.wsp-footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wsp-footer-logo {
    flex-shrink: 0;
}

.wsp-footer-links {
    display: flex;
    gap: 1.25rem;
    font-size: var(--crypto-font-size-sm);
}

.wsp-footer-links a {
    color: var(--crypto-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsp-footer-links a:hover {
    color: var(--crypto-accent-400);
}

.wsp-footer-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.wsp-footer-social {
    display: flex;
    gap: 0.625rem;
}

.wsp-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--crypto-radius-full);
    border: 1px solid var(--crypto-border-default);
    color: var(--crypto-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wsp-footer-social a:hover {
    color: var(--crypto-accent-400);
    border-color: var(--crypto-accent-alpha-30);
}

.wsp-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    white-space: nowrap;
}

.wsp-footer-divider {
    color: var(--crypto-text-muted);
    opacity: 0.5;
}

/* ── Footer Responsive ──────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .wsp-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .wsp-footer-end {
        margin-left: 0;
        flex-direction: column;
        gap: 0.75rem;
    }

    .wsp-footer-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Explore / Mind Hive
   /w — public workspace exploration
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hive Container
   -------------------------------------------------------------------------- */

.explore-hive {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: var(--crypto-radius-lg);
    overflow: hidden;
    cursor: grab;
}

/* --------------------------------------------------------------------------
   Hive Zoom Controls
   -------------------------------------------------------------------------- */

.hive-zoom-controls {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-radius: var(--crypto-radius-md);
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.hive-zoom-controls:hover {
    opacity: 1;
}

.hive-zoom-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

[data-bs-theme="dark"] .hive-zoom-btn {
    background: rgba(20, 19, 28, 0.85);
    color: var(--crypto-text-secondary);
}

[data-bs-theme="light"] .hive-zoom-btn {
    background: rgba(255, 255, 255, 0.85);
    color: var(--crypto-text-secondary);
}

.hive-zoom-btn:hover {
    color: var(--crypto-accent-400);
}

[data-bs-theme="dark"] .hive-zoom-btn:hover {
    background: rgba(30, 29, 40, 0.95);
}

[data-bs-theme="light"] .hive-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] .explore-hive {
    background: radial-gradient(ellipse at 50% 40%,
            rgba(120, 121, 246, 0.06) 0%,
            var(--crypto-bg-primary) 70%);
    border: 1px solid var(--crypto-border-glass);
}

[data-bs-theme="light"] .explore-hive {
    background: radial-gradient(ellipse at 50% 40%,
            rgba(120, 121, 246, 0.06) 0%,
            #ffffff 70%);
    border: 1px solid rgba(100, 100, 160, 0.14);
}

.explore-hive-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.explore-hive-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hive Nodes (HTML elements positioned absolutely)
   -------------------------------------------------------------------------- */

.hive-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    will-change: transform;
}

.hive-node:hover {
    transform: scale(1.12) !important;
    z-index: 10;
}

.hive-node.hive-dimmed {
    opacity: 0.15;
    pointer-events: none;
}

.hive-node-ring {
    position: relative;
    border-radius: 50%;
    border: 2px solid var(--crypto-accent-alpha-20);
    padding: 3px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hive-node:hover .hive-node-ring {
    border-color: var(--crypto-accent-500);
    box-shadow: var(--crypto-glow-accent-sm);
}

.hive-node-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hive-node-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--crypto-gradient-tech);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.hive-node-label {
    margin-top: 6px;
    font-size: var(--crypto-font-size-xs);
    font-weight: 500;
    color: var(--crypto-text-secondary);
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: color 0.2s ease;
}

.hive-node:hover .hive-node-label {
    color: var(--crypto-accent-400);
}

.hive-node-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--crypto-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   Hive Tooltip (shows on hover)
   -------------------------------------------------------------------------- */

.hive-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    padding: 0.875rem 1rem;
    border-radius: var(--crypto-radius-md);
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hive-tooltip.hive-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

[data-bs-theme="dark"] .hive-tooltip {
    background: rgba(20, 19, 28, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--crypto-border-glass);
    box-shadow: var(--crypto-shadow-lg);
}

[data-bs-theme="light"] .hive-tooltip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--crypto-border-default);
    box-shadow: var(--crypto-shadow-lg);
}

.hive-tooltip-name {
    font-weight: 600;
    color: var(--crypto-text-primary);
    margin-bottom: 0.125rem;
}

.hive-tooltip-login {
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    margin-bottom: 0.5rem;
}

.hive-tooltip-desc {
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hive-tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
}

.hive-tooltip-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hive-tooltip-stat .icon {
    opacity: 0.6;
    flex-shrink: 0;
}

.hive-tooltip-stat strong {
    color: var(--crypto-text-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Explore Search (hero-level search)
   -------------------------------------------------------------------------- */

.explore-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.explore-search-wrap .explore-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crypto-text-muted);
    pointer-events: none;
    z-index: 2;
}

.explore-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: var(--crypto-radius-full);
    font-size: var(--crypto-font-size-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .explore-search-input {
    background: var(--crypto-glass-light);
    border: 1px solid var(--crypto-border-glass);
    color: var(--crypto-text-primary);
}

[data-bs-theme="light"] .explore-search-input {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(100, 100, 160, 0.16);
    color: var(--crypto-text-primary);
}

.explore-search-input:focus {
    outline: none;
    border-color: var(--crypto-accent-500);
    box-shadow: var(--crypto-glow-accent-sm);
}

.explore-search-input::placeholder {
    color: var(--crypto-text-muted);
}

/* --------------------------------------------------------------------------
   Explore Autocomplete Dropdown
   -------------------------------------------------------------------------- */

.explore-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.375rem;
    border-radius: var(--crypto-radius-md);
    overflow: hidden;
    z-index: 30;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}

.explore-autocomplete.is-open {
    display: block;
}

[data-bs-theme="dark"] .explore-autocomplete {
    background: rgba(20, 19, 28, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--crypto-border-glass);
    box-shadow: var(--crypto-shadow-lg);
}

[data-bs-theme="light"] .explore-autocomplete {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--crypto-border-default);
    box-shadow: var(--crypto-shadow-lg);
}

.explore-ac-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    cursor: pointer;
}

.explore-ac-item:hover,
.explore-ac-item.is-active {
    background: var(--crypto-bg-hover);
}

.explore-ac-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--crypto-accent-alpha-20);
}

.explore-ac-item-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--crypto-gradient-tech);
    color: #fff;
    flex-shrink: 0;
}

.explore-ac-item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.explore-ac-item-name {
    font-weight: 600;
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-ac-item-login {
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
}

.explore-ac-item-stats {
    display: flex;
    gap: 0.625rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    flex-shrink: 0;
}

.explore-ac-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    border-top: 1px solid var(--crypto-border-default);
    cursor: pointer;
    transition: color 0.15s ease;
}

.explore-ac-footer:hover {
    color: var(--crypto-accent-400);
}

.explore-ac-empty {
    padding: 1rem;
    text-align: center;
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-muted);
}

/* --------------------------------------------------------------------------
   Explore Workspace Cards (grid below hive)
   -------------------------------------------------------------------------- */

.explore-ws-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--crypto-border-default);
    border-radius: var(--crypto-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s ease;
}

[data-bs-theme="dark"] .explore-ws-card {
    background: var(--crypto-bg-elevated);
}

[data-bs-theme="light"] .explore-ws-card {
    background: #fff;
}

.explore-ws-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--crypto-gradient-tech);
    border-radius: var(--crypto-radius-md) var(--crypto-radius-md) 0 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.explore-ws-card:hover {
    transform: translateY(-3px);
    border-color: var(--crypto-accent-alpha-30);
    box-shadow: var(--crypto-shadow-md), var(--crypto-glow-accent-sm);
    color: inherit;
}

.explore-ws-card:hover::before {
    opacity: 1;
}

.explore-ws-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--crypto-accent-alpha-20);
}

.explore-ws-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--crypto-gradient-tech);
    color: #fff;
    flex-shrink: 0;
}

.explore-ws-info {
    flex: 1;
    min-width: 0;
}

.explore-ws-name {
    font-weight: 600;
    color: var(--crypto-text-primary);
    margin-bottom: 0.125rem;
    transition: color 0.2s ease;
}

.explore-ws-card:hover .explore-ws-name {
    color: var(--crypto-accent-400);
}

.explore-ws-login {
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
    font-family: var(--crypto-font-mono);
}

.explore-ws-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-muted);
}

.explore-ws-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.explore-ws-stat .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Header Search (compact, public views)
   -------------------------------------------------------------------------- */

/* Hide header search on the Explore page (hero search handles it) */
#zf-page-wrapper:has(#explore-search) .header-search {
    display: none;
}

.header-search {
    position: relative;
}

.header-search-input {
    width: 200px;
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    border-radius: var(--crypto-radius-full);
    font-size: var(--crypto-font-size-sm);
    transition: width 0.3s ease, border-color 0.2s ease;
}

[data-bs-theme="dark"] .header-search-input {
    background: var(--crypto-glass-light);
    border: 1px solid var(--crypto-border-glass);
    color: var(--crypto-text-primary);
}

[data-bs-theme="light"] .header-search-input {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 100, 160, 0.14);
    color: var(--crypto-text-primary);
}

.header-search-input:focus {
    width: 280px;
    outline: none;
    border-color: var(--crypto-accent-500);
}

.header-search-input::placeholder {
    color: var(--crypto-text-muted);
}

.header-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crypto-text-muted);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Explore Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .explore-hive {
        min-height: 380px;
    }

    .header-search-input {
        width: 140px;
    }

    .header-search-input:focus {
        width: 180px;
    }
}

/* ==========================================================================
   Page Hero (private/authenticated workspace views)
   ========================================================================== */

.wsp-hero--page {
    padding: 8rem 0 2rem;
    margin-bottom: 1.5rem;
}

/* No fade-up animations for private/page views */
.wsp-hero--page .wsp-hero-title,
.wsp-hero--page .wsp-hero-desc,
.wsp-hero--page .wsp-hero-meta,
.wsp-hero--page .wsp-hero-badge,
.wsp-hero--page .wsp-hero-pretitle {
    animation: none;
}

.wsp-hero--page .wsp-hero-title {
    font-size: var(--crypto-font-size-2xl);
    margin-bottom: 0;
}

.wsp-hero-pretitle {
    font-size: var(--crypto-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--crypto-accent-400);
    margin-bottom: 0.25rem;
}

[data-bs-theme="light"] .wsp-hero-pretitle {
    color: var(--crypto-accent-600);
}

.wsp-hero--page .wsp-hero-desc {
    font-size: var(--crypto-font-size-sm);
    color: var(--crypto-text-tertiary);
    max-width: none;
    margin-bottom: 0;
}

.wsp-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.wsp-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--crypto-font-size-xs);
    color: var(--crypto-text-tertiary);
}

.wsp-hero-feature i {
    font-size: 1rem;
    color: var(--crypto-accent-400);
    opacity: 0.7;
}

/* Terminal card inside hero */
.wsp-hero--page .card-terminal {
    margin-bottom: 0;
    font-size: var(--crypto-font-size-xs);
}

/* Actions button styling inside hero */
.wsp-hero--page .btn-primary {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .wsp-hero--page {
        padding: 6.5rem 0 1.5rem;
    }

    .wsp-hero--page .wsp-hero-title {
        font-size: var(--crypto-font-size-xl);
    }

    .wsp-hero-features {
        gap: 0.75rem;
    }

    .wsp-hero-feature {
        font-size: 0.7rem;
    }
}