@import '../welcome/welcome.component.css';

.profile-building-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.building-wrapper {
  position: relative;
  width: clamp(300px, 80vw, 600px);
  margin: 0 auto;
}

.building-structure {
  background: linear-gradient(135deg, var(--bldg-body) 0%, var(--bldg-mid) 50%, var(--bldg-lit) 100%);
  border: 2px solid var(--dlg-border);
  border-radius: 8px;
  box-shadow: var(--bb-glow), inset 0 0 20px rgba(0, 210, 255, 0.1);
  overflow: hidden;
}

.cityscape-shell.sunset .building-structure {
  box-shadow: var(--bb-glow), inset 0 0 20px rgba(255, 120, 40, 0.1);
}

.building-top {
  height: 30px;
  background: linear-gradient(180deg, var(--bldg-mid) 0%, var(--bldg-body) 100%);
  border-bottom: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bb-tag);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  position: relative;
}

.cityscape-shell.sunset .building-top {
  border-bottom-color: rgba(255, 120, 40, 0.3);
}

.building-top::after {
  content: 'MY PROFILE';
  font-size: 12px;
}

.building-main {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 0;
  padding: 20px;
  min-height: 200px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.03) 0%, transparent 15%, transparent 85%, rgba(0, 210, 255, 0.03) 100%);
  align-items: center;
}

.cityscape-shell.sunset .building-main {
  background: linear-gradient(90deg, rgba(255, 120, 40, 0.05) 0%, transparent 15%, transparent 85%, rgba(255, 120, 40, 0.05) 100%);
}

.building-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

.building-side.left-side {
  border-right: 1px solid rgba(0, 210, 255, 0.2);
  padding-right: 15px;
}

.cityscape-shell.sunset .building-side.left-side {
  border-right-color: rgba(255, 120, 40, 0.2);
}

.building-side.right-side {
  border-left: 1px solid rgba(0, 210, 255, 0.2);
  padding-left: 15px;
}

.cityscape-shell.sunset .building-side.right-side {
  border-left-color: rgba(255, 120, 40, 0.2);
}

.window {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--win-cool) 0%, var(--win-cool) 100%);
  border: 1px solid rgba(0, 210, 255, 0.5);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4), inset 0 0 8px rgba(0, 210, 255, 0.2);
  position: relative;
  animation: windowFlicker 4s ease-in-out infinite;
}

.cityscape-shell.sunset .window {
  background: linear-gradient(135deg, var(--win-warm) 0%, var(--win-warm) 100%);
  border-color: rgba(255, 120, 40, 0.5);
  box-shadow: 0 0 10px rgba(255, 120, 40, 0.4), inset 0 0 8px rgba(255, 120, 40, 0.2);
  animation: windowFlickerSunset 4s ease-in-out infinite;
}

@keyframes windowFlicker {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4), inset 0 0 8px rgba(0, 210, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), inset 0 0 12px rgba(0, 210, 255, 0.3);
  }
}

@keyframes windowFlickerSunset {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 120, 40, 0.4), inset 0 0 8px rgba(255, 120, 40, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 120, 40, 0.6), inset 0 0 12px rgba(255, 120, 40, 0.3);
  }
}

.building-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.player-display-window {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 210, 255, 0.05) 100%);
  border: 2px solid var(--bb-tag);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3), inset 0 0 15px rgba(0, 210, 255, 0.1);
  min-width: 250px;
}

.cityscape-shell.sunset .player-display-window {
  background: linear-gradient(135deg, rgba(182, 64, 255, 0.1) 0%, rgba(182, 64, 255, 0.05) 100%);
  box-shadow: 0 0 20px rgba(255, 64, 249, 0.3), inset 0 0 15px rgba(255, 64, 249, 0.1);
}

.player-avatar {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.player-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: var(--bb-title);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--bb-title), var(--bb-tag));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
  position: relative;
}

.player-name:hover {
  filter: brightness(1.2);
  background: linear-gradient(90deg, var(--bb-tag), var(--bb-title));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

.player-name.copied {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.player-id-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bb-tag);
  margin-bottom: 8px;
  opacity: 0.8;
}

.player-id-value {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bb-tag);
  background: rgba(0, 210, 255, 0.15);
  padding: 12px 16px;
  border: 1.5px solid var(--bb-tag);
  border-radius: 2px;
  word-break: break-all;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: text;
}

.cityscape-shell.sunset .player-id-value {
  background: rgba(182, 64, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 64, 249, 0.4);
  text-shadow: 0 0 10px rgba(255, 64, 249, 0.5);
}

.player-id-value:hover {
  background: rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
  transform: scale(1.02);
}

.cityscape-shell.sunset .player-id-value:hover {
  background: rgba(182, 64, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 64, 249, 0.6);
}

.player-id-value.copied {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  color: #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.copy-notification {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4caf50;
  margin-top: 12px;
  animation: copyNotification 2s ease-in-out forwards;
}

@keyframes copyNotification {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.building-base {
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.05) 0%, rgba(0, 210, 255, 0.02) 100%);
  border-top: 1px solid rgba(0, 210, 255, 0.2);
}

.cityscape-shell.sunset .building-base {
  background: linear-gradient(180deg, rgba(255, 120, 40, 0.05) 0%, rgba(255, 120, 40, 0.02) 100%);
  border-top-color: rgba(255, 120, 40, 0.2);
}

.stat-panel {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--bb-tag);
  opacity: 0.7;
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--bb-title);
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 210, 255, 0.2);
}

.cityscape-shell.sunset .stat-divider {
  background: rgba(255, 120, 40, 0.2);
}

.building-door {
  height: 60px;
  background: linear-gradient(90deg, var(--bldg-mid) 0%, var(--bldg-body) 50%, var(--bldg-mid) 100%);
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cityscape-shell.sunset .building-door {
  border-top-color: rgba(255, 120, 40, 0.2);
}

.building-door::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 100%;
  border: 1.5px solid rgba(0, 210, 255, 0.3);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.05), rgba(0, 210, 255, 0.02));
}

.cityscape-shell.sunset .building-door::before {
  border-color: rgba(255, 120, 40, 0.3);
  background: linear-gradient(90deg, rgba(255, 120, 40, 0.05), rgba(255, 120, 40, 0.02));
}

.door-handle {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 210, 255, 0.8), rgba(0, 210, 255, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
  position: relative;
  z-index: 2;
  margin-left: 80px;
  animation: handleGlow 2s ease-in-out infinite;
}

.cityscape-shell.sunset .door-handle {
  background: radial-gradient(circle at 30% 30%, rgba(255, 120, 40, 0.8), rgba(255, 120, 40, 0.4));
  box-shadow: 0 0 10px rgba(255, 120, 40, 0.6);
  animation: handleGlowSunset 2s ease-in-out infinite;
}

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

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

.back-btn {
  position: absolute;
  top: -50px;
  left: 0;
  background: transparent;
  color: var(--bb-title);
  border: 1px solid var(--dlg-border);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--bb-tag);
  color: var(--bb-tag);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.cityscape-shell.sunset .back-btn:hover {
  background: rgba(182, 64, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 64, 249, 0.3);
}

@media (max-width: 600px) {
  .building-structure {
    border-radius: 4px;
  }

  .building-main {
    grid-template-columns: 50px 1fr 50px;
    padding: 15px;
    gap: 8px;
  }

  .window {
    width: 30px;
    height: 30px;
  }

  .player-display-window {
    min-width: 180px;
    padding: 20px;
  }

  .player-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .player-name {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .player-id-value {
    font-size: 14px;
    padding: 8px 12px;
  }

  .building-base {
    padding: 15px;
  }

  .stat-panel {
    gap: 10px;
  }

  .back-btn {
    top: -45px;
    font-size: 9px;
    padding: 0.4rem 0.8rem;
  }
}
