/* ============================================================
   One F Stop — Shared Workspace Styles
   ============================================================ */

/* ── Page subtitle ─────────────────────────────────────────── */
.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.shared-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.shared-breadcrumb a {
  color: var(--accent);
}

.shared-breadcrumb span {
  color: var(--border);
}

/* ── Section ───────────────────────────────────────────────── */
.shared-section {
  padding: 2rem 2.5rem 5rem;
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Person cards ──────────────────────────────────────────── */
.shared-persons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shared-person-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.shared-person-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}

.person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.person-info {
  flex: 1;
}

.person-info h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.person-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.person-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.shared-person-card:hover .person-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── Folder tabs ───────────────────────────────────────────── */
.shared-folder-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.folder-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.folder-tab {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.folder-tab:hover { color: var(--white); }

.folder-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-icon { font-size: 1rem; }

.tab-count {
  background: var(--bg-3);
  border-radius: 20px;
  padding: 0.1rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.folder-tab.active .tab-count {
  background: rgba(200, 169, 110, 0.15);
  color: var(--accent);
}

/* ── Upload area ───────────────────────────────────────────── */
.shared-upload-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hidden-input {
  display: none;
}

.shared-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.shared-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.04);
}

.shared-drop-zone .drop-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.shared-drop-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.upload-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.shared-queue {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.shared-queue-list {
  max-height: 200px;
  overflow-y: auto;
}

/* ── Files grid ────────────────────────────────────────────── */
.shared-files {
  columns: 4;
  column-gap: 1rem;
}

.shared-file-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.shared-file-thumb {
  width: 100%;
  display: block;
  filter: brightness(0.85);
  transition: filter var(--transition);
}

.shared-file-card:hover .shared-file-thumb {
  filter: brightness(1);
}

.shared-file-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.shared-file-card:hover .shared-file-overlay {
  opacity: 1;
}

.shared-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(13,13,13,0.85);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.shared-btn-icon:hover {
  background: var(--accent);
  color: var(--bg);
}

.shared-file-meta {
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
}

.shared-file-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.shared-file-size-label {
  font-size: 0.68rem;
  color: var(--border);
  flex-shrink: 0;
}

/* Non-image file card */
.shared-file-card--file {
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.shared-file-icon {
  font-size: 2.5rem;
}

.shared-file-name {
  font-size: 0.78rem;
  color: var(--text);
  word-break: break-all;
  margin: 0;
}

.shared-file-size {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.shared-dl-btn {
  margin-top: 0.5rem;
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .shared-files { columns: 3; }
}

@media (max-width: 700px) {
  .shared-section { padding: 1.5rem 1rem 3rem; }
  .shared-files   { columns: 2; }
  .shared-person-card { padding: 1rem 1.2rem; }
  .folder-tab { padding: 0.6rem 0.8rem; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .shared-files   { columns: 1; }
  .folder-tabs    { gap: 0; }
  .folder-tab     { padding: 0.6rem 0.75rem; font-size: 0.7rem; flex: 1; text-align: center; }
  .shared-persons { gap: 0.75rem; }
  .shared-person-card { padding: 0.85rem 1rem; }
  .person-avatar  { width: 40px; height: 40px; font-size: 0.85rem; }
  .queue-actions  { flex-direction: column; }
  .queue-actions .btn { width: 100%; }
  .drop-buttons   { flex-direction: column; align-items: stretch; }
  .drop-buttons .btn { text-align: center; }
}
