/* ==========================================================================
   2. SHOWCASE.CSS - Hero, Avatar Halo, Marquee, Bento Grid ve Kart Animasyonları
   ========================================================================== */

.hero-section { padding: 1.25rem 0 2rem 0; display: flex; flex-direction: column; gap: 1.35rem; }
.profile-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.38rem 0.9rem; border-radius: 9999px;
  background-color: rgba(18, 18, 26, 0.88); border: 1px solid var(--border-subtle);
  font-size: 0.78rem; font-weight: 500; color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.status-pill:hover { transform: translateY(-2px); border-color: rgba(129, 140, 248, 0.4); }
.pill-glow { border-color: rgba(99, 102, 241, 0.28); background: linear-gradient(90deg, rgba(18, 18, 26, 0.9), rgba(49, 46, 129, 0.35)); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--emerald); box-shadow: 0 0 10px var(--emerald); position: relative; }
.status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--emerald); animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes radarPing { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

.floating-emoji { display: inline-block; animation: floatWave 2.5s ease-in-out infinite; }
@keyframes floatWave { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(10deg); } }
.typewriter-cursor { color: var(--primary-light); font-weight: 800; animation: blinkCursor 0.8s step-end infinite; }
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-main { display: flex; flex-direction: column; gap: 0.9rem; }
.hero-name-row { display: flex; align-items: center; gap: 1.1rem; }

.avatar-wrapper { position: relative; width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
.avatar-ring { position: absolute; inset: -3px; border-radius: 1.4rem; background: conic-gradient(from 0deg, #6366f1, #06b6d4, #10b981, #a855f7, #f43f5e, #6366f1); animation: spinHalo 4s linear infinite; }
.avatar-ring-outer { position: absolute; inset: -6px; border-radius: 1.5rem; background: conic-gradient(from 180deg, #6366f1, transparent, #06b6d4, transparent, #a855f7); animation: spinHaloReverse 6s linear infinite; opacity: 0.55; }
@keyframes spinHalo { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinHaloReverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

.hero-avatar {
  position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 1.25rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -0.03em;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.avatar-wrapper:hover .hero-avatar { transform: scale(1.06); }
.avatar-wrapper:active .hero-avatar { transform: scale(0.92); }

.shimmer-title {
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1;
  background: linear-gradient(90deg, #fff 0%, #c7d2fe 25%, #38bdf8 50%, #a855f7 75%, #fff 100%);
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: textShine 5s linear infinite;
}
@keyframes textShine { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
.hero-subtitle { font-size: 0.95rem; color: var(--primary-light); font-weight: 600; margin-top: 0.2rem; }
.hero-bio { font-size: 1.02rem; color: #d1d5db; line-height: 1.72; max-width: 680px; }

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.btn-hero-primary {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; min-height: 50px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  background-size: 200% 200%; animation: gradientMove 4s ease infinite;
  color: #fff; border: 1px solid rgba(165, 180, 252, 0.35); border-radius: 0.95rem;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-shine { position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg); animation: btnShineSweep 3.5s infinite; pointer-events: none; }
@keyframes btnShineSweep { 0% { left: -100%; } 35%, 100% { left: 200%; } }
.btn-hero-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 32px rgba(99, 102, 241, 0.55); }
.btn-hero-primary:active { transform: scale(0.96); }
.sparkle-spin { display: inline-block; animation: sparkleTwinkle 2s infinite; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; min-height: 50px; background-color: rgba(20, 20, 30, 0.85);
  color: #e5e7eb; border: 1px solid var(--border-subtle); border-radius: 0.95rem;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.btn-hero-secondary:hover { background-color: rgba(30, 30, 44, 0.95); color: #fff; border-color: rgba(129, 140, 248, 0.4); transform: translateY(-2px); }
.bounce-arrow { display: inline-block; animation: bounceY 1.6s infinite ease-in-out; }
@keyframes bounceY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.arrow-slide { display: inline-block; transition: transform 0.25s ease; }
.btn-hero-primary:hover .arrow-slide { transform: translateX(4px); }

.social-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.social-badge {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.95rem; min-height: 40px;
  border-radius: 0.8rem; background-color: rgba(18, 18, 26, 0.85); border: 1px solid var(--border-subtle);
  font-size: 0.82rem; font-weight: 500; color: #cbd5e1; text-decoration: none; transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-badge:hover { background-color: rgba(99, 102, 241, 0.18); color: #fff; border-color: rgba(129, 140, 248, 0.5); transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25); }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; line-height: 1; }
.social-icon svg { display: block; width: 18px; height: 18px; overflow: visible; }

.marquee-wrapper {
  margin: 0.5rem 0 1.75rem 0; padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; will-change: transform; transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; animation: marqueeScroll 24s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.marquee-content { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: #a5b4fc; }
.marquee-content .sep { color: #38bdf8; opacity: 0.6; }
@keyframes marqueeScroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

.spotlight-card {
  position: relative; overflow: hidden; --mouse-x: 50%; --mouse-y: 50%; --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.spotlight-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(129, 140, 248, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: 1;
}
.spotlight-card:hover::after { opacity: 1; }
@media (hover: none) {
  .spotlight-card { transform: none !important; }
  .spotlight-card::after { display: none !important; }
}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin: 1rem 0 2rem 0; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 1.15rem 1rem; background-color: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 1.15rem; text-align: center; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #818cf8, #34d399, transparent); animation: topBorderFlow 4s linear infinite; animation-delay: var(--delay, 0s); }
@keyframes topBorderFlow { 0% { left: -100%; } 100% { left: 100%; } }
.stat-card:hover { border-color: var(--border-hover); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15); }
.stat-val { font-size: 1.45rem; font-weight: 800; background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.stat-lbl { font-size: 0.76rem; font-weight: 700; color: var(--primary-light); margin-top: 0.3rem; }
.stat-sub { font-size: 0.7rem; color: var(--text-faint); margin-top: 0.15rem; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0 1.25rem 0; }
.section-title { font-size: 1.35rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.zap-icon { display: inline-block; animation: zapBounce 2s infinite; }
@keyframes zapBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2) rotate(-8deg); } }
.section-sub { font-size: 0.78rem; color: #a5b4fc; padding: 0.25rem 0.7rem; border-radius: 9999px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
@media (min-width: 640px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } .bento-card.large, .bento-card.wide { grid-column: span 2; } }
@media (min-width: 860px) { .bento-grid { grid-template-columns: repeat(3, 1fr); } .bento-card.large { grid-column: span 2; } .bento-card.wide { grid-column: span 3; } }

.bento-card { padding: 1.45rem; border-radius: 1.35rem; background-color: var(--bg-card); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; justify-content: space-between; gap: 1.05rem; position: relative; overflow: hidden; z-index: 1; }
.bento-card > * { position: relative; z-index: 2; }
.bento-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.15); }
.bento-badge-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.bento-badge { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.28rem 0.72rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.35rem; }
.bento-badge.indigo { color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); background: rgba(99, 102, 241, 0.12); }
.bento-badge.emerald { color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.12); }
.bento-badge.purple { color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.12); }
.bento-badge.amber { color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
.bento-badge.rose { color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.12); }
.bento-badge.cyan { color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.12); }

/* Mini Card Widgets */
.ecg-widget { width: 90px; height: 24px; overflow: visible; }
.ecg-line { fill: none; stroke: #818cf8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: ecgPulse 2.4s ease-in-out infinite; }
@keyframes ecgPulse { 0% { stroke-dashoffset: 160; opacity: 0.3; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -160; opacity: 0.3; } }

.music-widget { display: flex; align-items: center; gap: 0.5rem; }
.vinyl-disc { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#18181b, #a855f7, #18181b, #6366f1, #18181b); border: 2px solid #c084fc; display: flex; align-items: center; justify-content: center; animation: spinHalo 3s linear infinite; }
.vinyl-disc::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.equalizer { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq-bar { width: 3px; background: linear-gradient(180deg, #38bdf8, #a855f7); border-radius: 2px; animation: equalize 0.9s infinite alternate ease-in-out; }
.eq-bar:nth-child(1) { height: 7px; animation-duration: 0.6s; }
.eq-bar:nth-child(2) { height: 16px; animation-duration: 0.95s; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 10px; animation-duration: 0.75s; animation-delay: 0.3s; }
.eq-bar:nth-child(4) { height: 18px; animation-duration: 1.1s; animation-delay: 0.05s; }
.eq-bar:nth-child(5) { height: 12px; animation-duration: 0.8s; animation-delay: 0.25s; }
@keyframes equalize { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }

.power-meter { display: flex; gap: 3px; align-items: center; }
.pwr-seg { width: 10px; height: 6px; border-radius: 2px; background: #10b981; animation: powerCharge 1.6s infinite; }
.pwr-seg:nth-child(2) { animation-delay: 0.25s; } .pwr-seg:nth-child(3) { animation-delay: 0.5s; } .pwr-seg:nth-child(4) { animation-delay: 0.75s; }
@keyframes powerCharge { 0%, 100% { opacity: 0.25; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1.2); } }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 0.3rem 0.55rem; border-radius: 9999px; background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.25); }
.typing-dot { width: 5px; height: 5px; border-radius: 50%; background: #fda4af; animation: typingBounce 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.game-ping { font-size: 1.1rem; display: inline-block; animation: controllerRock 2s ease-in-out infinite; }
@keyframes controllerRock { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.15); } }

.bento-title { font-size: 1.18rem; font-weight: 800; color: #fff; line-height: 1.35; }
.bento-desc { font-size: 0.89rem; color: var(--text-muted); line-height: 1.62; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.bento-tag { font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 0.45rem; background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.07); transition: all 0.2s ease; }
.bento-card:hover .bento-tag { border-color: rgba(129, 140, 248, 0.3); color: #fff; }

@media (max-width: 480px) {
  .hero-section { gap: 1.15rem; padding: 0.6rem 0 1.6rem 0; }
  .shimmer-title { font-size: 2.15rem; line-height: 1.18; }
  .hero-bio { font-size: 0.88rem; line-height: 1.58; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; min-height: 44px; }
  .bento-card { padding: 1.15rem; gap: 0.85rem; border-radius: 1.2rem; }
  .bento-title { font-size: 1.08rem; }
  .bento-desc { font-size: 0.84rem; line-height: 1.55; }
  .stat-card { padding: 0.85rem 0.6rem; border-radius: 1rem; }
  .stat-val { font-size: 1.28rem; }
  .social-strip { gap: 0.45rem; }
  .social-badge { padding: 0.4rem 0.8rem; font-size: 0.8rem; min-height: 38px; }
}

@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-avatar { width: 50px; height: 50px; font-size: 1.1rem; }
}
