/* ===========================================
   EXPLORER COMPONENT
   Embedded file browser + baked index pages
   =========================================== */

/* --- Block (embedded in CMS page) --- */

.explorer-block {
  margin: 32px 0;
}

.explorer-block .explorer-frame {
  width: 100%;
  border: none;
  background: #fff;
}

/* SEO link directory - compact, accessible */
.explorer-links {
  margin-top: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  line-height: 2;
  color: #999;
}

.explorer-links a {
  color: #888;
  text-decoration: none;
  margin-right: 4px;
}

.explorer-links a::after {
  content: " \00b7";
  color: #ddd;
}

.explorer-links a:last-child::after {
  content: "";
}

.explorer-links a:hover {
  color: #1a1a1a;
}

/* --- Baked index pages --- */

.explorer-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* Breadcrumb */
.explorer-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.explorer-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.explorer-breadcrumb a:hover {
  color: #1a1a1a;
}

.explorer-breadcrumb span {
  color: #1a1a1a;
}

.explorer-index h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* Auto-generated intro text */
.explorer-intro {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 700px;
}

/* Folder grid */
.explorer-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.explorer-folder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #fafafa;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.15s, box-shadow 0.2s;
}

.explorer-folder:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Rich folders with preview thumbnail */
.explorer-folder-rich {
  padding: 0;
  overflow: hidden;
}

.explorer-folder-rich .explorer-folder-name,
.explorer-folder-rich .explorer-folder-count {
  padding: 0 16px;
}

.explorer-folder-rich .explorer-folder-name {
  padding-top: 12px;
}

.explorer-folder-rich .explorer-folder-count {
  padding-bottom: 12px;
}

.explorer-folder-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #eee;
}

.explorer-folder-name {
  font-weight: 500;
  font-size: 15px;
}

.explorer-folder-count {
  font-size: 12px;
  color: #999;
}

/* Artwork card grid */
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .explorer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .explorer-grid {
    grid-template-columns: 1fr;
  }
}

.explorer-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fafafa;
}

.explorer-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.explorer-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: #eee;
}

.explorer-card-title {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.explorer-card-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

/* Medium section headings */
.explorer-section-title {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 28px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.explorer-section-title:first-of-type {
  margin-top: 0;
}

.explorer-section-count {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

/* Print */
@media print {
  .explorer-block .explorer-frame {
    display: none;
  }
  .explorer-links {
    font-size: 10px;
  }
}
