/* ═══════════════════════════════════════════════════════════════
   kifera.com.br — Custom Styles (complementing Tailwind CSS v4)
   Dark + White theme inspired by Next.js/Vercel
   ═══════════════════════════════════════════════════════════════ */

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Smooth scroll ──────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Focus states ───────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out both;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out both;
}

.animate-slide-down {
  animation: slide-down 0.3s ease-out both;
}

/* Animation delays */
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }

/* ── Sticker card hover glow ────────────────────────────────── */
.sticker-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticker-card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ── Clean Generic Hover Card ───────────────────────────────── */
.hover-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.hover-card:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.08);
}

/* ── Glass morphism ─────────────────────────────────────────── */
.glass {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 34, 34, 0.8);
}

/* ── Line clamp ─────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Gradient text ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 12px;
  background: #111;
  border: 1px solid #222;
  color: #ededed;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.3s ease-out, fade-out 0.3s ease-in 2.7s;
  animation-fill-mode: forwards;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── Pulse dot ──────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Mobile-specific tweaks ─────────────────────────────────── */
@media (max-width: 640px) {
  .sticker-card .absolute {
    opacity: 0 !important;
  }
}

/* ── Table responsiveness ───────────────────────────────────── */
@media (max-width: 640px) {
  table {
    font-size: 13px;
  }
}

/* ── Progress bar animation ─────────────────────────────────── */
.progress-bar {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  transition: width 0.5s ease-out;
}
