/* ==========================================================
   MINECO STUDIOS - NEWS
   ========================================================== */

.news-page,
.news-detail-page {
  min-height: 100vh;
}

.news-hero {
  padding: 150px 24px 44px;
  text-align: center;
}

.news-hero-inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.news-kicker {
  margin: 0 0 10px;
  color: #7f8b8b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.news-hero h1 {
  margin: 0 0 16px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.news-hero h1 span {
  color: #03fcf0;
  text-shadow: 0 0 18px rgba(3, 252, 240, 0.5);
}

.news-hero p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: #c7c7c7;
  font-size: 1.02rem;
  line-height: 1.72;
}

.news-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 96px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.news-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(13, 18, 18, 0.96), rgba(7, 8, 8, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, #03fcf0, transparent);
  opacity: 0.55;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(3, 252, 240, 0.3);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(3, 252, 240, 0.09);
}

.news-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(3, 252, 240, 0.08), transparent 60%),
    #090b0b;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-card .featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(3, 252, 240, 0.34);
  border-radius: 999px;
  background: rgba(3, 252, 240, 0.12);
  color: #03fcf0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.news-card .card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  text-align: left;
}

.news-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.25;
}

.news-card .news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  color: #8d9797;
  font-size: 0.82rem;
}

.news-card .news-meta .author {
  color: #03fcf0;
  font-weight: 700;
}

.news-card .card-content > p {
  flex: 1;
  margin: 0 0 18px;
  color: #b9bebe;
  font-size: 0.94rem;
  line-height: 1.65;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag,
.category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(3, 252, 240, 0.2);
  border-radius: 999px;
  background: rgba(3, 252, 240, 0.07);
  color: #03fcf0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid rgba(3, 252, 240, 0.34);
  border-radius: 10px;
  background: rgba(3, 252, 240, 0.04);
  color: #03fcf0;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 252, 240, 0.6);
  background: rgba(3, 252, 240, 0.1);
  box-shadow: 0 0 18px rgba(3, 252, 240, 0.12);
}

/* ==========================================================
   NEWS DETAIL PAGE
   ========================================================== */

.news-detail-page {
  padding-top: 112px;
}

.news-detail {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 90px;
}

.back-to-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #9aa3a3;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-news:hover {
  color: #03fcf0;
}

.news-content-container {
  overflow: hidden;
  border: 1px solid rgba(3, 252, 240, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(13, 18, 18, 0.96), rgba(7, 8, 8, 0.98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.news-header {
  padding: 0 38px 10px;
  text-align: left;
}

.news-hero-image {
  width: calc(100% + 76px);
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 -38px 34px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.news-title {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  text-shadow: 0 0 15px rgba(3, 252, 240, 0.18);
}

.news-header .news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: #919b9b;
  font-size: 0.9rem;
}

.news-header .author {
  color: #03fcf0;
  font-weight: 700;
}

.news-body {
  padding: 18px 38px 42px;
  color: #d0d5d5;
  font-size: 1.04rem;
  line-height: 1.8;
}

.news-body p {
  margin: 0 0 20px;
}

.news-body h2 {
  margin: 34px 0 18px;
  color: #03fcf0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.7rem;
}

.news-body h3 {
  margin: 28px 0 14px;
  color: #fff;
  font-size: 1.3rem;
}

.news-body ul,
.news-body ol {
  margin: 20px 0;
  padding-left: 28px;
}

.news-body li {
  margin-bottom: 9px;
}

.news-body a {
  color: #03fcf0;
}

.news-body img {
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  display: block;
  border: 1px solid rgba(3, 252, 240, 0.14);
  border-radius: 12px;
}

.news-body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid #03fcf0;
  background: rgba(3, 252, 240, 0.05);
  color: #cdd2d2;
}

/* ==========================================================
   LOADING / EMPTY
   ========================================================== */

.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 58px 20px;
  border: 1px dashed rgba(3, 252, 240, 0.18);
  border-radius: 18px;
  background: rgba(12, 14, 14, 0.72);
  color: #a4adad;
  text-align: center;
}

.loading-state i,
.empty-state i,
.error-state i {
  display: block;
  margin-bottom: 14px;
  color: #03fcf0;
  font-size: 2rem;
}

.skeleton-card {
  min-height: 360px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #151818 25%, #202424 50%, #151818 75%);
  background-size: 200% 100%;
  animation: newsLoading 1.5s infinite;
}

@keyframes newsLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .news-hero {
    padding: 118px 18px 36px;
  }

  .news-shell {
    width: min(100% - 28px, 1320px);
    padding-bottom: 72px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card .card-content {
    padding: 20px;
  }

  .news-detail-page {
    padding-top: 88px;
  }

  .news-detail {
    width: min(100% - 28px, 1040px);
    padding: 24px 0 64px;
  }

  .news-header {
    padding: 0 20px 8px;
  }

  .news-hero-image {
    width: calc(100% + 40px);
    margin: 0 -20px 24px;
  }

  .news-body {
    padding: 14px 20px 30px;
    font-size: 0.98rem;
  }
}
