/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in the
   HTML <head> (faster than @import, which is render-blocking and serial). */

:root {
  --lubelo-navy:   #080808;
  --lubelo-blue:   #A67C00;
  --lubelo-accent: #c49500;
  --lubelo-orange: #F97316;
  --lubelo-light:  #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--lubelo-navy);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--lubelo-accent);
}
.navbar__logo {
  height: 72px;
  width: auto;
  display: block;
}
@media (max-width: 1024px) {
  .navbar__logo { height: 60px; }
  .navbar__inner { height: 72px; }
}
@media (max-width: 640px) {
  .navbar__logo { height: 52px; }
  .navbar__inner { height: 64px; padding: 0 0.75rem; }
}
.navbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lubelo-blue);
  flex-shrink: 0;
}
.navbar__mainsite {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.navbar__mainsite:hover { color: rgba(255,255,255,0.7); }

/* ── Hero ── */
.main-content { flex: 1; }

.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(166,124,0,0.12);
  border: 1px solid rgba(196,149,0,0.3);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lubelo-accent);
  margin-bottom: 1rem;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lubelo-accent);
}
.hero__heading {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero__accent { color: var(--lubelo-accent); }
.hero__subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ── Search ── */
.search-wrap { margin-bottom: 2rem; }
.search-input {
  width: 100%;
  max-width: 340px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  display: block;
  margin: 0 auto;
}
.search-input::placeholder { color: rgba(255,255,255,0.25); }
.search-input:focus { border-color: rgba(166,124,0,0.6); }

/* ── Stats ── */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.hero__stat { text-align: center; }
.hero__stat-number {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--lubelo-accent);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ── Showcase ── */
.showcase { padding: 0 1rem 5rem; }
.showcase__inner { max-width: 1152px; margin: 0 auto; }

/* ── Filter ── */
.filter-wrap {
  position: relative;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 1.25rem 0;
}
.filter__btn {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
}
.filter__btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.filter__btn.active {
  background: var(--lubelo-blue);
  border-color: var(--lubelo-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(166,124,0,0.4);
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.875rem;
}

/* ── Card ── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(166,124,0,0.35);
}
.card__thumb {
  position: relative;
  height: 192px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
.card:hover .card__thumb img { transform: scale(1.05); }
.card__thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}
.card__featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--lubelo-orange);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.card__body { padding: 14px; }
.card__category {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lubelo-accent);
  margin-bottom: 4px;
}
.card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__actions { display: flex; gap: 8px; }
.btn-preview {
  flex: 1;
  background: var(--lubelo-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
  text-align: center;
}
.btn-preview:hover { background: #c49500; }
.btn-open {
  padding: 8px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.btn-open:hover { background: rgba(255,255,255,0.12); }
.btn-info--active {
  background: rgba(166,124,0,0.2);
  border-color: rgba(166,124,0,0.4);
  color: var(--lubelo-accent);
}

/* ── Card description panel ── */
.card__desc[hidden] { display: none; }
.card__desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__desc-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.card__tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(166,124,0,0.15);
  border: 1px solid rgba(166,124,0,0.3);
  color: var(--lubelo-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card__open-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lubelo-accent);
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(166,124,0,0.4);
  background: rgba(166,124,0,0.1);
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  align-self: flex-start;
}
.card__open-link:hover {
  background: rgba(166,124,0,0.22);
  border-color: rgba(196,149,0,0.6);
}

/* ── Shared button ── */
.btn-primary {
  display: inline-block;
  background: var(--lubelo-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
  margin-top: 4px;
  cursor: pointer;
}
.btn-primary:hover { background: #c49500; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem;
}
.footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }
.footer__brand { color: var(--lubelo-accent); font-weight: 600; }
.footer__links { display: flex; gap: 24px; }
.footer__link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}

/* ── Detail Panel ── */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.detail-overlay[hidden] { display: none; }
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.detail-card {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.detail-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.detail-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: rgba(255,255,255,0.04);
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.detail-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.detail-body { padding: 1.5rem; }

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.detail-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lubelo-accent);
}
.detail-featured {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--lubelo-orange);
}
.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.detail-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1rem 0;
}
.detail-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.detail-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.detail-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
}
.detail-tag::before {
  content: '✓';
  color: var(--lubelo-accent);
  font-weight: 700;
  font-size: 0.7rem;
}
.detail-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(166,124,0,0.1);
  border: 1px solid rgba(166,124,0,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 1.25rem;
}
.detail-highlight p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.detail-highlight strong { color: var(--lubelo-accent); }
.detail-actions {
  display: flex;
  gap: 10px;
}
.detail-btn-open {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
}
.detail-btn-open:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Responsive ── */

/* Small phones (up to 479px) */
@media (max-width: 479px) {
  .hero {
    padding: 2rem 1rem 1.5rem;
  }
  .hero__heading {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .search-input {
    max-width: 100%;
  }

  /* Stats: vertical stack — each stat is a horizontal [number | label] row */
  .hero__stats {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .hero__stat-divider { display: none; }
  .hero__stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 230px;
  }
  .hero__stat-number {
    font-size: 1.5rem;
    min-width: 58px;
    text-align: right;
    line-height: 1;
  }
  .hero__stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-align: left;
    color: rgba(255,255,255,0.4);
  }

  /* Filter: horizontal scroll with fade hint */
  .filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem 0;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter__btn { flex-shrink: 0; }
  .filter-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--lubelo-navy));
  }

  /* Cards: single column, bigger touch targets */
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .btn-preview, .btn-open {
    padding: 11px 8px;
  }

  /* Detail panel: bottom sheet */
  .detail-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .detail-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
  }
  .detail-thumb {
    height: 170px;
    border-radius: 20px 20px 0 0;
  }
  .detail-actions {
    flex-direction: column;
    gap: 8px;
  }
  .detail-btn-open {
    padding: 13px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 6px; }
}

/* Mobile landscape / larger phones (480px – 639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .hero { padding: 2.5rem 1rem 2rem; }

  .hero__stats { gap: 1rem; }
  .hero__stat-divider { height: 28px; }

  .filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter__btn { flex-shrink: 0; }
  .filter-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--lubelo-navy));
  }

  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .detail-overlay { align-items: flex-end; padding: 0; }
  .detail-card { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 88vh; }
  .detail-thumb { height: 190px; border-radius: 20px 20px 0 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 6px; }
}

/* Tablet portrait (640px – 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet landscape (768px+) */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Admin form */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }
}

.footer__link:hover { color: rgba(255,255,255,0.5); }
