/* =========================================================
   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;
}

/* =========================================================
   INTERNAL LINKS
   ========================================================= */
a.internal-link {
  color: #FFDB99;
  text-decoration: none;
  text-decoration-color: #FFDB99;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a.internal-link:hover,
a.internal-link:focus {
  color: #FF5DB2;
  text-decoration-color: #FF5DB2;
}

/* =========================================================
   EXTERNAL LINKS
   ========================================================= */

.external-link {
  color: #FFDB99; /* primary gold */
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 219, 153, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.external-link:hover {
  color: #FF5DB2; /* accent pink */
  border-color: rgba(255, 93, 178, 0.6);
}

.external-link:active {
  color: #C6B3FF; /* soft purple highlight */
  border-color: rgba(198, 179, 255, 0.6);
}


.external-link:hover::after {
  opacity: 1;
  color: #FF5DB2; /* match hover pink */
}

.external-link:active::after {
  color: #C6B3FF; /* match active purple */
}

/* Ignore links that contain the follow in the URL */
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);
}

/* Ignore icons; don't style icons the same as general links */
.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,
.comic-nav .comic-nav-btn {
  background-color: #b38bff;
  border-radius: 10px;
  color: #fff;
  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 .disabled {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  flex: 1 1 auto;
  text-align: center;
  cursor: not-allowed;
  opacity: 0.5;
}


/* =========================================================
   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;
}

/* =========================================================
   COMIC LANDING PAGE
   ========================================================= */

.comic-landing-page {
  margin: 2rem auto 0;
  max-width: 1000px;
}

.comic-landing-header {
  margin-bottom: 2rem;
  text-align: center;
}

.comic-landing-header h1 {
  color: #FFDB99;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.comic-landing-header p {
  color: #e6e6e6;
  margin: 0 auto;
  max-width: 700px;
}

.comic-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .comic-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.comic-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.comic-card.featured {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.16), rgba(255, 111, 174, 0.14));
  border: 1px solid rgba(255, 219, 153, 0.35);
  box-shadow: 0 8px 24px rgba(255, 229, 92, 0.16);
}

.comic-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(255, 229, 92, 0.16);
  transform: translateY(-3px);
}

.comic-card.featured:hover {
  box-shadow: 0 10px 28px rgba(255, 229, 92, 0.22);
  transform: translateY(-4px);
}

.comic-card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.comic-card-thumb {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}

.comic-card-thumb img {
  border-radius: 10px;
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.comic-card-content {
  padding: 1rem 1.25rem 1.25rem;
}

.comic-card-number {
  color: #ffe55c;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
}

.comic-card-badge {
  background: rgba(255, 219, 153, 0.16);
  border: 1px solid rgba(255, 219, 153, 0.35);
  border-radius: 999px;
  color: #ffe55c;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem 0;
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
}

.comic-card h2 {
  color: #FFDB99;
  font-size: 1.25rem;
  margin: 0;
}

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

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

.category-card-grid {
  margin-top: 1rem;
}

.category-card {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.10), rgba(179, 139, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-height: 100%;
}

.category-card:hover {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.16), rgba(179, 139, 255, 0.18));
}

.category-card .comic-card-thumb {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-thumb {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 180px;
}

.category-thumb .bl-monogram {
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(255, 229, 92, 0.16);
  height: 110px;
  width: 110px;
}

.category-card .comic-card-content {
  padding-top: 0.9rem;
}

.category-card .comic-card-number {
  margin-bottom: 0.6rem;
}

.category-card--start-here {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.14), rgba(255, 111, 174, 0.12));
}

.category-card--featured {
  background: linear-gradient(135deg, rgba(179, 139, 255, 0.16), rgba(255, 229, 92, 0.12));
}

.category-card--dating-confections {
  background: linear-gradient(135deg, rgba(255, 111, 174, 0.16), rgba(255, 229, 92, 0.12));
}

.category-card--emotional-support {
  background: linear-gradient(135deg, rgba(198, 179, 255, 0.16), rgba(255, 219, 153, 0.12));
}

.category-card--snackcident-report {
  background: linear-gradient(135deg, rgba(255, 219, 153, 0.18), rgba(255, 111, 174, 0.12));
}

.category-card--adulting-is-hard {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.16), rgba(198, 179, 255, 0.12));
}

.category-card--flowcharts {
  background: linear-gradient(135deg, rgba(198, 179, 255, 0.16), rgba(255, 111, 174, 0.12));
}

.category-card--miscellaney {
  background: linear-gradient(135deg, rgba(255, 219, 153, 0.16), rgba(179, 139, 255, 0.12));
}

.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;
}

.archive-description {
  color: #e6e6e6;
  font-size: 1rem;
  line-height: 1.6;
  margin: -0.5rem auto 1.5rem auto;
  max-width: 700px;
  text-align: center;
}

.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;
}

.blog-post a {
  color: #ffe55c;
  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;
}

.blog-post a:hover {
  color: #ff7bd5;
  border-color: rgba(255, 123, 213, 0.6);
}


/* =========================================================
   BLOG POST IMAGES — COMIC-INSPIRED AESTHETIC
   ========================================================= */

.blog-content img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 10px;

  /* Soft comic-style frame */
  background: #111;
  padding: 0.75rem;

  /* Glow + border similar to comic viewer */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(255, 229, 92, 0.15);

  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

/* Hover lift (same vibe as buttons + thumbnails) */
.blog-content img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 229, 92, 0.25);
}


/* =========================================================
   BLOG FEATURED IMAGE
   ========================================================= */

.blog-featured {
  max-width: 900px;
  margin: 2.5rem auto;
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 219, 153, 0.25);
  box-shadow: 0 6px 20px rgba(255, 219, 153, 0.25);
}

.blog-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #dcdcdc;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

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

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

.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);
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.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);
}

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

.archive-thumb[src*="default.svg"] {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .archive-item-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-thumb {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .archive-meta {
    width: 100%;
  }
}

/* =========================================================
   COMIC DESCRIPTION (COLLAPSIBLE)
   ========================================================= */

.comic-description summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #FFDB99;
  text-align: center;
  padding: 0.5rem 0;
}

/* Rotate + recolor when open */
.comic-description[open] summary::before {
  transform: rotate(90deg);
  color: #FFDB99;
}

/* =========================================================
   COMIC DESCRIPTION — BORDERED BOX
   ========================================================= */

.comic-description {
  max-width: 750px;
  margin: 1.5rem auto 2.5rem auto;
  padding: 1rem 1.25rem;

  /* Match your card aesthetic */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(4px);

  color: #e6e6e6;
  line-height: 1.6;
}

/* Description text */
.comic-description p {
  margin-top: 0.75rem;
  color: #dcdcdc;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

/* Tag container */

.comic-tags {
  flex-wrap: wrap;
  text-align: center;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

/* Individual tag badge */
.comic-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffe55c;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Hover lift + glow */
.comic-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 229, 92, 0.25);
}

/* Category badge styles to match the comic aesthetic */
.comic-category-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.comic-category-badge {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.18), rgba(255, 111, 174, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffe55c;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comic-category-badge:hover,
.comic-category-badge:focus {
  background: linear-gradient(135deg, rgba(255, 229, 92, 0.28), rgba(255, 111, 174, 0.3));
  box-shadow: 0 4px 10px rgba(255, 229, 92, 0.22);
  transform: translateY(-2px);
}

/* =========================================================
   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 .btn {
  min-width: 140px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

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

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

  .comic-nav a,
  .comic-nav .disabled {
    width: 100%;
  }
}

@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);
}

/* Official Social Icons */
.ko-fi-logo {
  width: 40px
}

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

/* Aside and notes */
.aside {
  background: #1d1d1f;
  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;
}
