/* BASE */
.blog-wrapper {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 4%, rgba(212, 175, 55, 0.08), transparent 30%),
    linear-gradient(180deg, #020817 0%, #06163a 42%, #071d4b 100%);
  color: #ffffff;
  min-height: 100vh;
  box-sizing: border-box;
}

.blog-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.25;
  pointer-events: none;
}

/* HERO */
.blog-hero {
  position: relative;
  z-index: 1;
  padding: 120px 0 88px;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(2, 8, 23, 0.98), rgba(5, 18, 47, 0.94));
  border-bottom: 1px solid rgba(212, 175, 55, 0.10);
}

.blog-hero-content {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  text-align: center;
}

.blog-hero-label {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #d4af37;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.blog-label-icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  stroke: #d4af37;
}

.blog-hero-title {
  font-family: var(--font-display);
  margin: 0;
  color: #d4af37;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.blog-title-accent {
  color: rgba(255, 255, 255, 0.92);
}

.blog-hero-subtitle {
  font-family: var(--font-body);
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(255, 245, 230, 0.84);
  font-size: 1.04rem;
  line-height: 1.85;
}

.blog-hero-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  color: #d4af37;
}

.blog-divider-line {
  width: 74px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.82),
    transparent
  );
}

.blog-divider-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: #d4af37;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.22));
}

/* MAIN AREA */
.blog-main {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 72px 0 110px;
}

/* TOOLBAR */
.blog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-filter-pill {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  color: rgba(255, 245, 230, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(8, 24, 58, 0.62);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-filter-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.blog-filter-pill.active {
  color: #061333;
  border-color: rgba(225, 189, 69, 0.68);
  background: linear-gradient(135deg, #e2c15b 0%, #c99a16 55%, #9f7410 100%);
  box-shadow:
    0 12px 28px rgba(201, 154, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0;
}

/* SEARCH */
.blog-search-form {
  width: 100%;
}

.blog-search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: rgba(212, 175, 55, 0.72);
  pointer-events: none;
}

.blog-search-input,
.blog-search-form input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0 18px 0 44px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(8, 24, 58, 0.64) !important;
  outline: none !important;
  font-family: var(--font-body) !important;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-sizing: border-box;
}

.blog-search-input::placeholder,
.blog-search-form input[type="search"]::placeholder {
  color: rgba(255, 245, 230, 0.42) !important;
}

.blog-search-input:focus,
.blog-search-form input[type="search"]:focus {
  border-color: rgba(212, 175, 55, 0.58) !important;
  background: rgba(8, 28, 72, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08) !important;
}

/* RESULT INFO */
.blog-result-info {
  margin: 0 0 34px;
  color: rgba(255, 245, 230, 0.82);
  font-size: 0.92rem;
  line-height: 1.7;
  font-family: var(--font-body);
}

.blog-result-info strong {
  color: #d4af37;
}

.blog-result-info em {
  color: rgba(255, 255, 255, 0.92);
  font-style: normal;
}

/* FEATURED ARTICLE */
.blog-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 24, 58, 0.74);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  margin-bottom: 70px;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.blog-featured:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(212, 175, 55, 0.06);
}

.blog-featured-img-wrap {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  background: #020817;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.blog-featured:hover .blog-featured-img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(2, 8, 23, 0.25)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.blog-featured-body {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-title {
  font-family: var(--font-display);
  margin: 22px 0 20px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0.035em;
}

.blog-featured-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-featured-title a:hover {
  color: #d4af37;
}

.blog-featured-excerpt {
  font-family: var(--font-body);
  margin: 0 0 30px;
  color: rgba(255, 245, 230, 0.84);
  font-size: 1rem;
  line-height: 1.9;
}

/* META INFO */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.blog-cat {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  color: #061333;
  background: linear-gradient(135deg, #e2c15b 0%, #c99a16 100%);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
}

.blog-cat:hover {
  opacity: 0.9;
}

.blog-date {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 245, 230, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.meta-icon {
  width: 14px;
  height: 14px;
  stroke: rgba(212, 175, 55, 0.75);
}

/* BUTTONS */
.blog-btn-featured,
.blog-btn-read {
  font-family: var(--font-display);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d4af37;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 800;
  padding-bottom: 10px;
  width: fit-content;
}

.blog-btn-featured::after,
.blog-btn-read::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, #d4af37, transparent);
  transition: width 0.35s ease;
}

.blog-btn-featured:hover::after,
.blog-btn-read:hover::after {
  width: 100%;
}

.btn-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.blog-btn-featured:hover .btn-icon,
.blog-btn-read:hover .btn-icon {
  transform: translateX(4px);
}

/* GRID ARTIKEL */
.blog-grid-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 34px;
}

.blog-section-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

.blog-grid-text {
  font-family: var(--font-display);
  color: rgba(255, 245, 230, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

/* CARD DESIGN */
.blog-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 24, 58, 0.72);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.38s ease,
    border-color 0.38s ease,
    box-shadow 0.38s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow:
    0 26px 68px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(212, 175, 55, 0.06);
}

.blog-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(212, 175, 55, 0.06), transparent 60%),
    #020817;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.24));
  opacity: 0.72;
}

.blog-card-no-img {
  display: grid;
  place-items: center;
  color: rgba(212, 175, 55, 0.45);
}

.blog-card-no-img svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
  stroke: rgba(212, 175, 55, 0.3);
}

.blog-card-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-family: var(--font-display);
  margin: 20px 0 18px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.34;
  letter-spacing: 0.02em;
}

.blog-card-title a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #d4af37;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  margin: 0 0 24px;
  color: rgba(255, 245, 230, 0.82) !important;
  font-size: 0.94rem;
  line-height: 1.8;
  flex: 1;
}

/* PAGINATION */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 58px;
}

.blog-pagination .page-numbers {
  font-family: var(--font-display);
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: rgba(255, 245, 230, 0.84);
  background: rgba(8, 24, 58, 0.58);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.blog-pagination .page-numbers:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.42);
}

.blog-pagination .page-numbers.current {
  color: #061333;
  border-color: rgba(225, 189, 69, 0.68);
  background: linear-gradient(135deg, #e2c15b 0%, #c99a16 55%, #9f7410 100%);
  font-weight: 800;
}

.blog-pagination svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* EMPTY STATE */
.blog-empty {
  max-width: 640px;
  margin: 72px auto 0;
  padding: 46px 34px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 24, 58, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.blog-empty svg {
  width: 46px;
  height: 46px;
  color: #d4af37;
  margin-bottom: 20px;
  stroke-width: 1.5;
  margin-inline: auto;
}

.blog-empty-title {
  font-family: var(--font-display);
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.55rem;
}

.blog-empty-text {
  font-family: var(--font-body);
  margin: 0;
  color: rgba(255, 245, 230, 0.8);
  line-height: 1.75;
}

/* REVEAL */
.blog-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.blog-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-grid .blog-card.blog-reveal:nth-child(1) { transition-delay: 0.04s; }
.blog-grid .blog-card.blog-reveal:nth-child(2) { transition-delay: 0.10s; }
.blog-grid .blog-card.blog-reveal:nth-child(3) { transition-delay: 0.16s; }
.blog-grid .blog-card.blog-reveal:nth-child(4) { transition-delay: 0.04s; }
.blog-grid .blog-card.blog-reveal:nth-child(5) { transition-delay: 0.10s; }
.blog-grid .blog-card.blog-reveal:nth-child(6) { transition-delay: 0.16s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-img-wrap,
  .blog-featured-img {
    min-height: 300px;
  }

  .blog-featured-body {
    padding: 36px 32px;
  }

  .blog-toolbar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-search-form {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .blog-main {
    padding: 40px 20px 80px;
  }

  .blog-hero-title {
    font-size: 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .blog-hero {
    padding: 90px 0 64px;
  }

  .blog-hero-content {
    width: min(100% - 28px, 920px);
  }

  .blog-hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.30em;
  }

  .blog-hero-title {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
    letter-spacing: 0.05em;
  }

  .blog-hero-divider {
    gap: 12px;
    margin-top: 22px;
  }

  .blog-divider-line {
    width: 50px;
  }

  .blog-hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .blog-filter-pill {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .blog-search-form {
    max-width: 100%;
  }

  .blog-search-input {
    min-height: 44px;
  }

  .blog-featured {
    border-radius: 18px;
    margin-bottom: 50px;
  }

  .blog-featured-img-wrap,
  .blog-featured-img {
    min-height: 230px;
  }

  .blog-featured-body {
    padding: 28px 20px;
  }

  .blog-card-body {
    padding: 24px 20px 28px;
  }

  .blog-card:hover,
  .blog-featured:hover {
    transform: none;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .blog-reveal,
  .blog-featured,
  .blog-card,
  .blog-card-img,
  .blog-featured-img,
  .blog-filter-pill,
  .blog-btn-featured,
  .blog-btn-read,
  .btn-icon,
  .blog-pagination .page-numbers {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
