/* ── Deep Cyber Purple Glassmorphism Design System (Lively Edition) ─ */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-dark: #0b0716;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.22) 0%, transparent 45%),
                 radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),
                 radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
                 #0b0716;
  --card-bg: rgba(25, 16, 42, 0.75);
  --card-border: rgba(168, 85, 247, 0.25);
  --card-border-hover: rgba(232, 121, 249, 0.7);
  --card-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.55);
  
  --accent-purple: #c084fc;
  --accent-violet: #a855f7;
  --accent-deep-purple: #7c3aed;
  --accent-pink: #f472b6;
  --accent-magenta: #e879f9;
  --accent-yellow: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-green: #34d399;
  
  --text-main: #f5f0ff;
  --text-muted: #d8b4fe;
  --text-dim: #a855f7;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 2.5rem 1rem;
  position: relative;
}

/* Ambient Floating Background Glow Orbs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

body::before {
  top: -50px;
  left: -50px;
  background: #a855f7;
}

body::after {
  bottom: -50px;
  right: -50px;
  background: #ec4899;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Custom Purple Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 7, 22, 0.95);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 15px var(--accent-magenta);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-5px) rotate(0.3deg);
  box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.5), 0 0 30px rgba(192, 132, 252, 0.3);
}

/* Floating Sticker Decoration */
.sticker {
  position: absolute;
  pointer-events: none;
  font-size: 1.4rem;
  animation: floatBob 4s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.sticker-top-right {
  top: 15px;
  right: 20px;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(8deg); }
}

/* Header & Profile Section (Grid Span 8) */
.profile-card {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .profile-card {
    grid-column: span 12;
  }
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 115px;
  height: 115px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-wrap:hover .profile-avatar {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--accent-magenta);
}

.profile-info h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #f472b6 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(168, 85, 247, 0.4);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.25);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.25);
  color: #fce7f3;
  border: 1px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.bio-text {
  color: #e9d5ff;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Lanyard Live Discord Bar */
.lanyard-bar {
  background: rgba(15, 9, 30, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

.status-dnd { background: #f43f5e; box-shadow: 0 0 12px #f43f5e; }
.status-online { background: #34d399; box-shadow: 0 0 12px #34d399; }
.status-idle { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.status-offline { background: #6b7280; }

.lanyard-text {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  color: #f3e8ff;
}

.lanyard-text b {
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Quick Links Sidebar (Grid Span 4) */
.links-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .links-card {
    grid-column: span 12;
  }
}

.btn-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.3rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-link i {
  font-size: 1.15rem;
}

.btn-link:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: rgba(232, 121, 249, 0.7);
  color: #fff;
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-discord:hover { background: rgba(88, 101, 242, 0.35); border-color: rgba(129, 140, 248, 0.8); box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); }
.btn-matrix:hover { background: rgba(0, 189, 136, 0.35); border-color: rgba(52, 211, 153, 0.8); box-shadow: 0 0 20px rgba(0, 189, 136, 0.4); }
.btn-bsky:hover { background: rgba(56, 189, 248, 0.35); border-color: rgba(56, 189, 248, 0.8); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }

/* Likes / DNI Card (Grid Span 6) */
.info-box-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .info-box-card {
    grid-column: span 12;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.info-block {
  background: rgba(15, 9, 30, 0.5);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  border-left: 4px solid var(--accent-magenta);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-block.dni {
  border-left-color: var(--accent-pink);
}

.info-block h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-magenta);
  margin-bottom: 0.3rem;
}

.info-block.dni h4 {
  color: var(--accent-pink);
}

.info-block p {
  font-size: 0.92rem;
  color: #e9d5ff;
}

/* Image Showcase Card (Grid Span 6) */
.gallery-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-card {
    grid-column: span 12;
  }
}

.gallery-img-wrap {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  position: relative;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-img-wrap:hover img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.1);
}

/* Song Suggestion Card (Grid Span 12) */
.music-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap i {
  position: absolute;
  left: 1.2rem;
  color: var(--accent-magenta);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3.2rem;
  background: rgba(15, 9, 30, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 40px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 25px rgba(232, 121, 249, 0.4);
}

.music-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.music-item {
  background: rgba(15, 9, 30, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-item:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-magenta);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.music-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.music-meta {
  overflow: hidden;
  flex-grow: 1;
}

.music-meta h5 {
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-meta p {
  font-size: 0.82rem;
  color: #d8b4fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drawing Canvas Studio (Grid Span 7) */
.canvas-card {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .canvas-card {
    grid-column: span 12;
  }
}

.canvas-wrap {
  width: 100%;
  height: 310px;
  background: #05030a;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.35);
  overflow: hidden;
  position: relative;
  touch-action: none;
  box-shadow: inset 0 0 25px rgba(168, 85, 247, 0.15);
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  display: block;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-icon:hover {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
  border-color: var(--accent-magenta);
  box-shadow: 0 0 15px rgba(232, 121, 249, 0.4);
  transform: scale(1.1);
}

.color-picker-input {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}

.btn-action {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-deep-purple) 100%);
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-action:hover {
  opacity: 0.95;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

/* AMA Ask Box (Grid Span 5) */
.ama-card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .ama-card {
    grid-column: span 12;
  }
}

.ama-textarea {
  width: 100%;
  height: 200px;
  background: rgba(15, 9, 30, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
}

.ama-textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

.btn-purple {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn-purple:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

/* Footer */
.footer {
  grid-column: span 12;
  text-align: center;
  padding: 2.5rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.footer a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--accent-magenta);
}
