.dps-card-clone,
.dps-gallery-item-clone {
  animation: dps-rise-in .48s cubic-bezier(.2,.75,.25,1) both;
}

@keyframes dps-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.dps-loading,
.dps-empty,
.dps-error {
  width: 100%;
  margin: 16px 0;
  color: #5f6672;
}

.dps-loading { animation: dps-pulse 1s ease-in-out infinite alternate; }
.dps-error { color: #b42318; }

@keyframes dps-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

.dps-native-preview {
  display: grid;
  grid-template-columns: repeat(var(--dps-columns, 3), minmax(0, 1fr));
  gap: 24px;
}

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

.dps-preview-style--default .dps-native-card,
.dps-preview-style--compact .dps-native-card {
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(16, 24, 40, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dps-preview-style--default .dps-native-card:hover,
.dps-preview-style--compact .dps-native-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(16, 24, 40, .1);
}

.dps-native-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f3f5;
}

.dps-native-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dps-native-card:hover .dps-native-card__image img { transform: scale(1.035); }

.dps-preview-style--default .dps-native-card__body { padding: 24px; }
.dps-preview-style--compact .dps-native-card__body { padding: 18px; }

.dps-native-card__filters {
  margin-bottom: 8px;
  color: var(--dps-accent, #ff5a1f);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dps-native-card__title {
  margin: 0 0 8px;
  color: #14171d;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.2;
}

.dps-native-card__meta {
  margin-bottom: 12px;
  color: #717784;
  font-size: 13px;
}

.dps-native-card__excerpt {
  margin-bottom: 20px;
  color: #555d6a;
  line-height: 1.65;
}

.dps-native-card__excerpt > :last-child { margin-bottom: 0; }

.dps-native-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 9px;
  background: var(--dps-accent, #ff5a1f);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.dps-preview-style--compact .dps-native-card__excerpt { display: none; }

.dps-filterbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.dps-filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dps-filter-style--default .dps-filter-group legend,
.dps-filter-style--compact .dps-filter-group legend {
  margin-bottom: 7px;
  color: #4d5561;
  font-size: 12px;
  font-weight: 700;
}

.dps-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dps-filter-style--default .dps-filter-button,
.dps-filter-style--compact .dps-filter-button,
.dps-filter-style--default .dps-filter-reset,
.dps-filter-style--compact .dps-filter-reset {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #dfe2e7;
  border-radius: 999px;
  background: #fff;
  color: #252a32;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.dps-filter-style--compact .dps-filter-button,
.dps-filter-style--compact .dps-filter-reset {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.dps-filter-style--default .dps-filter-button:hover,
.dps-filter-style--compact .dps-filter-button:hover,
.dps-filter-style--default .dps-filter-button.is-active,
.dps-filter-style--compact .dps-filter-button.is-active {
  border-color: var(--dps-accent, #ff5a1f);
  background: var(--dps-accent, #ff5a1f);
  color: #fff;
}

.dps-filter-reset { margin-left: auto; }
.dps-filter-reset[hidden] { display: none !important; }

.dps-native-gallery {
  display: grid;
  grid-template-columns: repeat(var(--dps-gallery-columns, 3), minmax(0, 1fr));
  gap: 16px;
}

.dps-gallery-style--default .dps-native-gallery__item,
.dps-gallery-style--compact .dps-native-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f3f5;
}

.dps-native-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.dps-native-gallery__item:hover img { transform: scale(1.035); }
.dps-gallery-style--compact { gap: 8px; }
.dps-shortcode-error { padding: 12px 16px; border-left: 3px solid #b42318; background: #fff3f2; color: #7a271a; }

@media (max-width: 980px) {
  .dps-native-preview { grid-template-columns: repeat(min(2, var(--dps-columns, 3)), minmax(0, 1fr)); }
  .dps-native-gallery { grid-template-columns: repeat(min(2, var(--dps-gallery-columns, 3)), minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .dps-native-preview,
  .dps-native-gallery { grid-template-columns: 1fr; }
  .dps-filterbar { align-items: stretch; }
  .dps-filter-group { flex: 1 1 100%; }
  .dps-filter-reset { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dps-card-clone,
  .dps-gallery-item-clone,
  .dps-native-card,
  .dps-native-card img { animation: none !important; transition: none !important; }
}
