/* CHARACTER PAGE STYLING – MIKU THEME */
.character-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  color: #1b1b1b;
  font-family: "Segoe UI", Roboto, Helvetica, sans-serif;
}

/* Main section (left) */
.character-main {
  flex: 1;
  min-width: 280px;
}

.character-main h1 {
  font-size: 2.2rem;
  color: #17bebb;
  margin-bottom: 1rem;
}

.character-main p {
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: #f4faff;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #9be7f4;
}

/* Event section */
.event-section {
  margin-top: 2rem;
}

.event-section h2 {
  font-size: 1.6rem;
  color: #155f69;
  margin-bottom: 1rem;
}

.event-block {
  background: #fefefe;
  border: 1px solid #d5f2f9;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.event-block h3 {
  color: #17bebb;
  margin-bottom: 0.5rem;
}

.event-block p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sidebar (right box) */
.character-sidebar {
  background: linear-gradient(145deg, #e6faff, #ffffff);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  max-width: 360px;
  width: 100%;
  margin-top: 2rem;
  margin-right: 1rem;
  position: sticky;
  top: 1rem;
  text-align: left;
}

.image-switcher {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.image-switcher button {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  background-color: #cbf1ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #146a7c;
  transition: all 0.2s ease;
}

.image-switcher button:hover {
  background-color: #a3e8fa;
}

.image-switcher button.active {
  background-color: #17bebb;
  color: white;
}

.character-sidebar img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.character-sidebar img:hover {
  transform: scale(1.03);
}

.character-sidebar p {
  margin-bottom: 0.8rem;
}

.character-sidebar label {
  display: block;
  font-weight: 600;
  color: #00bcd4;
  margin-bottom: 0.25rem;
}

.character-sidebar span {
  color: #2e2e2e;
  font-weight: 500;
  display: inline-block;
  margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .character-page {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .character-sidebar {
    max-width: 100%;
    margin-right: 0;
    position: relative;
    top: unset;
  }
}

/* IMAGE MODAL */
#image-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#image-modal.active {
  display: flex;
}

#image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  user-select: none;
}

#image-modal .close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
  user-select: none;
  z-index: 11000;
}

#image-modal .close-btn:hover {
  background: rgba(0,0,0,0.7);
}
/* Table of Events */
.table-of-events {
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: #f8fcff;
  border-left: 4px solid #9be7f4;
  padding: 1rem;
  border-radius: 10px;
}

.table-of-events h2 {
  font-size: 1.4rem;
  color: #17bebb;
  margin-bottom: 0.6rem;
}

.table-of-events ul {
  list-style: none;
  padding: 0;
}

.table-of-events li {
  margin-bottom: 0.5rem;
}

.table-of-events a {
  text-decoration: none;
  color: #007c91;
  font-weight: 600;
}

.table-of-events a:hover {
  text-decoration: underline;
  color: #00acc1;
}

/* Events Section */
.events-section {
  margin-top: 2rem;
}

.event-block {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f4faff;
  border-left: 4px solid #b2ebf2;
  border-radius: 8px;
}

.event-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0097a7;
}

.event-block p {
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.event-toc {
  margin: 2rem 0;
  background: #e6faff;
  padding: 1rem;
  border-left: 4px solid #9be7f4;
  border-radius: 8px;
}

.event-toc h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #17bebb;
}

.event-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.event-toc li {
  margin: 0.5rem 0;
}

.event-toc a {
  text-decoration: none;
  color: #146a7c;
  font-weight: bold;
}

.event-toc a:hover {
  text-decoration: underline;
}

.event-list {
  margin-top: 2rem;
}

.event-block {
  margin-bottom: 2rem;
  background: #f4faff;
  padding: 1rem;
  border-left: 4px solid #17bebb;
  border-radius: 8px;
}

.event-block h3 {
  margin-top: 0;
  color: #17bebb;
}
.character-trivia {
  margin-top: 3rem;
  padding: 1rem;
  background: #f9fcfe;
  border-left: 5px solid #d3f2ff;
  border-radius: 10px;
}

.character-trivia h2 {
  color: #17bebb;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.character-trivia ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.character-trivia li {
  margin-bottom: 0.6rem;
  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.6;
}
