
/* Publish Modal - Centered */
.modal-pub {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-pub.show {
  opacity: 1;
  pointer-events: auto;
}

.pub-container {
  width: 500px;
  max-width: 90%;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-pub.show .pub-container {
  transform: scale(1);
}

.pub-hd {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}
.pub-bd {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.ipt-title {
  display: block;
  width: 100%;
  border: none;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  outline: none;
  background: transparent;
}
.ipt-desc {
  display: block;
  width: 100%;
  border: none;
  font-size: 15px;
  height: 80px;
  resize: none;
  outline: none;
  color: #333;
  margin-bottom: 20px;
  background: transparent;
  line-height: 1.6;
}

/* Cell List Layout */
.cell-list {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 -20px; /* Bleed to edges */
}

.cell-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.cell-item:last-child {
  border-bottom: none;
}
.cell-item.clickable:hover {
  background: #f9f9f9;
  cursor: pointer;
}

.cell-icon {
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
  color: #666;
}
.secret-icon {
  color: #333;
}

.cell-content {
  flex: 1;
}
.cell-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.cell-title.golden {
  color: #d4af37; /* Gold color */
}
.cell-sub {
  font-size: 12px;
  color: #999;
}

.cell-value {
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cell-arrow {
  margin-left: 10px;
  color: #ccc;
  font-size: 18px;
  font-family: monospace;
  font-weight: bold;
}

/* Quadrant Picker */
.quad-picker {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px;
  align-items: center;
}
.quad-option {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fafafa;
  color: #555;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.quad-option:hover {
  border-color: #111;
  color: #111;
}
.quad-option.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* User Pill / Avatars */
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 20px;
}
.up-avt {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.user-avatars-row {
  display: flex;
  align-items: center;
  margin-right: -4px; /* overlap compensation if needed, but here simple spacing */
}
.up-avt-s {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}
.up-avt-s:first-child { margin-left: 0; }
.more-count {
  font-size: 12px;
  color: #999;
  margin-left: 4px;
}

.placeholder {
  color: #bbb;
  font-size: 14px;
}

.hidden-date-input {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Attach Section */
.attach-section {
  margin-top: 24px;
}
.sec-label {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin-bottom: 12px;
}
.attach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ag-item {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-btn {
  border: 1px dashed #ccc;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s;
}
.add-btn:hover {
  border-color: var(--blue);
  background: #fff;
}
.plus-icon {
  font-size: 24px;
  color: #ccc;
  font-weight: 300;
}
.add-btn:hover .plus-icon {
  color: var(--blue);
}
.file-preview {
  background: #f9f9f9;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  text-align: center;
  padding: 4px;
}
.fp-icon { font-size: 20px; }
.fp-name { 
  width: 100%; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.fp-del {
  position: absolute;
  top: 0; right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 16px; height: 16px;
  line-height: 14px;
  text-align: center;
  border-bottom-left-radius: 4px;
  cursor: pointer;
}


/* Switch */
.switch {
  width: 44px; height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  position: relative;
  transition: 0.3s;
  cursor: pointer;
}
.switch.on { background: #333; }
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch.on::after { left: 22px; }

.btn-publish-nav {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
}
.btn-publish-nav:hover { opacity: 0.9; }
.btn-publish-nav:active { transform: scale(0.96); }

.secret-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}
.secret-glow.active {
  opacity: 1;
}
