:root {
  --bg-main: #f2f2f2;
  --bg-white: #ffffff;
  --text-main: #222;
  --text-muted: #555;
  --border-light: #ddd;
  --neon-blue: rgba(47, 128, 255, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kalpurush','Noto Serif Bengali', serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Header */
.site-header {
  text-align: center;
  padding: 40px 20px 25px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.site-header p {
  font-size: 20px;
}

/* Layout */
.writer-layout {
  max-width: 1100px;
  margin: 20px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

/* Writer Card */
.writer-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.writer-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
}

.writer-name {
  margin: 5px 0 10px;
  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;
}

/* Content */
.writer-content > div {
  margin-bottom: 40px;
}

/* Writer Story Buttons */
.writer-stories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-btn {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-white);
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.story-btn:hover {
  background-color: #f7f7f7;
  transform: translateY(-1px);
}

/* Gallery */
.writer-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.writer-gallery img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin: 0 auto;
}

/* =======================
   Contact Section (Neon)
======================= */

.writer-contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.contact-item {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-white);

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

/* ===== Neon Hover Effect ===== */
.contact-item:hover {
  transform: translateY(-3px);

  border-color: rgba(47, 128, 255, 0.6);

  box-shadow:
    0 0 0 1px rgba(47, 128, 255, 0.35),
    0 0 10px rgba(47, 128, 255, 0.45),
    0 6px 16px rgba(47, 128, 255, 0.25);

  color: #2f80ff;
}

/* Optional: click feel */
.contact-item:active {
  transform: translateY(-1px);
  box-shadow:
    0 0 6px rgba(47, 128, 255, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .writer-layout {
    grid-template-columns: 1fr;
  }

  .writer-gallery {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   Optional Mini Navigation (Compact Version)
   (UNCHANGED – as requested)
================================================== */

.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;
  background-color: #0f0f0f;
}

.mini-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 0.85rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.22s ease;
}

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