:root {
    --hcp-bg: #0a0a0f;
    --hcp-bg-card: rgba(15, 15, 25, 0.85);
    --hcp-bg-glass: rgba(255, 255, 255, 0.03);
    --hcp-cyan: #06d6f2;
    --hcp-magenta: #e040fb;
    --hcp-violet: #8b5cf6;
    --hcp-gold: #f5a623;
    --hcp-warm: #ffcf8b;
    --hcp-text: #e8e6e3;
    --hcp-text-muted: #8a8a9a;
    --hcp-border: rgba(255, 255, 255, 0.06);
    --hcp-glow-cyan: 0 0 30px rgba(6, 214, 242, 0.3);
    --hcp-glow-magenta: 0 0 30px rgba(224, 64, 251, 0.3);
    --hcp-glow-gold: 0 0 30px rgba(245, 166, 35, 0.3);
    --hcp-gradient-neon: linear-gradient(135deg, var(--hcp-cyan), var(--hcp-magenta), var(--hcp-violet));
    --hcp-gradient-warm: linear-gradient(135deg, var(--hcp-gold), var(--hcp-magenta));
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body, .wp-site-blocks {
    background: var(--hcp-bg) !important;
    color: var(--hcp-text) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    overflow-x: hidden;
}

::selection {
    background: var(--hcp-magenta);
    color: #fff;
}

/* ── Animated background grid ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(6, 214, 242, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 214, 242, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ── Ambient glow orbs ── */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 214, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(60vw, 30vh); }
    50% { transform: translate(40vw, 70vh); }
    75% { transform: translate(10vw, 40vh); }
}

.wp-site-blocks {
    position: relative;
    z-index: 1;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    color: #fff !important;
}

h1, .wp-block-heading:where(:first-child) {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.hcp-forum-sidebar .wp-block-heading {
    font-size: 1rem !important;
    margin-bottom: 1rem;
}

/* ── Neon text glow effect ── */
.hcp-neon-text,
.wp-block-site-title a {
    background: var(--hcp-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(6, 214, 242, 0.4));
}

/* ── Glitch effect for main headings ── */
.hcp-glitch {
    position: relative;
    animation: glitchShift 5s infinite;
}

.hcp-glitch::before,
.hcp-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hcp-glitch::before {
    color: var(--hcp-cyan);
    animation: glitchLeft 3s infinite;
    clip-path: inset(0 0 50% 0);
    -webkit-text-fill-color: initial;
    background: none;
    opacity: 0.6;
}

.hcp-glitch::after {
    color: var(--hcp-magenta);
    animation: glitchRight 2.5s infinite;
    clip-path: inset(50% 0 0 0);
    -webkit-text-fill-color: initial;
    background: none;
    opacity: 0.6;
}

@keyframes glitchLeft {
    0%, 92%, 100% { transform: translate(0); }
    93% { transform: translate(-4px, 1px); }
    95% { transform: translate(2px, -1px); }
    97% { transform: translate(-1px, 2px); }
}

@keyframes glitchRight {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(3px, -1px); }
    93% { transform: translate(-2px, 2px); }
    96% { transform: translate(4px, 1px); }
}

@keyframes glitchShift {
    0%, 95%, 100% { text-shadow: none; }
    96% { text-shadow: -2px 0 var(--hcp-cyan), 2px 0 var(--hcp-magenta); }
    97% { text-shadow: 2px 0 var(--hcp-cyan), -2px 0 var(--hcp-magenta); }
}

/* ── Hero Section ── */
.hcp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hcp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(6, 214, 242, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(224, 64, 251, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 166, 35, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hcp-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem) !important;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hcp-hero .hcp-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--hcp-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ── Scroll indicator ── */
.hcp-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hcp-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hcp-scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--hcp-cyan), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Glass Cards ── */
.hcp-card {
    background: var(--hcp-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hcp-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hcp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--hcp-gradient-neon);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hcp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 214, 242, 0.2);
    box-shadow: var(--hcp-glow-cyan);
}

.hcp-card:hover::before {
    opacity: 1;
}

/* ── Section styling ── */
.hcp-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hcp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hcp-section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    margin-bottom: 0.5rem;
}

.hcp-section-header p {
    color: var(--hcp-text-muted);
    font-size: 1.1rem;
}

/* ── Neon divider ── */
.hcp-divider {
    height: 2px;
    background: var(--hcp-gradient-neon);
    border: none;
    margin: 0 auto;
    max-width: 200px;
    border-radius: 2px;
    box-shadow: var(--hcp-glow-cyan);
}

/* ── Grid layouts ── */
.hcp-grid {
    display: grid;
    gap: 1.5rem;
}

.hcp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hcp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hcp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Member cards ── */
.hcp-member {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.hcp-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid transparent;
    background: var(--hcp-gradient-neon) border-box;
    padding: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--hcp-glow-cyan);
}

.hcp-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hcp-member h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem;
    background: var(--hcp-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hcp-member .hcp-role {
    color: var(--hcp-text-muted);
    font-size: 0.9rem;
}

/* ── Buttons ── */
.hcp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.hcp-btn-primary {
    background: var(--hcp-gradient-neon);
    color: #0a0a0f;
}

.hcp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hcp-glow-cyan), var(--hcp-glow-magenta);
}

.hcp-btn-outline {
    background: transparent;
    border: 1px solid var(--hcp-cyan);
    color: var(--hcp-cyan);
}

.hcp-btn-outline:hover {
    background: rgba(6, 214, 242, 0.1);
    box-shadow: var(--hcp-glow-cyan);
    color: #fff;
}

/* ── Video embed styling ── */
.hcp-video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hcp-border);
    box-shadow: var(--hcp-glow-magenta);
    transition: box-shadow 0.4s ease;
}

.hcp-video-wrap:hover {
    box-shadow: var(--hcp-glow-cyan), var(--hcp-glow-magenta);
}

.hcp-video-wrap iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ── Content cards (poems, music etc.) ── */
.hcp-content-card {
    position: relative;
}

.hcp-content-card .hcp-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hcp-tag-music {
    background: rgba(224, 64, 251, 0.15);
    color: var(--hcp-magenta);
    border: 1px solid rgba(224, 64, 251, 0.3);
}

.hcp-tag-poem {
    background: rgba(6, 214, 242, 0.15);
    color: var(--hcp-cyan);
    border: 1px solid rgba(6, 214, 242, 0.3);
}

.hcp-tag-video {
    background: rgba(245, 166, 35, 0.15);
    color: var(--hcp-gold);
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.hcp-tag-ai {
    background: rgba(139, 92, 246, 0.15);
    color: var(--hcp-violet);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ── CTA / Join section ── */
.hcp-cta {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    background:
        radial-gradient(ellipse at center, rgba(224, 64, 251, 0.08) 0%, transparent 60%);
}

.hcp-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    margin-bottom: 1rem;
}

.hcp-cta p {
    color: var(--hcp-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ── Scroll reveal animations ── */
.hcp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hcp-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hcp-reveal-left.hcp-visible {
    opacity: 1;
    transform: translateX(0);
}

.hcp-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hcp-reveal-right.hcp-visible {
    opacity: 1;
    transform: translateX(0);
}

/* stagger children */
.hcp-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hcp-stagger.hcp-visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.hcp-stagger.hcp-visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.hcp-stagger.hcp-visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.hcp-stagger.hcp-visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }
.hcp-stagger.hcp-visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* ── Particle canvas (behind hero) ── */
#hcp-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Navigation / Header overrides ── */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
    color: var(--hcp-text) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease !important;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
    color: var(--hcp-cyan) !important;
    text-shadow: 0 0 10px rgba(6, 214, 242, 0.5);
}

header, .wp-block-template-part:first-child {
    background: rgba(10, 10, 15, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hcp-border) !important;
}

/* ── Footer ── */
footer, .wp-block-template-part:last-child {
    background: rgba(5, 5, 10, 0.95) !important;
    border-top: 1px solid var(--hcp-border) !important;
    color: var(--hcp-text-muted) !important;
}

footer h6, .wp-block-template-part:last-child h6 {
    font-size: 0.85rem !important;
    letter-spacing: 0.15em;
}

footer .wp-block-site-title, .wp-block-template-part:last-child .wp-block-site-title {
    font-size: 1.3rem !important;
}

footer .wp-block-site-title a {
    font-size: 1.3rem !important;
}

footer a {
    color: var(--hcp-cyan) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--hcp-magenta) !important;
}

/* ── WP Block overrides ── */
.wp-block-group,
.wp-block-cover {
    color: var(--hcp-text);
}

.wp-block-separator {
    border-color: var(--hcp-border) !important;
}

.wp-block-quote {
    border-left-color: var(--hcp-cyan) !important;
    padding-left: 1.5rem;
    color: var(--hcp-text-muted);
    font-style: italic;
}

.wp-block-quote cite {
    color: var(--hcp-gold);
}

/* Links */
.wp-site-blocks a:not(.hcp-btn):not(.wp-block-navigation-item__content) {
    color: var(--hcp-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-site-blocks a:not(.hcp-btn):not(.wp-block-navigation-item__content):hover {
    color: var(--hcp-magenta);
}

/* ── Forum layout ── */
.hcp-forum-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .hcp-forum-layout {
        grid-template-columns: 1fr;
    }
}

.hcp-forum-sidebar {
    position: sticky;
    top: 80px;
}

.hcp-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hcp-cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--hcp-text-muted) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hcp-cat-link:hover {
    background: var(--hcp-bg-glass);
    color: var(--hcp-text) !important;
}

.hcp-cat-link.hcp-cat-active {
    background: rgba(6, 214, 242, 0.1);
    color: var(--hcp-cyan) !important;
    border-left: 2px solid var(--hcp-cyan);
}

/* ── Tag Cloud ── */
.hcp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hcp-tag-cloud a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    background: var(--hcp-bg-glass);
    border: 1px solid var(--hcp-border);
    color: var(--hcp-text-muted) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hcp-tag-cloud a:hover {
    border-color: var(--hcp-cyan);
    color: var(--hcp-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 214, 242, 0.2);
}

/* ── Forum post cards ── */
.hcp-forum-main .hcp-post-card {
    margin-bottom: 1rem;
}

.hcp-post-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
}

.hcp-post-card:hover {
    border-color: rgba(224, 64, 251, 0.2);
    box-shadow: var(--hcp-glow-magenta);
}

.hcp-post-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--hcp-bg-glass);
}

.hcp-post-info {
    flex: 1;
    min-width: 0;
}

.hcp-post-info h3 {
    font-size: 1rem !important;
    margin-bottom: 0.3rem;
}

.hcp-post-info h3 a {
    color: #fff !important;
    text-decoration: none !important;
}

.hcp-post-info h3 a:hover {
    color: var(--hcp-cyan) !important;
}

.hcp-post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--hcp-text-muted);
    margin-bottom: 0.4rem;
}

.hcp-post-excerpt {
    color: var(--hcp-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ── Inline audio/video player in post cards ── */
.hcp-card .wp-block-audio,
.hcp-card .wp-block-video {
    margin: 0.75rem 0 0.25rem;
}

.hcp-card .wp-block-audio audio {
    width: 100%;
    height: 40px;
}

.hcp-card .wp-block-audio figcaption,
.hcp-card .wp-block-video figcaption {
    font-size: 0.75rem;
    color: var(--hcp-text-muted);
    margin-top: 0.25rem;
}

.hcp-card .wp-block-post-content p {
    color: var(--hcp-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ── WP default blog/archive override for forum style ── */
body.blog .wp-block-post-template,
body.archive .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.blog .wp-block-post,
body.archive .wp-block-post {
    background: var(--hcp-bg-card);
    border: 1px solid var(--hcp-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

body.blog .wp-block-post:hover,
body.archive .wp-block-post:hover {
    border-color: rgba(6, 214, 242, 0.2);
    box-shadow: var(--hcp-glow-cyan);
}

body.blog .wp-block-post-title a,
body.archive .wp-block-post-title a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
}

body.blog .wp-block-post-title a:hover,
body.archive .wp-block-post-title a:hover {
    color: var(--hcp-cyan) !important;
}

body.blog .wp-block-post-date,
body.archive .wp-block-post-date {
    color: var(--hcp-text-muted);
    font-size: 0.8rem;
}

body.blog .wp-block-post-excerpt,
body.archive .wp-block-post-excerpt {
    color: var(--hcp-text-muted);
    font-size: 0.9rem;
}

/* Category/tag archive headers */
body.archive .wp-block-query-title {
    font-family: 'Orbitron', sans-serif !important;
    background: var(--hcp-gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WP Tag Cloud widget styling */
.wp-block-tag-cloud a,
.tagcloud a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem !important;
    background: var(--hcp-bg-glass);
    border: 1px solid var(--hcp-border);
    color: var(--hcp-text-muted) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin: 0.15rem;
}

.wp-block-tag-cloud a:hover,
.tagcloud a:hover {
    border-color: var(--hcp-cyan);
    color: var(--hcp-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 214, 242, 0.2);
}

/* ── Hide page title on frontpage ── */
body.page .wp-block-post-title,
body.page .entry-title {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hcp-section {
        padding: 3rem 1rem;
    }
    .hcp-hero {
        min-height: 80vh;
    }
    .hcp-card {
        padding: 1.5rem;
    }
    .hcp-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
