/* ─────────────────────────────────────────
   dokumenty.css – ZS nr 1 Tarnobrzeg
   ───────────────────────────────────────── */

/* ─── HERO ─── */
.docs-hero {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 2rem;
  border-bottom: 3px solid var(--gold);
}
.docs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.docs-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}
.docs-hero h1 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .25rem;
}
.docs-hero p {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ─── LAYOUT ─── */
.docs-main {
  flex: 1;
  padding: 2.5rem 2rem 4rem;
}
.docs-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── BREADCRUMB ─── */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp .25s ease both;
}
.docs-bc-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.docs-bc-link:hover { color: var(--navy); }
.docs-bc-current {
  font-weight: 600;
  color: var(--text);
}
.docs-bc-sep {
  display: flex;
  align-items: center;
  color: var(--border);
}
.docs-bc-sep svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* ─── SECTION LABEL ─── */
.docs-section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-top: .5rem;
}
.docs-section-label svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--blue);
  flex-shrink: 0;
}
.docs-count {
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 8px;
  letter-spacing: 0;
}

/* ─── FOLDERY – GRID ─── */
.docs-grid--folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  animation: fadeUp .3s ease both;
}
.docs-folder-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: var(--shadow);
}
.docs-folder-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(46,95,170,.1);
  transform: translateY(-1px);
}
.docs-folder-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-lt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.docs-folder-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.docs-folder-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.docs-folder-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-folder-meta {
  font-size: 12px;
  color: var(--muted);
}
.docs-folder-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.docs-folder-card:hover .docs-folder-arrow {
  transform: translateX(3px);
  color: var(--blue);
}
.docs-folder-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ─── PLIKI – LISTA ─── */
.docs-files-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  animation: fadeUp .3s ease .05s both;
}
.docs-file-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: var(--shadow);
}
.docs-file-row:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
  box-shadow: 0 4px 16px rgba(46,95,170,.08);
}

/* Ikona pliku */
.docs-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-file-icon svg {
  width: 19px;
  height: 19px;
}

/* Kolory ikon */
.docs-icon--pdf     { background: #fee2e2; color: #dc2626; }
.docs-icon--word    { background: #dbeafe; color: #2563eb; }
.docs-icon--excel   { background: #dcfce7; color: #16a34a; }
.docs-icon--ppt     { background: #ffedd5; color: #ea580c; }
.docs-icon--img     { background: #f3e8ff; color: #9333ea; }
.docs-icon--video   { background: #fce7f3; color: #db2777; }
.docs-icon--archive { background: #fefce8; color: #ca8a04; }
.docs-icon--default { background: var(--blue-lt); color: var(--blue); }

/* Info */
.docs-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.docs-file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-file-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.docs-ext-badge {
  background: var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.docs-file-dl {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.docs-file-row:hover .docs-file-dl {
  color: var(--blue);
  transform: translateY(1px);
}
.docs-file-dl svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ─── PUSTY FOLDER ─── */
.docs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 4rem 2rem;
  color: var(--muted);
  text-align: center;
}
.docs-empty svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  opacity: .45;
}
.docs-empty p {
  font-size: 14px;
}

/* ─── FOOTER (jeśli nie masz własnego) ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 1.5rem 2rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-copy {
  font-size: 13px;
  margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .docs-hero { padding: 1.75rem 1rem; }
  .docs-main  { padding: 1.5rem 1rem 3rem; }
  .docs-grid--folders {
    grid-template-columns: 1fr;
  }
  .docs-hero h1 { font-size: 1.3rem; }
  .docs-file-row { padding: .65rem .85rem; }
}