/* ── Anúnsiu Frontend — Theme-compatible ── */

/* ─── ARCHIVE ─── */
.anunsiu-archive-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}
.lmd-content .anunsiu-archive-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}
.anunsiu-archive-header h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.anunsiu-archive-subtitle {
  color: #6c757d;
  margin: 0;
}

.anunsiu-toolbar {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.anunsiu-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.anunsiu-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.anunsiu-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.anunsiu-tab:hover { color: #212529; background: #f8f9fa; }
.anunsiu-tab.active { color: #fff; background: #212529; }
.anunsiu-tab-count {
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  color: #6c757d;
}
.anunsiu-tab.active .anunsiu-tab-count {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.anunsiu-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.anunsiu-filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c757d'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.anunsiu-filter-select:hover { border-color: #adb5bd; }
.anunsiu-filter-select:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 2px rgba(13,110,253,0.15); }
.has-active-filter .anunsiu-filter-select { border-color: #86b7fe; color: #212529; }
.anunsiu-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #dc3545;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.anunsiu-filter-clear:hover { background: #dc3545; color: #fff; }
.anunsiu-filter-submit {
  padding: 6px 16px;
  background: #212529;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .anunsiu-toolbar-row { flex-direction: column; align-items: stretch; }
  .anunsiu-date-filter { margin-left: 0; margin-top: 4px; }
  .anunsiu-filter-select { flex: 1; min-width: 0; }
}

.anunsiu-item {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
}
.anunsiu-item-inner {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.anunsiu-item:hover .anunsiu-item-inner {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
  border-color: transparent;
}
.anunsiu-item-bar { width: 5px; flex-shrink: 0; }
.anunsiu-item-body { flex: 1; padding: 16px; }
.anunsiu-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.anunsiu-item-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.anunsiu-item-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  color: #495057;
}
.anunsiu-item-status {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.anunsiu-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #212529;
  line-height: 1.4;
}
.anunsiu-item:hover .anunsiu-item-title { color: #0056b3; }
.anunsiu-item-excerpt {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.anunsiu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #6c757d;
}
.anunsiu-item-time { margin-left: auto; }
.anunsiu-expired { color: #dc3545; font-weight: 600; }
.anunsiu-pagination { margin-top: 24px; }

/* ─── SINGLE ─── */
.anunsiu-single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}
.lmd-content .anunsiu-single-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}
.anunsiu-status-banner {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}
.anunsiu-status-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.anunsiu-status-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.anunsiu-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  border-radius: 12px;
  text-decoration: none;
}
.anunsiu-badge-cat { background: #212529; color: #fff; }
.anunsiu-badge-status { font-size: 0.75rem; font-weight: 600; }
.anunsiu-status-meta { font-size: 0.78rem; color: #6c757d; }

.anunsiu-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.85rem;
}
.anunsiu-info-item { min-width: 120px; }
.anunsiu-info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
}
.anunsiu-info-value { font-weight: 600; }

.anunsiu-body { margin-bottom: 24px; }
.anunsiu-body p { line-height: 1.7; }

.anunsiu-table-section { margin-bottom: 24px; }
.anunsiu-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}
.anunsiu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.anunsiu-table thead th {
  background: #212529;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.anunsiu-table tbody td {
  padding: 8px 12px;
  border-top: 1px solid #eee;
}
.anunsiu-table tbody tr:nth-child(even) { background: #f8f9fa; }
.anunsiu-table tbody tr:hover { background: #f0f4ff; }

.anunsiu-pdf-section { margin-top: 16px; }
.anunsiu-pdf-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin: 0 0 12px;
}
.anunsiu-pdf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-bottom: 8px;
  text-decoration: none;
  color: #212529;
  transition: all 0.15s ease;
}
.anunsiu-pdf-item:hover {
  border-color: #adb5bd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateX(4px);
}
.anunsiu-pdf-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(220,53,69,0.06);
  color: #dc3545;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.anunsiu-pdf-info { flex: 1; min-width: 0; }
.anunsiu-pdf-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anunsiu-pdf-meta { font-size: 0.75rem; color: #6c757d; }
.anunsiu-pdf-download {
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid #212529;
  color: #212529;
  white-space: nowrap;
  transition: all 0.15s ease;
  opacity: 0.7;
}
.anunsiu-pdf-item:hover .anunsiu-pdf-download { opacity: 1; }

.anunsiu-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
}

.anunsiu-empty { text-align: center; padding: 48px 16px; }
.anunsiu-empty-title { font-size: 1.1rem; color: #6c757d; }
.anunsiu-empty-desc { font-size: 0.85rem; color: #6c757d; }

@media print {
  .anunsiu-status-banner { border-left: 3px solid #000 !important; background: #f8f8f8 !important; }
  .anunsiu-toolbar, .anunsiu-filter-tabs, .anunsiu-pdf-download { display: none !important; }
  .anunsiu-table { font-size: 11px; }
}
