/* ==== Banner and Site Title Styles ==== */
.angel-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: #111;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  display: block;
  margin: 0 auto;
}
.site-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.site-title {
  color: #e6f0fa;
  font-size: 2.7em;
  text-shadow: 0 2px 16px #1e90ff, 0 1px 0 #232b3b;
  background: rgba(30, 48, 90, 0.45);
  padding: 0.3em 1.5em;
  border-radius: 18px;
  letter-spacing: 0.04em;
  pointer-events: auto;
}

/* ==== Single Thread Layout ==== */
.thread-single {
  max-width: 800px;
  margin: 2.5em auto 3em auto;
}

/* ==== Post Image Styles ==== */
.post-image-wrap {
  text-align: center;
  margin: 1.2em 0;
}
.post-image-link {
  display: inline-block;
}
.post-image {
  max-width: 340px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(30, 48, 90, 0.18);
  border: 2px solid #232b3b;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(30, 48, 90, 0.25);
}
.post-image-caption {
  font-size: 0.92em;
  color: #888;
  margin-top: 0.4em;
}

/* ==== Image Modal Styles ==== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 24, 32, 0.92);
  align-items: center;
  justify-content: center;
}
.modal-close {
  position: absolute;
  top: 2.5vw;
  right: 3vw;
  font-size: 2.5em;
  color: #fff;
  cursor: pointer;
  font-family: sans-serif;
  z-index: 2001;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #7ec8e3;
}
.modal-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px #000;
  display: block;
  margin: 0 auto;
}

/* ==== OP Tag Styles ==== */
.tag-op {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  background: #1e90ff;
  color: #fff;
}

/* Theme-specific forum-search styles for index.html and others */
.forum-header .forum-search input[type="text"] {
  padding: 0.3em 0.7em;
  border-radius: 4px;
  border: 1px solid #444;
  background: #e6f0fa;
  color: #232b3b;
  transition: background 0.3s, color 0.3s, border 0.3s;
}
body.night .forum-header .forum-search input[type="text"] {
  background: #181f2a;
  color: #fff;
  border: 1px solid #444;
}
.forum-header .forum-search button {
  background: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3em 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
body.day .forum-header .forum-search button {
  background: #1e90ff;
  color: #fff;
}
body.night .forum-header .forum-search button {
  background: #7ec8e3;
  color: #232b3b;
}
/* Theme-specific forum-header styles for index.html and others */
.forum-header {
  background: #232b3b;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
body.day .forum-header {
  background: #e6f0fa;
  color: #232b3b;
}
body.night .forum-header {
  background: #232b3b;
  color: #fff;
}
.forum-header .forum-nav a {
  color: #1e90ff;
  transition: color 0.3s;
}
body.day .forum-header .forum-nav a {
  color: #1e90ff;
}
body.night .forum-header .forum-nav a {
  color: #7ec8e3;
}
/* --- Blue Forum-Like Background --- */
body {
  background: #0a1a2f url('../Images/forum-bg.jpg') repeat-x top center;
  background-size: cover;
  color: #e0e6f0;
  font-family: Verdana;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.day {
  background: #e6f0fa url('../Images/forum-bg.jpg') repeat-x top center;
  background-size: cover;
  color: #232b3b;
}
body.night {
  background: #0a1a2f url('../Images/forum-bg.jpg') repeat-x top center;
  background-size: cover;
  color: #e0e6f0;
}

/* --- Sidebar with blue accent --- */
.sidebar {
  background: #232b3bcc;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 2px solid #1e90ff33;
}
body.day .sidebar {
  background: #e6f0faee;
  color: #232b3b;
  border: 2px solid #7ec8e3;
}
.sidebar a {
  color: #1e90ff;
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
body.day .sidebar a {
  color: #232b3b;
}
.sidebar a:hover {
  background: #1e90ff;
  color: #fff;
  transform: scale(1.08);
}
body.day .sidebar a:hover {
  background: #7ec8e3;
  color: #232b3b;
  transform: scale(1.08);
}

/* --- Main content card style --- */
.main-content {
  background: #fff;
  color: #232b3b;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.10);
  padding: 2em;
  margin: 2em 0;
}
body.night .main-content {
  background: #232b3b;
  color: #e0e6f0;
}

/* Center the login card on the page */
body > .card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Optional: set a min-width or max-width for responsiveness */
  min-width: 320px;
  max-width: 90vw;
}

/* If you want the card to be centered even with other content, use flexbox: */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* Login button top right */
.login-btn {
  position: fixed;
  top: 1em;
  right: 1em;
  padding: 0.5em 1em;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1001;
  transition: background 0.2s, transform 0.2s;
}
body.day .login-btn {
  background: #eee;
  color: #222;
}
.login-btn:hover {
  background: #222;
  color: #fff;
  transform: scale(1.08);
}
body.day .login-btn:hover {
  background: #ddd;
  color: #222;
  transform: scale(1.08);
}

/* --- Login Page Styles --- */
.card {
  background: rgba(30, 40, 60, 0.97);
  color: #bfe6ff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 2.5em 2em 2em 2em;
  max-width: 350px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.card .title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1.2em;
  color: #bfe6ff;
  letter-spacing: 1px;
}

.field {
  display: flex;
  align-items: center;
  margin-bottom: 1.2em;
  width: 100%;
}

.input-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.7em;
  fill: #bfe6ff;
  flex-shrink: 0;
}

.input-field {
  flex: 1;
  padding: 0.6em 0.8em;
  border: 1px solid #bfe6ff;
  border-radius: 6px;
  background: #1a2332;
  color: #bfe6ff;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
}

.input-field:focus {
  border: 1.5px solid #5eb3ff;
  background: #222e44;
}

.btn {
  width: 100%;
  padding: 0.7em 0;
  background: linear-gradient(90deg, #5eb3ff 0%, #1a2332 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5em;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: linear-gradient(90deg, #1a2332 0%, #5eb3ff 100%);
  transform: scale(1.04);
}

/* Scrapbook gallery styles */
.scrapbook-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  padding: 2em 0;
}

.scrapbook-item {
  position: relative;
  display: inline-block;
}

.scrapbook-caption {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  background: rgba(40, 40, 40, 0.92);
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  font-size: 1em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: 
    opacity 0.3s,
    transform 0.3s;
}

.scrapbook-item:hover .scrapbook-caption {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scale(1) translateX(10px);
}

.scrapbook-gallery img {
  filter: grayscale(60%) brightness(0.9);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1.5px 0 #ccc;
  border: 3px solid #eee;
  border-radius: 12px;
  transition: 
    filter 0.3s,
    transform 0.3s,
    box-shadow 0.3s,
    z-index 0.3s;
  width: 220px;
  height: auto;
  object-fit: cover;
  margin: 0.5em;
  z-index: 1;
  position: relative;
}

.scrapbook-gallery img:hover {
  filter: none;
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 3px 0 #aaa;
  z-index: 2;
  border-color: #fff;
}

/* --- Headings and links --- */
h1, h2, h3, h4, h5, h6 {
  color: #1e90ff;
  letter-spacing: 0.03em;
}
body.night h1, body.night h2, body.night h3, body.night h4, body.night h5, body.night h6 {
  color: #7ec8e3;
}
a {
  color: #1e90ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #7ec8e3;
  text-decoration: underline;
}
body.night a {
  color: #7ec8e3;
}
body.night a:hover {
  color: #1e90ff;
}

/* --- Adjust license footer for blue palette --- */
footer.license {
  background: rgba(34,43,59,0.97);
  color: #e0e6f0;
  border-top: 2px solid #1e90ff;
}
footer.license .license-text {
  color: #7ec8e3;
}
body.day footer.license {
  background: rgba(230,240,250,0.97);
  color: #232b3b;
  border-top: 2px solid #7ec8e3;
}
body.day footer.license .license-text {
  color: #1e90ff;
}
