@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --accent: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
  filter: brightness(0.6);
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.profile-container {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 1s ease-out;
}

.discord-widget {
  max-width: 350px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: pulse 2s infinite;
  object-fit: cover;
}

.discord-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--glass-shadow);
}

.discord-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.discord-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.discord-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.discord-status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.discord-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.discord-status-dot.online { background: #23a55a; }
.discord-status-dot.idle { background: #f0b232; }
.discord-status-dot.dnd { background: #f23f43; }
.discord-status-dot.offline { background: #80848e; }

.discord-loading {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 900px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.link-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.link-card::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: all 0.5s ease;
}

.link-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.link-card:hover::before {
  left: 100%;
}

.link-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.link-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.link-card:hover .link-icon-wrapper {
  background: var(--accent);
  color: #fff;
  transform: rotate(5deg) scale(1.1);
}

.link-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.link-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.link-arrow {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card:hover .link-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* Audio controls */
.audio-control-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.audio-toggle {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
  z-index: 2;
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.audio-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-slider-container {
  height: 0;
  width: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--glass-shadow);
  transform: translateY(20px);
}

.audio-control-container:hover .volume-slider-container {
  height: 120px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.volume-slider {
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  transform: rotate(-90deg);
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Enter overlay */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.enter-text {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  animation: pulse-text 2s infinite;
  text-transform: uppercase;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  50% { opacity: 0.5; text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* SRTMZ colorful theme */
.colorful-theme {
  --accent: #ff00ff;
}

.colorful-theme .profile-avatar {
  border-color: transparent;
  background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
              linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3) border-box;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.colorful-theme .profile-name {
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-bg 5s linear infinite;
  background-size: 200% auto;
}

.colorful-theme .link-card:hover {
  border-color: transparent;
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
              linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3) border-box;
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.colorful-theme .link-card:hover .link-icon-wrapper {
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 200% auto;
  animation: rainbow-bg 2s linear infinite;
  color: #fff;
}

@keyframes rainbow-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Navigation arrows */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--glass-shadow);
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.nav-arrow svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-arrow-left { left: 2rem; }
.nav-arrow-left:hover { transform: translateY(-50%) translateX(-5px); }

.nav-arrow-right { right: 2rem; }
.nav-arrow-right:hover { transform: translateY(-50%) translateX(5px); }

@media (max-width: 900px) {
  .nav-arrow { width: 50px; height: 50px; }
  .nav-arrow-left { left: 1rem; }
  .nav-arrow-right { right: 1rem; }
}

@media (max-width: 600px) {
  .links-grid { grid-template-columns: 1fr; }
  .profile-name { font-size: 2rem; }
  .app-container { padding: 2rem 1rem; }
}
