
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@700;800;900&display=swap');

body.news-page {
  background: #0b1a3a !important;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -5%, #1a4a9e 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(80, 40, 160, 0.4), transparent 50%),
    radial-gradient(ellipse 40% 30% at 100% 80%, rgba(255, 200, 40, 0.12), transparent 45%),
    linear-gradient(180deg, #0d2450 0%, #0a1428 40%, #0c0c12 100%) !important;
  background-attachment: fixed !important;
  font-family: Nunito, system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* floating stars decoration */
body.news-page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,220,80,.5), transparent),
    radial-gradient(2px 2px at 80% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(3px 3px at 60% 70%, rgba(255,200,50,.35), transparent),
    radial-gradient(2px 2px at 30% 85%, rgba(180,220,255,.3), transparent);
  opacity: 0.7;
}

.news-main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.news-hero {
  text-align: center;
  margin: 12px 0 32px;
  padding: 28px 16px 20px;
  background:
    linear-gradient(180deg, rgba(30, 80, 180, 0.35), rgba(10, 20, 40, 0.2));
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.news-hero::after {
  content: "★";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 2rem;
  color: #f5e642;
  opacity: 0.7;
  transform: rotate(12deg);
}
.news-hero h1 {
  font-family: "Lilita One", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,0.35), 0 0 40px rgba(100,160,255,0.4);
}
.news-hero h1 span {
  background: #f5e642;
  color: #0a1a3a;
  padding: 0.06em 0.28em 0.1em;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-2deg);
  box-shadow: 0 5px 0 rgba(0,0,0,0.3);
}
.news-hero p {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Admin compose */
.news-compose {
  background: rgba(8, 16, 36, 0.9);
  border: 2px solid rgba(245, 230, 66, 0.35);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 28px;
}
.news-compose h3 { margin: 0 0 12px; color: #f5e642; font-family: "Lilita One", sans-serif; }
.news-compose input,
.news-compose textarea,
.news-compose select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0a1228;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
}
.news-compose-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards — paper / championship style */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-card {
  background: #f2f0ea;
  color: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 8px 0 rgba(0,0,0,0.25),
    0 16px 32px rgba(0,0,0,0.35);
  transform: rotate(-0.4deg);
  transition: transform .15s, box-shadow .15s;
  border: 3px solid #fff;
}
.news-card:nth-child(even) { transform: rotate(0.5deg); }
.news-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.01);
  box-shadow:
    0 12px 0 rgba(0,0,0,0.28),
    0 24px 48px rgba(0,0,0,0.4);
}
.news-card.featured {
  transform: rotate(0deg);
  border: 4px solid #f5e642;
  box-shadow:
    0 10px 0 rgba(200, 160, 0, 0.4),
    0 20px 50px rgba(0, 40, 120, 0.45);
}
.news-card.featured:hover {
  transform: translateY(-4px) scale(1.01);
}

/* tape corners */
.news-card::before,
.news-card::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 18px;
  background: rgba(255, 255, 200, 0.55);
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.news-card::before {
  top: 10px;
  left: -6px;
  transform: rotate(-18deg);
}
.news-card::after {
  top: 12px;
  right: -4px;
  transform: rotate(22deg);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #1a3a6e;
  border-bottom: 3px solid #fff;
}
.news-card.featured img {
  height: 280px;
}

.news-card .body {
  padding: 18px 20px 22px;
  background: #f2f0ea;
}

.news-card .kind {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}
.news-card .kind.patch {
  background: #f5e642;
  color: #1a1a1a;
}
.news-card .kind.server {
  background: #5b4dff;
  color: #fff;
}
.news-card .kind.event {
  background: #22c55e;
  color: #052e16;
}

.news-card h3 {
  font-family: "Lilita One", sans-serif;
  font-size: 1.45rem;
  margin: 0 0 10px;
  line-height: 1.15;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.news-card.featured h3 {
  font-size: 1.85rem;
}

.news-card p {
  margin: 0 0 12px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
}

.news-card .date {
  font-size: 0.78rem;
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card .news-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #f5e642;
  color: #111;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

@media (min-width: 760px) {
  .news-card.featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .news-card.featured img {
    height: 100%;
    min-height: 300px;
    border-bottom: none;
    border-right: 3px solid #fff;
  }
}


/* ===== Article (same universe as news list) ===== */
body.article-page .news-main {
  max-width: 820px;
}
.news-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #f5e642;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.news-back:hover { color: #fff; }

.article-paper {
  background: #f2f0ea;
  color: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.25),
    0 20px 48px rgba(0,0,0,0.4);
  position: relative;
}
.article-paper::before,
.article-paper::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 18px;
  background: rgba(255, 255, 200, 0.55);
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.article-paper::before {
  top: 12px; left: -6px; transform: rotate(-16deg);
}
.article-paper::after {
  top: 14px; right: -4px; transform: rotate(20deg);
}
.article-hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #fff;
  background: #1a3a6e;
}
.article-body-wrap {
  padding: 22px 24px 28px;
}
.article-paper .kind {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}
.article-paper .kind.patch { background: #f5e642; color: #1a1a1a; }
.article-paper .kind.server { background: #5b4dff; color: #fff; }
.article-paper .kind.event { background: #22c55e; color: #052e16; }
.article-paper .date {
  font-size: 0.78rem;
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-paper h1 {
  font-family: "Lilita One", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 16px;
  line-height: 1.15;
  color: #111;
  text-transform: uppercase;
}
.article-text {
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 700;
  color: #222;
}

