/* Premium SaaS visual polish - clarity, hierarchy, data readability */

/* Trend badges */
.trend-positive { color: rgb(34, 197, 94); }
.trend-negative { color: rgb(239, 68, 68); }

/* Table: Stripe/Linear style */
.table-saas thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(156, 163, 175);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(55, 65, 81);
}
.table-saas tbody tr {
  transition: background-color 0.15s ease;
}
.table-saas tbody tr:hover {
  background-color: rgb(31, 41, 55);
}
.table-saas tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* Code-style container for error/details */
.code-detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  background: rgb(17, 24, 39);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  color: rgb(209, 213, 219);
}

/* Block-level code for error messages / logs */
.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  background: rgb(17, 24, 39);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  color: rgb(209, 213, 219);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Feature card hover glow - YC-style */
.feature-card-glow:hover {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Landing feature cards: hover scale, border tint, glow */
.feature-card-hover {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card-hover:hover {
  transform: scale(1.02);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 25px 50px -12px rgba(99, 102, 241, 0.1);
}

/* Sticky glass header */
.sticky-glass-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(55, 65, 81);
  transition: box-shadow 0.2s ease;
}
.sticky-glass-header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* Product screenshot / browser frame */
.product-frame {
  border-radius: 1rem;
  border: 1px solid rgb(55, 65, 81);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.product-frame .product-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgb(18, 24, 38);
  border-bottom: 1px solid rgb(55, 65, 81);
}
.product-frame .product-frame-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(75, 85, 99);
}

/* Hero animated gradient - slow 12-18s */
.hero-gradient-slow {
  background-size: 400% 400%;
  animation: heroGradientSlow 15s ease-in-out infinite;
}
@keyframes heroGradientSlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Toast container - fixed bottom-right */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-item.toast-success { background: rgb(34, 197, 94); color: white; }
.toast-item.toast-error { background: rgb(239, 68, 68); color: white; }
.toast-item.toast-info { background: rgb(99, 102, 241); color: white; }

/* Empty state - consistent structure */
.empty-state-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgb(55, 65, 81);
  background: rgba(18, 24, 38, 0.5);
}
.empty-state-box .empty-state-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  opacity: 0.6;
}
.empty-state-box .empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(243, 244, 246);
  margin-bottom: 0.25rem;
}
.empty-state-box .empty-state-text {
  font-size: 0.875rem;
  color: rgb(156, 163, 175);
  margin-bottom: 1rem;
}

/* Table: sticky header where used */
.table-sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(17, 24, 39);
  box-shadow: 0 1px 0 0 rgb(55, 65, 81);
}
