@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --bg-color: #534e46;
  --nav-bg-color: #262322;
  --text-color: #F2E5D7;
  --text-muted: #C2B4B4;
  --accent-color: #7C886D;
  --shadow-color: rgba(0,0,0,0.3);
}

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

a {
  color: #9D9C8B;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:hover {
  color: #7C886D;
  text-decoration: underline;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 12vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-image: url('./assets/mosaic.webp');
  background-size: 25%;
  background-repeat: repeat;
  background-attachment: fixed;
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

#desktop-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 12vh;
  background-color: var(--nav-bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5vw;
  z-index: 1000;
}

.nav-left,
.nav-center,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-center {
  justify-content: center;
}

.nav-center img {
  height: 13vh;
  width: auto;
  margin: 0 2vw;
  margin-top: 1vh;
  transition: transform 300ms ease;
}

.nav-center img:hover {
  cursor: default;
}

.nav-right {
  justify-content: flex-end;
  gap: 1.25vw;
}

.back-link {
  color: var(--text-color);
  font-size: 1rem;
  text-decoration: none;
  transition: color 300ms ease;
}

.back-link:hover {
  color: var(--accent-color);
}

.socialIcons a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-left: 1vw;
  transition: color 0.3s ease;
  opacity: 0.85;
}

.socialIcons a:hover {
  color: var(--accent-color);
  opacity: 1;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

main {
  margin: 5vh auto;
  max-width: 900px;
  padding: 0 2vw;
}

.latest-updates {
  padding-bottom: 10vh;
}

.latest-updates h2,
.changelog-calendar h2 {
  font-size: 2.5vw;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2vh;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2vh;
}

.update-card {
  background-color: var(--nav-bg-color);
  padding: 2vh 2vw;
  border-radius: 1vw;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.3s ease;
}

.update-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.update-tags {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin: 0.25rem 0;
}

.update-desc {
  color: var(--text-color);
  font-size: 1.1rem;
}

.update-desc ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);       /* Ensure text color is consistent */
  font-weight: 400;               /* Normal weight for main list */
}

.update-desc ul ul {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  color: #C2B4B4;
  list-style-type: circle;
  font-weight: 300;               /* Lighter weight for sublist */
}

.changelog-calendar ul {
  list-style-type: disc;
  margin-left: 2rem;
  margin-bottom: 2vh;
  color: inherit;   
  font-weight: inherit; 
}

.note {
  font-style: italic;
  font-size: 0.85em;
  color: #C2B4B4;
}
.subbullet {
  display: list-item;
  margin-left: 20px;
  font-size: 0.85em;
  color: #C2B4B4;
}

.changelog-calendar summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  background-color: var(--nav-bg-color);
  padding: 1rem;
  border-radius: 1vw;
  color: var(--text-color);
  margin-bottom: 0.5vh;
}

.changelog-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out;
}

.changelog-details[open] .changelog-content {
  max-height: 1000px;
  opacity: 1;
}

.changelog-details summary {
  list-style: none;
}

.changelog-details summary::-webkit-details-marker {
  display: none;
}

.changelog-details summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  background-color: var(--nav-bg-color);
  padding: 1rem;
  border-radius: 1vw;
  color: var(--text-color);
  margin-bottom: 0.5vh;
}

.arrow {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.changelog-details[open] .arrow {
  transform: rotate(-45deg);
}