/* ===================================================
   EUKALIPTUS — PERSONAL SITE STYLES
   Glassmorphism · Neon · Gaming · Dark
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #080b14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);

  --neon-purple: #8b5cf6;
  --neon-blue: #38bdf8;
  --neon-pink: #f472b6;
  --neon-green: #4ade80;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --discord-color: #5865f2;
  --spotify-color: #1db954;
  --youtube-color: #ff0000;
  --valorant-color: #ff4655;
  --steam-color: #1b2838;
  --medal-color: #ffb800;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', sans-serif;
  --blur: blur(20px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================================
   PARTICLES CANVAS
   ========================================= */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-bracket {
  color: var(--neon-purple);
}

.logo-name {
  color: var(--text-primary);
  margin: 0 2px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--neon-purple);
  border-color: var(--border-glow);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* =========================================
   FADE-IN ANIMATION
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px 32px;
}

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--neon-purple) 0deg,
      var(--neon-blue) 120deg,
      var(--neon-pink) 240deg,
      var(--neon-purple) 360deg);
  animation: rotateBorder 4s linear infinite;
  filter: blur(2px);
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--bg-base);
  object-fit: cover;
  background: var(--bg-card);
}

/* Status dot */
.status-dot {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg-base);
  background: var(--text-muted);
  transition: var(--transition);
}

.status-dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.status-dot.idle {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-dot.dnd {
  background: var(--valorant-color);
  box-shadow: 0 0 8px var(--valorant-color);
}

.status-dot.offline {
  background: var(--text-muted);
}

/* Hero text */
.hero-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.neon-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.5));
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Badge */
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  transition: var(--transition);
}

.badge.online {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.badge.idle {
  border-color: #f59e0b;
  color: #f59e0b;
}

.badge.dnd {
  border-color: var(--valorant-color);
  color: var(--valorant-color);
}

.badge i {
  font-size: 0.6rem;
}

/* CTA Buttons */
.hero-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.07);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
  backdrop-filter: var(--blur);
}

.btn-outline:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

/* =========================================
   GLASS CARDS
   ========================================= */
.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Subtle top glow line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0.5;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-icon {
  font-size: 1rem;
}

.discord-icon {
  color: var(--discord-color);
}

.spotify-icon {
  color: var(--spotify-color);
}

/* ---- Skeleton loader ---- */
.card-loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-avatar,
.skeleton-cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-avatar {
  border-radius: 50%;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.long {
  width: 80%;
}

.skeleton-line.short {
  width: 50%;
}

/* ---- Error state ---- */
.card-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 0;
}

.card-error i {
  font-size: 1.5rem;
  color: var(--valorant-color);
}

/* ---- Hidden helper ---- */
.hidden {
  display: none !important;
}

/* =========================================
   DISCORD CARD CONTENT
   ========================================= */
.discord-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--discord-color);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.dc-info {
  flex: 1;
  min-width: 0;
}

.dc-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.dc-status.online {
  color: var(--neon-green);
}

.dc-status.idle {
  color: #f59e0b;
}

.dc-status.dnd {
  color: var(--valorant-color);
}

/* Custom status text — plus petit et discret */
.dc-activity {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  opacity: 0.85;
}

/* Jeu en cours — bloc visuel premium */
.dc-game-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.dc-game-art {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.dc-game-info {
  min-width: 0;
  flex: 1;
}

.dc-game-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-game-detail {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* =========================================
   SPOTIFY CARD CONTENT
   ========================================= */
.spotify-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-cover {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.3);
}

.sp-info {
  flex: 1;
  min-width: 0;
}

.sp-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress bar */
.sp-progress-bar {
  margin-top: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.sp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--spotify-color), #57e08a);
  border-radius: 999px;
  width: 0%;
  transition: width 1s linear;
}

/* Equalizer */
.sp-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 8px;
}

.sp-equalizer span {
  display: block;
  width: 3px;
  background: var(--spotify-color);
  border-radius: 2px;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.sp-equalizer span:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 0.7s;
}

.sp-equalizer span:nth-child(2) {
  animation-delay: 0.15s;
  animation-duration: 0.9s;
}

.sp-equalizer span:nth-child(3) {
  animation-delay: 0.3s;
  animation-duration: 0.6s;
}

.sp-equalizer span:nth-child(4) {
  animation-delay: 0.45s;
  animation-duration: 0.8s;
}

@keyframes eq {
  from {
    height: 3px;
  }

  to {
    height: 14px;
  }
}

/* Idle state */
.spotify-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

.spotify-idle i {
  font-size: 1.8rem;
  color: var(--spotify-color);
  opacity: 0.4;
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--neon-purple);
}

/* =========================================
   LINKS GRID
   ========================================= */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* Generic link card */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--bg-card-hover);
}

.link-card .card-link-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Per-service glow on hover */
.link-card.discord:hover {
  border-color: var(--discord-color);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.link-card.youtube:hover {
  border-color: var(--youtube-color);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.25);
}

.link-card.medal:hover {
  border-color: var(--medal-color);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.25);
}

.link-card.valorant:hover {
  border-color: var(--valorant-color);
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.3);
}

.link-card.steam:hover {
  border-color: #66c0f4;
  box-shadow: 0 4px 20px rgba(102, 192, 244, 0.3);
}

.link-card.discord .card-link-icon {
  color: var(--discord-color);
}

.link-card.youtube .card-link-icon {
  color: var(--youtube-color);
}

.link-card.medal .card-link-icon {
  color: var(--medal-color);
}

.link-card.valorant .card-link-icon {
  color: var(--valorant-color);
}

.link-card.steam .card-link-icon {
  color: #66c0f4;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.neon-pink {
  color: var(--neon-pink);
  margin: 0 4px;
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20, 24, 40, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.3);
  backdrop-filter: var(--blur);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--neon-green);
}

/* =========================================
   RADIAL BG GLOW
   ========================================= */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
      rgba(139, 92, 246, 0.08) 0%,
      rgba(56, 189, 248, 0.04) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
      rgba(244, 114, 182, 0.06) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 700px) {
  .navbar {
    padding: 14px 20px;
  }

  .container {
    padding: 90px 16px 48px;
    gap: 28px;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 16px 24px;
    gap: 12px;
  }

  .hero-name {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .links-grid {
    grid-template-columns: 1fr;
  }

  .hero-btn-row {
    flex-direction: column;
    align-items: center;
  }
}