/* =========================================================
   BASE STYLES
   ========================================================= */
body {
  background-color: #1F0F53;
  color: #FFDB99;
  font-family: "ABeeZee", sans-serif;
  margin: 0;
}

/* Global Page Wrapper */
.page-wrapper {
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem 1.5rem;
}

/* Global Paragraph Styling */
p {
  color: #e6e6e6;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem 0;
}

p strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

/* =========================================================
   FONTS
   ========================================================= */
.coiny-regular {
  font-family: "Coiny", system-ui;
  font-style: normal;
  font-weight: 400;
}

.abeezee-regular {
  font-family: "ABeeZee", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.abeezee-regular-italic {
  font-family: "ABeeZee", sans-serif;
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   HEADER
   ========================================================= */
.hero {
  margin: 0 auto;
  max-width: 900px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.logo-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-img {
  height: auto;
  width: 20%;
}

.site-title {
  color: #FFDB99;
  font-family: "Coiny", system-ui;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
}

/* =========================================================
   EXTERNAL LINKS (Brand Colors)
   ========================================================= */

.external-link {
  color: #ffe55c; /* brand yellow */
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 229, 92, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.external-link:hover {
  color: #ff7bd5; /* brand pink */
  border-color: rgba(255, 123, 213, 0.6);
}

.external-link:active {
  color: #c59cff; /* brand purple */
  border-color: rgba(197, 156, 255, 0.6);
}

.external-link::after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.external-link:hover::after {
  opacity: 1;
}

a[href^="http"]
  :not([href*="badlasagna"])
  :not([href*="heycynwrites"])
  :not(.social-icon) {
  color: #ffe55c;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 229, 92, 0.4);
  padding-bottom: 2px;
}


a[href^="http"]
:not([href*="badlasagna"])
:not([href*="heycynwrites"])
:not(.social-icon)
:hover {
  color: #ff7bd5;
  border-color: rgba(255, 123, 213, 0.6);
}

.icon {
  border-bottom: none !important;
  text-decoration: none !important;
  padding-bottom: 0 !important;
}

/* =========================================================
   NAVIGATION BUTTONS
   ========================================================= */
.nav-buttons {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  border-radius: 12px;
  color: #0d1b3d;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  min-width: 200px;
  padding: 1rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

/* Button Colors */
.btn-yellow { background-color: #ffe55c; }
.btn-purple { background-color: #b38bff; color: #fff; }
.btn-pink   { background-color: #ff6fae; color: #fff; }

/* Responsive Nav */
@media (min-width: 600px) {
  .nav-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================================
   COMIC VIEWER
   ========================================================= */

/* Comic Image */
.comic-img {
  background: #111;
  border-radius: 8px;
  display: block;
  margin: 1.5rem auto 2rem auto;
  max-width: 900px;
  padding: 1rem;
  width: 100%;
}

/* Comic Title + Intro */
.comic-title {
  color: #FFDB99;
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  text-align: center;
}

.comic-intro {
  color: #dcdcdc;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0.5rem auto 2rem auto;
  max-width: 700px;
  text-align: center;
}

/* Comic Navigation */
.comic-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.comic-nav .btn {
  background-color: #b38bff;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.comic-nav .btn:hover {
  transform: translateY(-3px);
}

.comic-nav .disabled {
  opacity: 0.4;
  pointer-events: none;
  transform: none;
}

/* =========================================================
   CHARACTER GRID + CARDS
   ========================================================= */
.character-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .character-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.character-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.character-card h3 {
  color: #ffe55c;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.character-card p {
  color: #e6e6e6;
  line-height: 1.6;
  margin: 0;
}

/* Character Icons (Circular) */
.character-icon {
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  height: 80px;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 80px;
}

/* Placeholder Icons */
.character-icon.placeholder {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffe55c;
  display: flex;
  font-family: "Coiny", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  justify-content: center;
  text-transform: uppercase;
}

/* =========================================================
   ARCHIVE PAGE
   ========================================================= */

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.archive-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.archive-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.archive-link {
  color: #ffe55c;
  text-decoration: none;
  display: block;
}

.archive-episode {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.archive-num {
  font-family: "Coiny", system-ui;
  font-size: 1.4rem;
  color: #ffdb99;
}

.archive-title {
  font-size: 1.2rem;
  color: #e6e6e6;
}

/* Resource Lists */
.resource-list {
  margin: 1rem 0 2rem 1.25rem;
  padding: 0;
  color: #e6e6e6;
  line-height: 1.6;
}

.resource-list li {
  margin-bottom: 0.5rem;
}

/* =========================================================
   BLOG STYLING
   ========================================================= */

.blog-content {
  max-width: 750px;
  margin: 2rem auto;
  color: #e6e6e6;
  line-height: 1.7;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  color: #FFDB99;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.archive-date {
  color: #aaa;
  font-size: 0.9rem;
  margin-left: auto;
}

/* =========================================================
   ARCHIVE THUMBNAILS
   ========================================================= */

.archive-item-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.archive-thumb {
  width: 120px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-meta {
  display: flex;
  flex-direction: column;
}

.archive-title {
  font-size: 1.2rem;
  color: #e6e6e6;
}

.archive-num {
  font-family: "Coiny", system-ui;
  font-size: 1.2rem;
  color: #ffdb99;
}

/* Auto generates a monogram for comic thumbnails */
.bl-monogram {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Coiny", sans-serif;
  font-size: 2.5rem;
  color: #ffe55c;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
/* Soft hover effect for thumbnails */
.archive-thumb {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.archive-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 229, 92, 0.25); /* soft yellow glow */
}

/* Slightly softer look for the fallback BL monogram */
.archive-thumb[src*="default.svg"] {
  opacity: 0.9;
}

/* 404 Page */
.not-found {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto;
}


/* =========================================================
   ACCESSIBILITY: Keyboard Focus Styles
   ========================================================= */

/* Remove default browser outlines only if they are replaced */
:focus {
  outline: none;
}

/* Buttons, links, nav items, social icons */
a:focus,
button:focus,
.btn:focus,
.icon:focus {
  outline: 3px solid #ff7bd5; /* brand pink */
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================================================
   MOBILE: Comic Navigation Improvements
   ========================================================= */

.comic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.comic-nav .btn {
  min-width: 140px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Mobile stacking */
@media (max-width: 500px) {
  .comic-nav {
    flex-direction: column;
    align-items: center;
  }

  .comic-nav .btn {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 500px) {
  .comic-img {
    padding: 0.5rem;
    border-radius: 6px;
  }
}

@media (max-width: 500px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .site-title {
    font-size: 2.2rem;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */
.icon:focus {
  outline: 3px solid #ff7bd5;
  outline-offset: 4px;
}

.footer {
  background: #1F0F53;
  border-top: 2px solid #ffe55c33;
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer h2 {
  color: #FFDB99;
  margin-bottom: 0.5rem;
}

.footer p {
  color: #dcdcdc;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.newsletter-form input {
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 260px;
}

.newsletter-form button {
  background: #FFDB99;
  border: none;
  border-radius: 8px;
  color: #0d1b3d;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: transform 0.15s ease;
}

.newsletter-form button:hover {
  transform: translateY(-3px);
}

/* Social Icons: CSS generated */
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.icon {
  align-items: center;
  background: #FFDB99;
  border-radius: 50%;
  color: #0d1b3d;
  display: inline-flex;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease;
  width: 42px;
}

.icon:hover {
  transform: translateY(-3px);
}

.ko-fi-logo {
  width: 40px
}


.instagram-icon, 
.github-icon, 
.mail-icon {
  width: 30px;

}

.aside {
  background: #0d1b3d;
  border-left: 4px solid #FF5DB2;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #FF5DB2;
  border-radius: 4px;
}

/* Mobile scaling */
@media (max-width: 480px) {
  .icon {
    width: 42px;
    height: 42px;
  }
  .icon img {
    width: 22px;
    height: 22px;
  }
}

.footer-note {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2rem;
}
