/**
 * Nicole Campaign Archive
 * Version: 2.1.3
 * Updated: 2026-08-08
 * Release: NCA-V2.1.3-20260808
 */

.nca-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  box-sizing: border-box;
  width: min(1140px, calc(100vw - 40px));
  max-width: none;
  margin: 0 auto 40px;
  padding: 24px;
  border: 1px solid #d9dde2;
  background: #fff;
  color: #111;
}

.nca-filters__field label {
  display: block;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 700;
}

.nca-filters select {
  width: 100%;
  min-height: 48px;
  padding: 8px 40px 8px 12px;
  border: 1px solid #8b929a;
  border-radius: 0;
  background-color: #fff;
  color: #111;
  font: inherit;
}

.nca-filters__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nca-filters__submit,
.nca-filters__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #111;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}

.nca-filters__submit { background: #111; color: #fff; }
.nca-filters__clear { background: #fff; color: #111; }
.nca-filters__submit:hover { background: #333; border-color: #333; color: #fff; }
.nca-filters__clear:hover { background: #f0f0f0; color: #111; }
.nca-filters :focus-visible,
.nca-status:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }

.nca-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  background: #eef1f4;
  color: #111;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.nca-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nca-brand {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
  color: #333;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}

/* Elementor Loop Item: card structure and consistent live preview. */
.nca-campaign-card {
  --nca-brand-color: #111;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d9dde2;
  background: #fff;
  color: #111;
}

.nca-campaign-card *,
.nca-campaign-card *::before,
.nca-campaign-card *::after {
  box-sizing: border-box;
}

.nca-campaign-card__image,
.nca-campaign-card__image .elementor-widget-container,
.nca-campaign-card__image .elementor-shortcode,
.nca-campaign-card__image-figure,
.nca-campaign-card__image-element,
.nca-campaign-card__image img {
  display: block;
  width: 100%;
}

.nca-campaign-card__image-figure {
  margin: 0;
}

.nca-campaign-card__image img {
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.nca-campaign-card__body {
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.nca-campaign-card__body > .elementor-element,
.nca-campaign-card__status,
.nca-campaign-card__brand,
.nca-campaign-card__date,
.nca-campaign-card__title,
.nca-campaign-card__description,
.nca-campaign-card__cta {
  margin: 0;
}

.nca-campaign-card__status .elementor-shortcode,
.nca-campaign-card__brand .elementor-shortcode {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.nca-campaign-card__date,
.nca-campaign-card__date .elementor-shortcode {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.nca-campaign-card__title,
.nca-campaign-card__title .elementor-shortcode {
  overflow-wrap: anywhere;
  color: #111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.nca-campaign-card__description,
.nca-campaign-card__description .elementor-shortcode {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}

.nca-campaign-card__cta {
  margin-top: auto;
}

.nca-campaign-card__cta .elementor-widget-container,
.nca-campaign-card__cta .elementor-shortcode {
  width: 100%;
}

.nca-campaign-card__cta .elementor-shortcode,
.nca-campaign-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  background: var(--nca-brand-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease;
}

.nca-campaign-card:hover .nca-campaign-card__button,
.nca-campaign-card:focus-within .nca-campaign-card__button {
  filter: brightness(.82);
}

.nca-campaign-card--bmw { --nca-brand-color: #0066b1; }
.nca-campaign-card--mini { --nca-brand-color: #111; }
.nca-campaign-card--rolls-royce { --nca-brand-color: #6d1f48; }
.nca-campaign-card--ferrari { --nca-brand-color: #c41230; }
.nca-campaign-card--alpina { --nca-brand-color: #005a91; }
.nca-campaign-card--nicole { --nca-brand-color: #111; }

.nca-campaign-card--bmw .nca-brand { color: #0066b1; }
.nca-campaign-card--rolls-royce .nca-brand { color: #6d1f48; }
.nca-campaign-card--ferrari .nca-brand { color: #c41230; }
.nca-campaign-card--alpina .nca-brand { color: #005a91; }

.nca-result-count {
  width: min(100% - 40px, 1140px);
  margin: -20px auto 24px;
  color: #333;
  text-align: right;
}

.nca-status--accepting,
.nca-status--ongoing { background: #e8f5e9; color: #195b2a; }
.nca-status--scheduled { background: #e7f1fb; color: #164f7d; }
.nca-status--entry_closed,
.nca-status--ended { background: #f0f0f0; color: #555; }

.nca-campaign-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: min(100% - 40px, 1140px);
  margin: 24px auto;
  padding: 16px 20px;
  border: 1px solid #767676;
  background: #f4f4f4;
  color: #222;
}

@media (max-width: 767px) {
  .nca-filters {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    padding: 18px;
  }
  .nca-filters__actions { align-items: stretch; flex-direction: column; }
  .nca-filters__submit,
  .nca-filters__clear { width: 100%; text-align: center; }
  .nca-campaign-notice { width: min(100% - 24px, 1140px); }
  .nca-result-count { width: min(100% - 24px, 1140px); }
  .nca-campaign-card__image img { height: 200px; }
  .nca-campaign-card__body { padding: 20px; }
  .nca-campaign-card__title,
  .nca-campaign-card__title .elementor-shortcode { font-size: 20px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .nca-campaign-card__image img { height: 210px; }
  .nca-campaign-card__body { padding: 22px; }
  .nca-campaign-card__title,
  .nca-campaign-card__title .elementor-shortcode { font-size: 20px; }
}
