/* guns.lol 1:1 Pixel-Perfect Clone Styles */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap');

:root {
  --accent-color: #ffffff;
  --accent-rgb: 255, 255, 255;
  --bg-dim: 0.55;
  --bg-blur: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

body, html {
  width: 100%;
  height: 100%;
  background: #08080a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* Background Layers */
#bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 7, var(--bg-dim));
  backdrop-filter: blur(var(--bg-blur));
  -webkit-backdrop-filter: blur(var(--bg-blur));
  z-index: 2;
}

#fx-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.crt-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

/* Click to Enter Overlay */
#enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5,5,7,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#enter-screen.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.enter-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: #fff;
  animation: pulse-glow 2s infinite ease-in-out;
  user-select: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; text-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(255,255,255,0.9); }
}

/* Custom Cursor */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  box-shadow: 0 0 10px var(--accent-color);
}

#cursor-dot.hover {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

.cursor-trail {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* 3D Tilt Card */
.scene {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.tilt-card {
  width: 400px;
  max-width: 90%;
  background: rgba(15, 15, 20, 0.60);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(var(--accent-rgb), 0.15);
  transform-style: preserve-3d;
  padding: 35px 30px;
  position: relative;
  will-change: transform;
}

.glare {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Profile Content */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(30px);
}

.avatar-wrapper {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(var(--accent-rgb), 0.6));
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 50%, var(--accent-color) 100%);
  animation: spin 3s linear infinite;
  z-index: 0;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  background: #111;
  border: 2px solid #000;
}

.username-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.username {
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.badges {
  display: flex;
  gap: 6px;
}

.badge {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s;
}

.badge:hover {
  background: rgba(255,255,255,0.2);
}

.badge svg, .badge i { font-size: 12px; color: #fff; }

.bio {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  line-height: 1.6;
  transform: translateZ(20px);
}

/* Discord Presence */
.discord-presence {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateZ(25px);
}

.discord-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #2b2d31;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discord-icon i { font-size: 24px; color: #fff; }
.status-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid #1a1a1c;
}
.status-online { background: #23a559; }
.status-idle { background: #f0b232; }
.status-dnd { background: #f23f43; }

.discord-info { flex: 1; text-align: left; }
.discord-info .title { font-size: 12px; font-weight: 700; color: #fff; }
.discord-info .desc { font-size: 11px; color: #b5bac1; margin-top: 2px; }

/* Social Icons */
.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  transform: translateZ(25px);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* Links Stack */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
  transform: translateZ(20px);
}

.link-btn {
  position: relative;
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.3s ease;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.link-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-15deg);
  transition: left 0.5s ease;
}

.link-btn:hover::after {
  left: 150%;
}

.views {
  margin-top: 25px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transform: translateZ(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Audio Player */
.audio-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.play-btn {
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
  cursor: pointer;
  transition: 0.2s;
}
.play-btn:hover { color: var(--accent-color); }

.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
}

.vis-bar {
  width: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  height: 2px;
  transition: height 0.05s ease;
}

.audio-track-info {
  width: 120px;
  overflow: hidden;
}

.audio-track-info marquee {
  font-size: 12px;
  color: #ddd;
  font-family: monospace;
}
