/* ==========================================================================
   ATLAS DIRECTORY & WORKSPACE COMPONENT STYLING
   ========================================================================== */

.tool-card--pending {
  background: var(--surface-soft);
  border-style: dashed;
  border-color: var(--line);
  opacity: 0.85;
}

.tool-card[hidden] {
  display: none !important;
}

.tool-card--pending:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--muted);
}

.tool-card__badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-card__badge-planned {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Sort dropdown */
#tool-sort {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

/* Workspace media & gallery elements */
.simple-media {
  margin-top: 18px;
}

.simple-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.simple-swatch {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 12px;
}

.simple-swatch--wide {
  height: 80px;
}

.simple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.simple-gallery figure {
  margin: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.simple-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.simple-gallery figcaption {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.simple-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Button Loading Spinner State */
.button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.button.is-loading .button__label {
  visibility: hidden;
}

.button.is-loading .button__spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: buttonSpin 0.7s linear infinite;
}

@keyframes buttonSpin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  padding: 70px 30px;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.empty-state h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
