/* AlertaPreco.online - Design System */
/* TICKER.AI High-Tech Price Monitor Theme */

/* ===== FIX NAV BARS (don't hide on mobile scroll) ===== */
header.top-nav,
nav.fixed.bottom-0 {
  position: fixed !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* ===== ANIMATIONS ===== */
/* Admin shared utilities */
.animate-fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}
.font-data-mono {
  font-family: "Geist", monospace;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(77, 142, 255, .1);
  }

  50% {
    box-shadow: 0 0 40px rgba(77, 142, 255, .3);
  }
}

@keyframes priceDrop {
  0% {
    color: #dae2fd;
  }

  25% {
    color: #4edea3;
    transform: scale(1.05);
  }

  100% {
    color: #4edea3;
  }
}

@keyframes priceUp {
  0% {
    color: #dae2fd;
  }

  25% {
    color: #ff5451;
    transform: scale(1.05);
  }

  100% {
    color: #ff5451;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(77, 142, 255, .1);
  }

  50% {
    border-color: rgba(77, 142, 255, .4);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: rgba(23, 31, 51, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(173, 198, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.glass-card-static {
  background: rgba(23, 31, 51, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== INNER GLOWS ===== */
.inner-glow-blue {
  box-shadow: inset 0 0 15px rgba(173, 198, 255, 0.1);
}

.inner-glow-green {
  box-shadow: inset 0 0 15px rgba(78, 222, 163, 0.1);
}

.inner-glow-red {
  box-shadow: inset 0 0 15px rgba(255, 84, 81, 0.1);
}

/* ===== PRICE INDICATORS ===== */
.price-drop {
  box-shadow: 0 0 15px rgba(78, 222, 163, 0.25);
}

.price-rise {
  box-shadow: 0 0 15px rgba(255, 84, 81, 0.25);
}

.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: 'Geist', monospace;
  font-size: 12px;
  font-weight: 600;
}

.price-chip.down {
  background: rgba(78, 222, 163, 0.1);
  color: #4edea3;
  border: 1px solid rgba(78, 222, 163, 0.3);
}

.price-chip.up {
  background: rgba(255, 84, 81, 0.1);
  color: #ff5451;
  border: 1px solid rgba(255, 84, 81, 0.3);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: #4d8eff;
  color: #00285d;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(77, 142, 255, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(77, 142, 255, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  color: #dae2fd;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(173, 198, 255, 0.3);
  background: rgba(173, 198, 255, 0.05);
}

.btn-success {
  background: #00a572;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(78, 222, 163, 0.3);
}

.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ===== ANIMATIONS UTILITY ===== */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.animate-fade-in-delay-4 {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out both;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out both;
}

.animate-scale {
  animation: fadeInScale 0.4s ease-out both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(173, 198, 255, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.animate-count {
  animation: countUp 0.5s ease-out both;
}

.animate-border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

/* ===== SCROLL REVEAL (Initial state - JS handles animation) ===== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #171f33 25%, #222a3d 50%, #171f33 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #171f33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* ===== TOOLTIP ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #2d3449;
  color: #dae2fd;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8c909f;
}

/* ===== CHART AREA ===== */
.chart-container {
  position: relative;
}

.chart-container canvas {
  border-radius: 8px;
}

/* ===== PRODUCT IMAGE HOVER ===== */
.product-image-wrap {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.product-image-wrap img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-wrap:hover img {
  transform: scale(1.08);
}

/* ===== NOTIFICATION DOT ===== */
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5451;
  position: absolute;
  top: -2px;
  right: -2px;
  animation: pulseGlow 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 84, 81, 0.5);
}

/* ===== KANBAN (Admin) ===== */
.kanban-column {
  min-height: 300px;
}

.kanban-card {
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

/* ===== ACCORDION ===== */
.accordion-header {
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-header:hover {
  color: #adc6ff;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

/* ===== MOBILE NAV ===== */
.mobile-nav-item {
  transition: none;
  box-sizing: border-box;
  max-height: 60px;
  overflow: hidden;
}

.mobile-nav-item.active {
  color: #adc6ff !important;
}

/* ===== CATEGORY PILLS ===== */
.cat-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #222a3d;
  color: #dae2fd;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: rgba(173, 198, 255, 0.2);
  background: #2d3449;
}

.cat-pill.active {
  background: #4d8eff;
  color: #00285d;
  border-color: #4d8eff;
  box-shadow: 0 0 15px rgba(77, 142, 255, 0.3);
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ===== SCROLLBAR HIDE (for horizontal scroll tabs) ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-input {
  color: #0f172a;
}
.search-input::placeholder {
  color: #64748b;
}

/* ===== SEARCH WRAP FOCUS GLOW ===== */
.search-wrap.focused .search-input {
  border-color: #4d8eff;
  box-shadow: 0 0 0 3px rgba(77, 142, 255, 0.15), 0 0 20px rgba(77, 142, 255, 0.1);
}

.search-wrap.focused .material-symbols-outlined {
  color: #4d8eff;
}

/* ===== SMOOTH IMAGE LOADING ===== */
.product-card img {
  will-change: opacity, transform;
}