/* Super Media Stack v3.0 - Additional Styles */

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

/* Export type button selected state */
.export-type-btn.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
  transition: all 0.15s ease;
}

/* Focus visible for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Custom select styling */
select option {
  background: #1e1e2e;
  color: #e2e8f0;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 2px; }

/* Disabled state */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Code blocks */
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

pre code {
  display: block;
}

/* Gradient border effect */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* Animated gradient background for loading */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #6366f1, #8b5cf6, #ec4899, #f43f5e);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
}

/* Responsive table */
@media (max-width: 640px) {
  .sidebar-width { display: none; }
  .stat-card { padding: 12px; }
}

/* Image lazy load fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Toast animation */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Share buttons Social Hub ─────────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sc, #6366f1) 40%, transparent);
  background: color-mix(in srgb, var(--sc, #6366f1) 16%, transparent);
  color: color-mix(in srgb, var(--sc, #818cf8) 90%, #fff);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.share-btn:hover {
  background: color-mix(in srgb, var(--sc, #6366f1) 28%, transparent);
  border-color: color-mix(in srgb, var(--sc, #6366f1) 65%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--sc, #6366f1) 25%, transparent);
}
.share-btn:active { transform: translateY(0); }

.share-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  transition: all 0.15s ease;
}
.share-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
  transform: translateY(-1px);
}
.share-btn-secondary:active { transform: translateY(0); }

/* Mockup phone drop shadow */
.phone-mockup { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }

/* Network chip selected */
.network-chip.active {
  border-color: #6366f1 !important;
  background: rgba(99,102,241,0.22) !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}

/* ── OMEGA Conversational Messages ───────────────────────────── */
.omega-msg {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(168,85,247,0.04)) !important;
  border: 1px solid rgba(168,85,247,0.2) !important;
  border-left: 3px solid #a855f7 !important;
}
.omega-msg:hover {
  border-color: rgba(168,85,247,0.35) !important;
}

/* OMEGA suggestion buttons animation */
.omega-msg button {
  transition: all 0.2s ease;
}
.omega-msg button:active {
  transform: scale(0.95);
}
