@font-face {
  font-family: 'Poppins';
  src: url('font/Poppins-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

:root {
  color-scheme: only light;
}

@media (max-width: 500px) {
  .idol-card { width: 100%; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fafafa;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/Sphere_Stage_(Exterior)_Full.webp") no-repeat center center;
  background-size: cover;
  filter: blur(8px);
  z-index: -1;
}

.navbar {
  width: 100%;
  background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(37,99,235,0.28);
  border-bottom: 1.5px solid rgba(255,255,255,0.12);
  gap: 12px;
}

.nav-logo {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-links li a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.22s ease;
  white-space: nowrap;
  position: static;
}

.nav-links li a::after {
  display: none;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

@media (max-width: 850px) {
  .nav-links { gap: 2px; }
  .nav-links li a { font-size: 0.82rem; padding: 5px 9px; }
  .nav-logo { font-size: 0.95rem; }
}

.changelog-section {
  padding: 3rem 2rem 5rem;
  max-width: 820px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2.2rem;
  color: #1252dd;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(18, 82, 221, 0.2);
  background: white;
  display: inline-block;
  padding: 0.3rem 1.6rem 0.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.6rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.month-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0.85rem;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
}

.month-nav-btn {
  background: transparent;
  border: none;
  color: #1252dd;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 16px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit;
}

.month-nav-btn:hover {
  background: #1252dd;
  color: white;
}

.month-nav-btn:disabled {
  color: #ccc;
  cursor: default;
}

.month-nav-btn:disabled:hover {
  background: transparent;
  color: #ccc;
}

.month-display {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1252dd;
  padding: 6px 10px;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
  border-left: 1px solid rgba(18,82,221,0.12);
  border-right: 1px solid rgba(18,82,221,0.12);
}

.no-entries-msg {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 2.5rem 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: none;
}

.changelog-entry {
  margin-bottom: 1.1rem;
}

.entry-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.changelog-entry:hover .entry-card {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  transform: translateY(-2px);
}

.changelog-date {
  width: 100%;
  background: #0f4054;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
  padding: 0.9rem 1.3rem;
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease;
}

.changelog-date:hover {
  background: #1a6685;
}

.date-label {
  display: flex;
  align-items: center;
  gap: 10px;
}


.date-chevron {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-entry.active .date-chevron {
  transform: rotate(180deg);
}

.changelog-content {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff5f7;
}

.changelog-entry.active .changelog-content {
  padding-bottom: 1.1rem;
  border-top: 1px solid rgba(96, 165, 250, 0.15);
}

.changelog-content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.changelog-content > ul {
  padding-left: 0;
}

.changelog-content li {
  font-size: 0.9rem;
  margin-bottom: 5px;
  line-height: 1.8;
}

.changelog-header-green,
.changelog-header-red,
.changelog-header-blue,
.changelog-header-blue2,
.changelog-header-time {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  border-radius: 20px;
  margin: 10px 0 4px;
  color: white;
  list-style: none;
  animation: fadeIn 0.4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.changelog-header-green  { background: #27ae60; }
.changelog-header-red    { background: #c0392b; }
.changelog-header-blue   { background: #2980b9; }
.changelog-header-blue2  { background: #34495e; }
.changelog-header-time   { background: #8e44ad; }

li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.character-mention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.character-mention img {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hamburger .bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
    border-bottom: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 32px rgba(29,78,216,0.35);
  }

  body.nav-open .nav-links {
    display: flex;
    animation: navSlideDown 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-links li a {
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 10px;
    display: block;
    width: 100%;
    text-align: left;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  }

  body.nav-open .hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .changelog-section { padding: 2rem 1rem 4rem; }
  .page-header h1 { font-size: 1.7rem; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}