/* src/css/style.css */

/* --- General & Global Styles --- */
:root {
  --primary-text: #e0e0e0;
  --secondary-text: #b0b0b0;
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --primary-accent: #bb86fc;
  --border-color: #333333;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--background-color);
  color: var(--primary-text);
  line-height: 1.6;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header & Footer --- */
header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  text-align: center;
}

header h1 a {
  color: var(--primary-text);
  font-size: 1.5rem;
  font-weight: 600;
}

header h1 a:hover {
  text-decoration: none;
  color: var(--primary-accent);
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--secondary-text);
  border-top: 1px solid var(--border-color);
}

/* --- Main Content Area --- */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- Homepage: Series & Episode Lists --- */
.series-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.series-card h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.episode-list {
  list-style: none;
  padding: 0;
}

.episode-list li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
}

.episode-list li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* --- Episode Reader Page --- */
.episode-reader {
  max-width: 100%; /* Allow the reader to be wider than standard text content */
}

.episode-reader h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.comic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000; /* Pure black background for the comic strip */
}

/* The images within the comic container have no margins to create a seamless vertical strip */
.comic-container img {
  margin: 0;
  padding: 0;
  width: 100%; /* Make images take up the full width of the container */
  max-width: 800px; /* But don't let them get too wide on large screens */
}