/* Cyberpunk UI Interface Styles */
.character-container {
  margin-top: 2em;
  margin-bottom: 2em;
  position: relative;
  width: 100%;
}
/* Ensure cyberpunk interface elements are always visible - but exclude menu and footer */
.cyberpunk-interface,
.cyberpunk-interface .ui-top-row,
.cyberpunk-interface .ui-top-row *,
.cyberpunk-interface .ui-main-content,
.cyberpunk-interface .ui-main-content *,
.cyberpunk-interface .ui-portrait-section,
.cyberpunk-interface .ui-portrait-section *,
.cyberpunk-interface .ui-data-panel,
.cyberpunk-interface .ui-data-panel *,
.cyberpunk-interface .ui-text-panel,
.cyberpunk-interface .ui-text-panel *,
.cyberpunk-interface .ui-bottom-row,
.cyberpunk-interface .ui-bottom-row *,
.cyberpunk-interface .ui-radar-display,
.cyberpunk-interface .ui-radar-display * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Specific display overrides for cyberpunk elements only */
.cyberpunk-interface .ui-main-content {
  display: grid !important;
}

.cyberpunk-interface .ui-top-row,
.cyberpunk-interface .ui-bottom-row {
  display: flex !important;
}

.cyberpunk-interface .ui-portrait-section {
  display: flex !important;
}

.cyberpunk-interface .ui-data-panel,
.cyberpunk-interface .ui-text-panel {
  display: block !important;
}

.cyberpunk-interface .ui-radar-display {
  display: flex !important;
}

.cyberpunk-interface {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.cyberpunk-interface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid overlay */
.cyberpunk-interface::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

/* Top UI Row */
.ui-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 40px;
}

.ui-control-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ui-control-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.control-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.control-label {
  font-size: 10px;
  color: white;
  text-align: center;
  font-family: 'Tx 02', monospace;
  letter-spacing: 1px;
}

.ui-center-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Main Content Area */
.ui-main-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  min-height: 60vh;
}

/* Portrait Section */
.image-card {
  border: .2px solid var(--swatch--dark-secondary);
  border-radius: var(--size--4-5rem) var(--radius--small);
  opacity: 1;
  object-fit: cover;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Top-right icon column */
.icons {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(251, 254, 255, 0.5);
}

.icon img {
  width: 30px;
  height: 30px;
  filter: invert(70%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

/* LENA text */
.title {
  position: absolute;
  bottom: 20px;
  left: 15px;
  padding: 10px 20px;
  background: linear-gradient(to right, rgba(0, 30, 60, 0.8), rgba(0, 100, 200, 0.8));
  border-radius: 12px;
  color: white;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.7);
}

.ui-portrait-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-container {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-card {
  border: .2px solid var(--swatch--dark-secondary);
  border-radius: var(--size--4-5rem) var(--radius--small);
  opacity: 1;
  background-color: #0006;
  width: 25rem;
  height: 35rem;
}

.portrait-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
}

.portrait-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7) contrast(1.2);
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.portrait-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 255, 255, 0.1) 50%,
      rgba(255, 0, 255, 0.1) 100%);
}

.neural-interface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.circuit-lines {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--size--4-5rem) var(--radius--small);
}

.circuit-lines::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
}

.glow-effects {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.name-text {
  font-size: 4.5rem;
  color: white;
  font-family: Xirod, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
}

.name-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgb(0 0 0 / 47%);
  padding: 30px;
  border-radius: 1.7425rem 0;
  border: 0.929px solid var(--gradients-white-transparent-2, rgba(255, 255, 255, 0.20));
  background: var(--gradients-white-transparent-05, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 1.859px 0 #3D1B72 inset;
  backdrop-filter: blur(18.58672332763672px);
  width: 90%;
}

.side-icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.icon-item {
  width: 50px;
  height: 50px;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.icon-item img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
  transition: all 0.3s ease;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 0.929px solid rgba(255, 255, 255, 0.785);
  border-radius: 0 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 0 1.859px 0 #f8f7fa inset;
}

/* Data Panel */
.ui-data-panel {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-title {
  font-size: 14px;
  color: white;
  font-family: 'Tx 02', monospace;
  font-weight: 600;
  letter-spacing: 1px;
}

.data-id {
  font-size: 12px;
  color: rgba(0, 255, 255, 0.8);
  font-family: 'Tx 02', monospace;
}

.waveform-display {
  margin-bottom: 20px;
}

.waveform-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
  margin-bottom: 8px;
  border-radius: 1px;
  animation: waveform 2s ease-in-out infinite;
}

.waveform-line:nth-child(1) {
  width: 60%;
  animation-delay: 0s;
}

.waveform-line:nth-child(2) {
  width: 80%;
  animation-delay: 0.2s;
}

.waveform-line:nth-child(3) {
  width: 40%;
  animation-delay: 0.4s;
}

.waveform-line:nth-child(4) {
  width: 90%;
  animation-delay: 0.6s;
}

.waveform-line:nth-child(5) {
  width: 70%;
  animation-delay: 0.8s;
}

@keyframes waveform {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.shape-3d {
  margin-bottom: 20px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shape-container {
  width: 80px;
  height: 80px;
  position: relative;
}

.organic-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 255, 0.3));
  border-radius: 50%;
  position: relative;
  animation: rotate 10s linear infinite;
}

.organic-shape::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(45deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
  border-radius: 50%;
  animation: rotate 7s linear infinite reverse;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.data-readout {
  font-family: 'Tx 02', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.readout-line {
  margin-bottom: 5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.readout-line:last-child {
  border-bottom: none;
}

/* Text Panel */
.ui-text-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.text-content {
  color: white;
  font-family: 'Tx 02', monospace;
  line-height: 1.6;
  font-size: 14px;
}

.text-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.text-content p:last-child {
  margin-bottom: 0;
}

/* Bottom UI Row */
.ui-bottom-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.bottom-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.bottom-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Radar Display */
.ui-radar-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.radar-container {
  position: absolute;
    right: 10rem;
    bottom: 10rem;
}

.radar-label {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(0, 255, 255, 0.8);
  font-family: 'Tx 02', monospace;
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Tx 02', monospace;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .ui-main-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ui-portrait-section {
    order: 1;
  }

  .ui-data-panel {
    order: 2;
  }

  .ui-text-panel {
    order: 3;
  }
}


 /* Thumbnail Elements Below Central Image */
 .thumbnail-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.thumbnail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.thumbnail-item:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  border-radius: 1rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(239, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(239, 255, 255, 0.2);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(128, 0, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(251, 130, 0, 0.943) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

.thumbnail-label {
  font-family: 'Tx 02', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--swatch--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 162, 0, 0.5);
}

@media (max-width: 768px) {
  .ui-top-row {
    flex-direction: column;
    gap: 20px;
  }

  .ui-bottom-row {
    gap: 20px;
  }

  .portrait-container {
    width: 250px;
    height: 300px;
  }

  .portrait-image {
    width: 150px;
    height: 200px;
  }

  .name-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cyberpunk-interface {
    padding: 20px 10px;
  }

  .ui-control-box {
    padding: 10px;
  }

  .ui-data-panel,
  .ui-text-panel {
    padding: 15px;
  }

  .portrait-container {
    width: 200px;
    height: 250px;
  }

  .portrait-image {
    width: 120px;
    height: 150px;
  }
}

/* Cyber Plant Element */
.cyber-plant {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 255, 100, 0.05);
  border: 1px solid rgba(0, 255, 100, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cyber-plant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(0, 255, 100, 0.1) 0%, 
    rgba(0, 255, 150, 0.05) 50%, 
    rgba(0, 255, 100, 0.1) 100%);
  animation: plantPulse 3s ease-in-out infinite;
}

.plant-container {
  position: relative;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.plant-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stem-segment {
  width: 4px;
  height: 15px;
  background: linear-gradient(to bottom, #00ff64, #00cc51);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.6);
  animation: stemGlow 2s ease-in-out infinite alternate;
}

.stem-segment:nth-child(2) {
  animation-delay: 0.3s;
}

.stem-segment:nth-child(3) {
  animation-delay: 0.6s;
}

.plant-leaves {
  position: relative;
  margin: 10px 0;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 12px;
  background: linear-gradient(45deg, #00ff64, #00cc51);
  border-radius: 50% 0 50% 0;
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
}

.leaf-1 {
  top: -5px;
  left: -15px;
  animation: leafSway1 4s ease-in-out infinite;
  animation-delay: 0s;
}

.leaf-2 {
  top: -5px;
  right: -15px;
  animation: leafSway2 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.leaf-3 {
  bottom: -5px;
  left: -10px;
  animation: leafSway3 4s ease-in-out infinite;
  animation-delay: 1s;
}

.leaf-4 {
  bottom: -5px;
  right: -10px;
  animation: leafSway4 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

.plant-roots {
  position: relative;
  margin-top: 10px;
}

.root {
  position: absolute;
  width: 3px;
  height: 20px;
  background: linear-gradient(to bottom, #00ff64, #00cc51);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
  animation: rootGrow 3s ease-in-out infinite;
}

.root-1 {
  left: -8px;
  transform: rotate(-15deg);
  animation-delay: 0s;
}

.root-2 {
  left: 0;
  animation-delay: 0.5s;
}

.root-3 {
  right: -8px;
  transform: rotate(15deg);
  animation-delay: 1s;
}

.plant-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, 
    rgba(0, 255, 100, 0.2) 0%, 
    rgba(0, 255, 100, 0.1) 40%, 
    transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.plant-data {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 100, 0.2);
}

.data-line {
  color: #00ff64;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  margin: 5px 0;
  text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
  animation: dataFlicker 2s ease-in-out infinite;
}

.data-line:nth-child(2) {
  animation-delay: 0.3s;
}

.data-line:nth-child(3) {
  animation-delay: 0.6s;
}

/* Plant Animations */
@keyframes plantPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes stemGlow {
  0% { box-shadow: 0 0 10px rgba(0, 255, 100, 0.6); }
  100% { box-shadow: 0 0 20px rgba(0, 255, 100, 0.9); }
}

@keyframes leafSway1 {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-40deg) scale(1.1); }
}

@keyframes leafSway2 {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(50deg) scale(1.1); }
}

@keyframes leafSway3 {
  0%, 100% { transform: rotate(-30deg) scale(1); }
  50% { transform: rotate(-25deg) scale(1.1); }
}

@keyframes leafSway4 {
  0%, 100% { transform: rotate(30deg) scale(1); }
  50% { transform: rotate(35deg) scale(1.1); }
}

@keyframes rootGrow {
  0% { height: 15px; opacity: 0.7; }
  50% { height: 20px; opacity: 1; }
  100% { height: 15px; opacity: 0.7; }
}

@keyframes glowPulse {
  0%, 100% { 
    opacity: 0.3; 
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes dataFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive adjustments for plant */
@media (max-width: 768px) {
  .cyber-plant {
    margin-top: 20px;
    padding: 15px;
  }
  
  .plant-container {
    height: 100px;
  }
  
  .leaf {
    width: 16px;
    height: 10px;
  }
  
  .data-line {
    font-size: 11px;
  }

  

/* Responsive adjustments for thumbnails */
@media (max-width: 768px) {
  .thumbnail-row {
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .thumbnail-image {
    width: 60px;
    height: 60px;
  }
  
  .thumbnail-label {
    font-size: 10px;
  }
}