/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= ROOT ================= */
:root {
  --bg-main: #020617;
  --bg-top: #111827;
  --bg-card: #0f172a;

  --text-main: #e5e7eb;
  --text-soft: #cbd5f5;

  --accent: #facc15;
  --accent-dark: #f59e0b;
}

/* ================= BODY ================= */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, var(--bg-top), var(--bg-main) 65%);
  color: var(--text-main);
  min-height: 100vh;
}

/* ================= NAVBAR ================= */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;
  padding: 12px 20px;

  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.95)
  );

  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  white-space: nowrap;
}

/* ================= NAV LINKS ================= */
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

nav a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ================= HERO / MAIN ================= */
.main {
  max-width: 1100px;
  margin: 48px auto;
  padding: 44px;

  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.95)
  );

  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.main h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.6px;
  color: #f9fafb;
}

.main p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ================= HERO ACTIONS ================= */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ================= BUTTON ================= */
.button {
  display: inline-block;
  padding: 13px 30px;

  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #020617;

  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.6);
}

.button.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

/* ================= POSTS BASE (SAFE) ================= */
.post-highlight {
  width: 100%;
  margin: 48px auto;
  padding: 0 16px;
}

.post-highlight h3 {
  max-width: 960px;
  margin: 0 auto 18px;
  color: var(--accent);
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ================= POST CARD ================= */
.post-card {
  max-width: 960px;
  margin: 0 auto;

  background: #000;
  padding: 32px 36px;
  border-radius: 22px;

  cursor: pointer;
  border: 1px solid rgba(250, 204, 21, 0.25);

  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(250, 204, 21, 0.22);
}

.post-card h4 {
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 22px;
  color: #f9fafb;
}

.post-card:hover h4 {
  color: var(--accent);
}

.post-card p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.post-meta {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 22px;
}

/* ================= POST MODAL BASE ================= */
.post-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 5000;

  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.post-modal.active {
  display: flex;
}

.post-modal-box {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;

  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 26px;
  padding: 36px 30px;

  overflow-y: auto;
  position: relative;

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
}

/* ================= CLOSE ================= */
.post-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 20px;
  cursor: pointer;
  color: var(--accent);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  nav {
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .main {
    margin: 36px 16px;
    padding: 30px 24px;
  }

  .main h2 {
    font-size: 26px;
  }

  .hero-actions {
    gap: 14px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .post-card {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .post-card h4 {
    font-size: 17.5px;
  }

  .post-modal-box {
    max-width: 95%;
    padding: 24px;
  }
}
