/* ===== Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

@font-face {
  font-family: "LiPurnoPran";
  src: url("../assets/fonts/LiPurnoPran.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Kalpurush', 'Noto Serif Bengali', serif;
  background: #f5f5f5;
}

/* ===== Grid Container ===== */
.gridContainer {
  min-height: 100vh;
  display: grid;

  /* Desktop layout */
  grid-template-columns: 240px 1fr 350px;
  grid-template-rows: auto 1fr auto;

  grid-template-areas:
    "header header header"
    "left   main   right"
    "footer footer footer";
}

/* ===== Grid Areas ===== */
.header {
  grid-area: header;
  padding: 20px;
  background: #eaeaea;
  text-align: center;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header h1 {
  font-size: 30px;
}

.leftBar {
  grid-area: left;
  padding: 20px;
  background: #dcdcdc;
}

.mainContent {
  font-family: "LiPurnoPran", 'Kalpurush', 'Noto Serif Bengali', serif;
  grid-area: main;
  padding: 25px 80px;
  background: #d8d8d8;
}

.rightBar {
  grid-area: right;
  padding: 20px;
  background: #dcdcdc;
}

.footer {
  grid-area: footer;
  padding: 0px;
  background: #eaeaea;
  text-align: center;
}

@media (max-width: 1100px) {
    .mainContent {
    grid-area: main;
    padding: 25px 25px;
    background: #d8d8d8;
}
}

@media (max-width: 992px) {
  .gridContainer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  .leftBar,
  .rightBar {
    display: none;
  }
}

.mainContent p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 1.3em;
    letter-spacing: 0.01em;
}

/* Tablet */
@media (max-width: 1024px) {
    .mainContent p {
        font-size: 18px;
        line-height: 1.5;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mainContent p {
        font-size: 17px;
        line-height: 1.4;
    }
}

/* ====================
   STORY IMAGES
==================== */

.story-image {
    margin: 2.2em 0;
    text-align: center;
}

.story-image img {
    width: 100%;
    max-width: 480px;   /* Desktop safe */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/* Tablet */
@media (max-width: 1024px) {
    .story-image img {
        max-width: 380px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .story-image {
        margin: 1.8em 0;
    }

    .story-image img {
        max-width: 92%;
        border-radius: 4px;
    }
}

/* =============== Page Switch Button =============== */


.episode-switch {
  margin: 60px 0 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.upperNAV {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  margin: 10px 0;
}

/* ============= Top Nav ============== */

.topSwitch {
  margin: 2px 0 10px;
  padding-top: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.topNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  margin: 0;
}

.ep-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  
}

.ep-list.start {
  justify-content: center;
}

.ep-btn {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 4px;
  background: #fff;
}

.ep-btn:hover {
  background: #f0f0f0;
}

/* .prev {
  display: inline-block;
  margin-bottom: 10px;
}

.next {
  display: inline-block;
  margin-bottom: 10px;
} */

#theEndText {
  text-align: center;
}



/* ---------------------------------------------------------------------
-------------------    Right Space Bar    -----------------------------
--------------------------------------------------------------------- */

/* Writer Card */
.writer-card {
  background: rgb(0, 114, 15);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: white;
}



.writer-photo {
  width: 170px;
  height: 170px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
}

.writer-name {
  margin: 5px 0 10px 0;
  font-size: 30px;
}

.writer-bio {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}



.verified {
    border: 0.5px solid rgb(0, 119, 14);
    background-color: #dfffdf;
    padding: 10px;
    border-radius: 8px;
    font-size: 1.2rem;
    color: rgb(0, 89, 0);
}



/* ---------------------------------------------------------------------
-------------------    Footer Component    -----------------------------
--------------------------------------------------------------------- */

.site-footer {
  background-color: #0f0f0f;
  color: #cfcfcf;
  padding: 40px 20px;
  
  font-family: 'Kalpurush', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Brand */
.footer-brand {
  flex: 1;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}

.footer-title:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #aaaaaa;
}

/* Meta */
.footer-meta {
  flex: 2;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer nav */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 16px;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #bdbdbd;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Texts */
.footer-disclaimer {
  margin-bottom: 14px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #8f8f8f;
}

/* 📱 Mobile */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-title {
    font-size: 1.6rem;
  }

  .footer-nav {
    gap: 10px 16px;
  }
}

/* ============= Mouse Pointer Default Start ================ */

/* ===== Disable Text Selection ===== */
body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* ===== Disable cursor change on text ===== */
p, span, h1, h2, h3, h4, h5, h6, div {
  cursor: default;
}

/* ===== Allow pointer only on links & buttons ===== */
a, button {
  cursor: pointer !important;
  user-select: auto;
}

/* ===== Extra safety for story content ===== */
.story-content {
  user-select: none;
}

/* ============== Mouse Pointer Default End ================= */



/* ==================================================
   Optional Mini Navigation (Compact Version) Start
================================================== */

.back-btn {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}


.mini-episode-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  padding: 12px 10px;
  margin-bottom: 0;

  background-color: #0f0f0f; /* footer match */
}

/* ===== Single Item ===== */
.mini-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 72px;           /* 👈 desktop smaller */
  padding: 6px 12px;         /* 👈 compact */

  background-color: #1e1e1e;
  color: #ffffff;

  font-size: 0.85rem;        /* 👈 desktop smaller text */
  font-weight: 500;
  line-height: 1.2;

  border-radius: 5px;
  text-decoration: none;

  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}



/* ===== Hover Effect ===== */
.mini-nav-item:hover {
  color: #2f80ff;
  background-color: #e6e6e6;

  box-shadow:
    0 0 0 1px rgba(47, 128, 255, 0.35),
    0 0 8px rgba(47, 128, 255, 0.3);

  transform: translateY(-1px);
}

/* ================= Tablet ================= */
@media (max-width: 768px) {
  .mini-episode-nav {
    gap: 8px;
    padding: 10px 8px;
  }

  .mini-nav-item {
    min-width: 68px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ================= Mobile ================= */
@media (max-width: 480px) {
  .mini-episode-nav {
    gap: 6px;
    padding: 8px 6px;
  }

  .mini-nav-item {
    min-width: auto;       /* text-based width */
    padding: 5px 9px;
    font-size: 0.78rem;
    border-radius: 4px;
  }
}

/* ==================================================
   Optional Mini Navigation (Compact Version) End
================================================== */
