/* ================================
   CATEGORY PAGE
================================ */

.category-page {
  padding: 70px 20px 100px;
}

/* ================================
   CATEGORY CONTAINER
================================ */

.category-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px);

  position: relative;
  overflow: hidden;

  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(77, 184, 255, 0.35);

  color: #ffffff;

  animation: funnelGlow 3.5s infinite ease-in-out;
}

.category-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  border: 1px solid rgba(77, 184, 255, 0.45);

  box-shadow:
    0 0 14px rgba(77, 184, 255, 0.35),
    0 0 34px rgba(77, 184, 255, 0.16),
    inset 0 0 24px rgba(77, 184, 255, 0.06);
}

.category-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    transparent 150px
  );
}

.category-shell > * {
  position: relative;
  z-index: 2;
}

/* ================================
   CATEGORY HEADER
================================ */

.category-header {
  text-align: center;
  margin-bottom: 55px;
}

.category-eyebrow {
  display: block;
  margin-bottom: 14px;

  color: #4db8ff;

  font-size: 0.9rem;
  font-weight: 800;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.category-title {
  position: relative;
  display: inline-block;

  margin: 0 0 28px;
  padding-bottom: 18px;

  font-family: "Acme", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;

  color: #ffffff;

  text-shadow:
    0 0 15px rgba(77, 184, 255, 0.25),
    0 0 35px rgba(77, 184, 255, 0.12);
}

.category-title::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 70%;
  height: 4px;

  transform: translateX(-50%);

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #4db8ff,
    #ffffff,
    #4db8ff,
    transparent
  );

  box-shadow:
    0 0 12px rgba(77, 184, 255, 0.8),
    0 0 25px rgba(77, 184, 255, 0.4);
}

.category-description {
  max-width: 760px;
  margin: 0 auto;

  font-size: 1.1rem;
  line-height: 1.8;

  color: rgba(255, 255, 255, 0.86);
}

/* ================================
   CATEGORY POST GRID
================================ */

.category-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* ================================
   POST CARD
================================ */

.category-post-card {
  height: 100%;
  overflow: hidden;

  border-radius: 24px;

  background: rgba(77, 184, 255, 0.04);

  border: 1px solid rgba(77, 184, 255, 0.22);
  border-left: 5px solid #4db8ff;

  backdrop-filter: blur(12px);

  box-shadow:
    0 0 12px rgba(77, 184, 255, 0.12),
    0 0 24px rgba(77, 184, 255, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.category-post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 184, 255, 0.45);
  border-left-color: #ffffff;

  box-shadow:
    0 0 18px rgba(77, 184, 255, 0.22),
    0 0 38px rgba(77, 184, 255, 0.12),
    0 22px 55px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ================================
   POST IMAGE
================================ */

.category-post-image {
  display: block;
  overflow: hidden;
}

.category-post-image img {
  display: block;

  width: 100%;
  height: 240px;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.category-post-card:hover .category-post-image img {
  transform: scale(1.04);
}

/* ================================
   POST CONTENT
================================ */

.category-post-content {
  padding: 28px;
}

.category-post-content h2 {
  margin: 0 0 12px;

  font-family: "Acme", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.category-post-content h2 a {
  color: #ffffff;
  text-decoration: none;
}

.category-post-content h2 a:hover {
  color: #4db8ff;
}

.category-post-meta {
  margin-bottom: 16px;

  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.58);
}

.category-post-content p {
  margin: 0 0 22px;

  font-size: 1rem;
  line-height: 1.75;

  color: rgba(255, 255, 255, 0.86);
}

/* ================================
   READ MORE BUTTON
================================ */

.category-read-more {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 12px 22px;

  border-radius: 999px;

  border: 1px solid rgba(77, 184, 255, 0.35);

  background: rgba(0, 0, 0, 0.85);

  color: #ffffff;

  text-decoration: none;
  text-transform: uppercase;

  font-family: "Acme", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-read-more:hover {
  transform: translateY(-2px);

  box-shadow:
    0 0 15px rgba(77, 184, 255, 0.35),
    0 0 30px rgba(77, 184, 255, 0.18);
}

/* ================================
   NAVIGATION / NO POSTS
================================ */

.category-navigation,
.category-no-posts {
  grid-column: 1 / -1;
  margin-top: 35px;
  text-align: center;
}

.category-navigation a {
  color: #4db8ff;
  text-decoration: none;
  font-family: "Acme", sans-serif;
  font-size: 1.1rem;
}

.category-no-posts h2 {
  font-family: "Acme", sans-serif;
  font-size: 2.4rem;
  color: #ffffff;
}

.category-no-posts p {
  color: rgba(255, 255, 255, 0.82);
}

/* ================================
   TABLET
================================ */

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

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {
  .category-page {
    padding: 45px 16px 80px;
  }

  .category-shell {
    padding: 34px 22px;
  }

  .category-header {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .category-post-content {
    padding: 24px;
  }

  .category-post-image img {
    height: 210px;
  }
}
