/* app_ui_overhaul.css — Zen Studio UI Overhaul */

/* ── Shimmer skeleton animation ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #1c1c1e 25%, #2a2a2e 50%, #1c1c1e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
}

/* ── Card hover overlay ── */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.card-hover-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── FAB ── */
.zen-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
}

.zen-fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zen-fab-main:hover {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.6);
}

.zen-fab-main .zen-fab-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.zen-fab.open .zen-fab-icon {
  transform: rotate(45deg);
}

.zen-fab-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.zen-fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.zen-fab.open .zen-fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.zen-fab.open .zen-fab-item:nth-child(1) { transition-delay: 0.00s; }
.zen-fab.open .zen-fab-item:nth-child(2) { transition-delay: 0.05s; }
.zen-fab.open .zen-fab-item:nth-child(3) { transition-delay: 0.10s; }
.zen-fab.open .zen-fab-item:nth-child(4) { transition-delay: 0.15s; }

.zen-fab-item-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.zen-fab-item-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.5);
}

.zen-fab-item-label {
  background: rgba(20, 20, 24, 0.92);
  color: #f0f4ff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ── Notification panel ── */
#zen-notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--bg-panel, #1c1c1e);
  border-left: 1px solid var(--border, #2a2a2e);
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#zen-notif-panel.open {
  transform: translateX(0);
}

#zen-notif-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2499;
  display: none;
}

#zen-notif-panel-backdrop.visible {
  display: block;
}

.zen-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #2a2a2e);
  transition: background 0.15s;
}

.zen-notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.zen-notif-item.unread {
  border-left: 3px solid #3b82f6;
}

/* ── Confetti ── */
.zen-confetti-piece {
  position: fixed;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 2px;
}

@keyframes zenConfettiFall {
  0%   { transform: translateY(0) rotateZ(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(100vh) rotateZ(720deg); opacity: 0; }
}

/* ── Global search modal ── */
#modal-global-search {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

#modal-global-search.visible {
  display: flex;
}

/* ── Smooth modal fade-in ── */
@keyframes zenModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.zen-modal-animate {
  animation: zenModalIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
