/*
Theme Name: Open Research Assembly
Theme URI: https://ai.studio
Author: AI Studio
Description: A WordPress theme for the First Global Interspecies Congress.
Version: 9.4
*/

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(85, 214, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(216, 255, 98, 0.14), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(144, 246, 201, 0.12), transparent 26%),
    linear-gradient(180deg, #08151c 0%, #040b10 48%, #02070b 100%);
  background-attachment: fixed;
  color: #edf8f6;
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(11,36,46,.82), rgba(5,15,20,.92));
  border: 1px solid rgba(148, 243, 199, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.glass-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.text-gradient {
  background: linear-gradient(135deg, #90f6c9 0%, #55d6ff 45%, #d8ff62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-solid {
  background: rgba(144, 246, 201, 0.1);
  color: #90f6c9;
  border: 1px solid rgba(144, 246, 201, 0.3);
  box-shadow: 0 0 15px rgba(144, 246, 201, 0.15), inset 0 0 10px rgba(144, 246, 201, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-solid:hover { 
  transform: translateY(-2px);
  background: rgba(144, 246, 201, 0.15);
  border-color: rgba(144, 246, 201, 0.6);
  box-shadow: 0 0 25px rgba(144, 246, 201, 0.3), inset 0 0 15px rgba(144, 246, 201, 0.1);
  text-shadow: 0 0 8px rgba(144, 246, 201, 0.5);
}

.btn-ghost {
  background: rgba(85, 214, 255, 0.05);
  border: 1px solid rgba(85, 214, 255, 0.2);
  color: #55d6ff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-ghost:hover { 
  transform: translateY(-2px); 
  background: rgba(85, 214, 255, 0.1);
  border-color: rgba(85, 214, 255, 0.5);
  box-shadow: 0 0 25px rgba(85, 214, 255, 0.25), inset 0 0 15px rgba(85, 214, 255, 0.1);
  text-shadow: 0 0 8px rgba(85, 214, 255, 0.5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: #90f6c9;
  margin-bottom: 22px;
  text-shadow: 0 0 10px rgba(144, 246, 201, 0.3);
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #90f6c9);
  box-shadow: 0 0 5px #90f6c9;
}

.nav-link {
  color: #9bb7b3;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-link:hover {
  color: #edf8f6;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.05);
}
.nav-link.active {
  color: #55d6ff;
  background: rgba(85, 214, 255, 0.08);
  border-color: rgba(85, 214, 255, 0.3);
  box-shadow: 0 0 20px rgba(85, 214, 255, 0.15), inset 0 0 10px rgba(85, 214, 255, 0.05);
  text-shadow: 0 0 8px rgba(85, 214, 255, 0.4);
  font-weight: 500;
}
.nav-link svg {
  opacity: 0.6;
  transition: all .25s ease;
}
.nav-link:hover svg {
  opacity: 0.9;
}
.nav-link.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(85, 214, 255, 0.6));
}

/* Comment Tree Structure */
.children {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px dashed rgba(255,255,255,0.08);
  margin-top: 1.5rem;
}
.children > .comment {
  margin-bottom: 1.5rem;
}
.children > .comment:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .children {
    margin-left: 3rem;
    padding-left: 2rem;
  }
}

/* Latest Comments Custom Styling */
.wp-block-latest-comments {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
}

.wp-block-latest-comments__comment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.wp-block-latest-comments__comment:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(85, 214, 255, 0.2);
}

.wp-block-latest-comments .avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.wp-block-latest-comments article {
  flex: 1;
  margin-bottom: 0 !important;
}

.wp-block-latest-comments__comment-meta {
  font-size: 0.95rem;
  color: #edf8f6;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.wp-block-latest-comments__comment-author {
  font-weight: 600;
  color: #edf8f6;
  text-decoration: none;
  transition: color 0.25s ease;
}

.wp-block-latest-comments__comment-author:hover {
  color: #55d6ff;
}

.wp-block-latest-comments__comment-link {
  color: #edf8f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.wp-block-latest-comments__comment-link:hover {
  color: #55d6ff;
}

.wp-block-latest-comments__comment-date {
  display: block;
  font-size: 0.75rem;
  color: #9bb7b3;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.wp-block-latest-comments__comment-excerpt {
  font-size: 0.9rem;
  color: #9bb7b3;
  line-height: 1.6;
}

.wp-block-latest-comments__comment-excerpt p {
  margin: 0;
}

/* Style the native WP Reply links to match our theme */
a.comment-reply-login,
a.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem; 
  font-weight: 600; 
  color: #55d6ff;
  background-color: rgba(255, 255, 255, 0.05); /* bg-white/5 */
  padding: 0.25rem 0.75rem; /* py-1 px-3 */
  border-radius: 9999px; /* rounded-full */
  transition: all 0.3s ease;
  text-decoration: none;
}

a.comment-reply-login:hover,
a.comment-reply-link:hover {
  background-color: rgba(255, 255, 255, 0.1); /* hover:bg-white/10 */
  color: #90f6c9; /* hover:text-[#90f6c9] */
}

/* Live Stats Ticker */
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-anim 30s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-anim {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.33333%, 0, 0);
  }
}

/* Reddit-style Nested Threading */
.comment-list .children {
  margin-top: 0.5rem;
  margin-left: 0; /* Tightest possible for mobile */
  padding-left: 0.5rem; /* tiny 8px padding */
  border-left: 1px solid rgba(255, 255, 255, 0.05); /* very subtle 1px line */
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .comment-list .children {
    margin-left: 0.75rem;
    padding-left: 1rem;
    border-left-width: 2px;
  }
}

.comment-list > .comment {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

/* Hover effect highlights the current branch line */
.comment-list .children:hover {
  border-color: rgba(85, 214, 255, 0.3); /* neo-cyan hint */
}
