/* wa-lint: skip */
/* Blog-hero: filer-rod → struktureret database */

.blog-hero-struct {
  width: 100%;
  aspect-ratio: 600 / 380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(49, 79, 89, 0.04), 0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .blog-hero-struct { background: var(--surface); }

.blog-hero-struct__slider {
  display: flex;
  width: 200%;
  height: 100%;
  animation: blog-struct-slide 14s ease-in-out infinite;
}

.blog-hero-struct__panel {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 16px 24px 18px;
  display: flex;
  flex-direction: column;
}

.blog-hero-struct__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(49, 79, 89, 0.10);
  margin-bottom: 14px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-struct__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-struct__count {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
}
.blog-hero-struct__count--bad { background: rgba(239, 68, 68, 0.10); color: rgb(185, 28, 28); }
.blog-hero-struct__count--good { background: rgba(0, 136, 60, 0.12); color: var(--brand-success, rgb(0, 136, 60)); }

.blog-hero-struct__files {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  align-content: start;
}

.blog-hero-struct__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(49, 79, 89, 0.04);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  color: var(--text, rgb(29, 35, 39));
}
[data-theme="dark"] .blog-hero-struct__file { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }

.blog-hero-struct__file--xls { border-left: 3px solid rgb(22, 163, 74); }
.blog-hero-struct__file--pdf { border-left: 3px solid rgb(239, 68, 68); }
.blog-hero-struct__file--doc { border-left: 3px solid rgb(37, 99, 235); }
.blog-hero-struct__file--mail { border-left: 3px solid rgb(245, 158, 11); }

.blog-hero-struct__file-icon { font-size: 14px; }
.blog-hero-struct__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-hero-struct__hint {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-style: italic;
  color: rgb(185, 28, 28);
  text-align: center;
}

/* PANEL 2: tree */
.blog-hero-struct__tree {
  flex: 1;
  background: rgba(49, 79, 89, 0.025);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .blog-hero-struct__tree { background: rgba(255,255,255,0.03); }

.blog-hero-struct__node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  color: var(--text, rgb(29, 35, 39));
}
[data-theme="dark"] .blog-hero-struct__node { color: rgba(255,255,255,0.85); }

.blog-hero-struct__node--root {
  background: var(--brand-50, rgb(49, 79, 89));
  color: rgb(255, 255, 255);
  font-weight: 700;
}

.blog-hero-struct__branch {
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px dashed rgba(49, 79, 89, 0.25);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.blog-hero-struct__node--child {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(49, 79, 89, 0.10);
}
[data-theme="dark"] .blog-hero-struct__node--child {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.blog-hero-struct__node-icon { font-size: 12px; color: rgba(49, 79, 89, 0.55); }

.blog-hero-struct__shared {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(0, 136, 60, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  color: var(--brand-success, rgb(0, 136, 60));
  text-align: center;
}

@keyframes blog-struct-slide {
  0%, 32%    { transform: translateX(0); }
  42%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-struct__slider { animation: none; transform: translateX(-50%); }
}
