/* Retro Gaming Profile Styles */
.retro-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
  font-family: "JetBrains Mono", monospace;
}

.retro-panel {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.retro-glow {
  border: 2px solid #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.2),
    inset 0 0 15px rgba(0, 255, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: retro-glow 4s ease-in-out infinite, border-flicker 0.15s infinite;
}

.retro-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 255, 136, 0.1) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: border-scan 3s linear infinite;
  opacity: 0;
}

.retro-glow:hover::before {
  opacity: 1;
}

@keyframes retro-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.2),
      inset 0 0 15px rgba(0, 255, 136, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3),
      0 0 40px rgba(0, 255, 136, 0.1), inset 0 0 20px rgba(0, 255, 136, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: #00ffaa;
  }
}

@keyframes border-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.98;
  }
}

@keyframes border-scan {
  0% {
    background-position: 200% 200%;
  }
  100% {
    background-position: -200% -200%;
  }
}

.card-scanlines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(0, 255, 136, 0.03) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Profile Header */
.profile-header-card {
  grid-column: 1 / -1;
  padding: 30px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.avatar-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-ring {
  width: 80px;
  height: 80px;
  border: 3px solid #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-ring.pulsing {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    border-color: #00ff88;
  }
  50% {
    transform: scale(1.1);
    border-color: #00ffff;
  }
}

.avatar-core {
  font-size: 2rem;
  color: #00ff88;
}

.status-indicator.online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #00ff88;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.developer-name {
  font-size: 2rem;
  font-weight: 700;
  color: #00ff88;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.glitch-text {
  position: relative;
  display: inline-block;
}

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

.glitch-text::before {
  color: #ff00ff;
  animation: glitch-1 0.8s infinite linear alternate-reverse;
}

.glitch-text::after {
  color: #00ffff;
  animation: glitch-2 0.8s infinite linear alternate-reverse;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
  opacity: 0.8;
}

.glitch-text:hover {
  animation: glitch-main 0.8s infinite linear alternate-reverse;
}

@keyframes glitch-main {
  0% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
  10% {
    transform: translateX(-2px);
  }
  20% {
    transform: translateX(2px);
  }
  30% {
    transform: translateX(-1px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translateX(1px);
  }
  50% {
    transform: translateX(-3px);
    filter: hue-rotate(180deg);
  }
  60% {
    transform: translateX(3px);
  }
  70% {
    transform: translateX(-1px);
    filter: hue-rotate(270deg);
  }
  80% {
    transform: translateX(1px);
  }
  90% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
    filter: hue-rotate(360deg);
  }
}

@keyframes glitch-1 {
  0% {
    transform: translateX(0) skew(0deg);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  }
  10% {
    transform: translateX(-3px) skew(-2deg);
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
  }
  20% {
    transform: translateX(2px) skew(1deg);
    clip-path: polygon(0 15%, 100% 15%, 100% 65%, 0 65%);
  }
  30% {
    transform: translateX(-1px) skew(-1deg);
    clip-path: polygon(0 65%, 100% 65%, 100% 85%, 0 85%);
  }
  40% {
    transform: translateX(1px) skew(2deg);
    clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
  }
  50% {
    transform: translateX(-2px) skew(-3deg);
    clip-path: polygon(0 0, 100% 0, 100% 25%, 0 25%);
  }
  60% {
    transform: translateX(3px) skew(1deg);
    clip-path: polygon(0 25%, 100% 25%, 100% 75%, 0 75%);
  }
  70% {
    transform: translateX(-1px) skew(-2deg);
    clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%);
  }
  80% {
    transform: translateX(2px) skew(3deg);
    clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
  }
  90% {
    transform: translateX(-3px) skew(-1deg);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  }
  100% {
    transform: translateX(0) skew(0deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes glitch-2 {
  0% {
    transform: translateX(0) skew(0deg);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
  }
  15% {
    transform: translateX(2px) skew(2deg);
    clip-path: polygon(0 20%, 100% 20%, 100% 60%, 0 60%);
  }
  25% {
    transform: translateX(-3px) skew(-1deg);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  }
  35% {
    transform: translateX(1px) skew(1deg);
    clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
  }
  45% {
    transform: translateX(-2px) skew(-2deg);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  }
  55% {
    transform: translateX(3px) skew(3deg);
    clip-path: polygon(0 40%, 100% 40%, 100% 70%, 0 70%);
  }
  65% {
    transform: translateX(-1px) skew(-1deg);
    clip-path: polygon(0 70%, 100% 70%, 100% 95%, 0 95%);
  }
  75% {
    transform: translateX(2px) skew(2deg);
    clip-path: polygon(0 95%, 100% 95%, 100% 100%, 0 100%);
  }
  85% {
    transform: translateX(-3px) skew(-3deg);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
  }
  100% {
    transform: translateX(0) skew(0deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.developer-title {
  font-size: 1.2rem;
  margin: 10px 0;
}

.title-bracket {
  color: #ffff00;
  font-weight: 700;
}

.title-text {
  color: #00ffff;
  font-weight: 600;
  margin: 0 8px;
}

.level-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.level-label {
  color: #ffff00;
  font-weight: 700;
  font-size: 0.9rem;
}

.level-number {
  color: #ff6b6b;
  font-weight: 700;
  font-size: 1.1rem;
}

.xp-bar {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00ffff);
  border-radius: 4px;
  animation: xp-glow 2s ease-in-out infinite;
}

@keyframes xp-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  }
}

.xp-text {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Panel Headers */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.panel-icon {
  color: #00ff88;
  font-size: 1.2rem;
}

.panel-title {
  color: #00ffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: led-blink 2s infinite;
}

.status-led.active {
  background: #00ff88;
}
.status-led.processing {
  background: #ffff00;
}
.status-led.success {
  background: #00ff88;
}

@keyframes led-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Tech Stack */
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-category {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.tech-category.primary {
  border-color: rgba(255, 215, 0, 0.5);
}
.tech-category.secondary {
  border-color: rgba(0, 255, 136, 0.5);
}
.tech-category.tertiary {
  border-color: rgba(0, 255, 255, 0.5);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.category-name {
  color: #00ffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tech-item.legendary {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 140, 0, 0.1)
  );
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.tech-item.epic {
  background: linear-gradient(
    90deg,
    rgba(128, 0, 255, 0.1),
    rgba(255, 0, 128, 0.1)
  );
  border: 1px solid rgba(128, 0, 255, 0.5);
}

.tech-item.rare {
  background: linear-gradient(
    90deg,
    rgba(0, 128, 255, 0.1),
    rgba(0, 255, 128, 0.1)
  );
  border: 1px solid rgba(0, 128, 255, 0.5);
}

.tech-item.uncommon {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(192, 192, 192, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.item-name {
  color: #e2e8f0;
  font-weight: 600;
  flex: 1;
}

.item-level {
  color: #ffff00;
  font-size: 0.9rem;
}

/* Stats Panel */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: #00ff88;
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  color: #00ff88;
  font-weight: 700;
  font-size: 1.2rem;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.85rem;
}

.stat-bar {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00ffff);
  border-radius: 3px;
  animation: stat-glow 2s ease-in-out infinite;
}

@keyframes stat-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  }
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.availability-pulse {
  width: 12px;
  height: 12px;
  background: #00ff88;
  border-radius: 50%;
  animation: availability-pulse 1.5s infinite;
}

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

.availability-text {
  color: #00ff88;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Achievements */
.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-item.unlocked {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.achievement-item.unlocked::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.achievement-item:hover::before {
  left: 100%;
}

.achievement-icon {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.achievement-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.achievement-name {
  color: #00ffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.achievement-desc {
  color: #94a3b8;
  font-size: 0.8rem;
}

.achievement-rarity {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.achievement-rarity.legendary {
  background: linear-gradient(45deg, #ffd700, #ffb347);
  color: #000;
}

.achievement-rarity.epic {
  background: linear-gradient(45deg, #8a2be2, #ff1493);
  color: #fff;
}

.achievement-rarity.rare {
  background: linear-gradient(45deg, #0080ff, #00ff80);
  color: #fff;
}

.achievement-rarity.uncommon {
  background: linear-gradient(45deg, #c0c0c0, #fff);
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .retro-profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .level-indicator {
    justify-content: center;
  }

  .tech-categories {
    gap: 15px;
  }

  .developer-name {
    font-size: 1.5rem;
  }
}
