/* Faith-inspired, modern, readable blog styles for modal iframe */
body {
  font-family: "Source Sans Pro", "Inter", Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc 60%, #e3f2fd 100%);
  color: #222;
  margin: 0;
  padding: 0 0 2rem 0;
  min-height: 100vh;
}

.blog-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.1);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Source Sans Pro", "Inter", Arial, sans-serif;
  color: #0288d1;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}
h1 {
  font-size: 2.2rem;
  margin-top: 0;
}
h2 {
  font-size: 1.5rem;
}

p,
li {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #333;
}

ul,
ol {
  margin-left: 1.5rem;
}

blockquote {
  border-left: 4px solid #0288d1;
  background: #e3f2fd;
  color: #1976d2;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  font-style: italic;
}

a {
  color: #0288d1;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: #01579b;
}

img,
video,
iframe {
  max-width: 100%;
  border-radius: 0.7rem;
  display: block;
  margin: 1.5rem auto;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.07);
}

hr {
  border: none;
  height: 2px;
  width: 80%;
  margin: 2.5rem auto;
  background: linear-gradient(90deg, #0288d1 0%, #b3e5fc 100%);
  border-radius: 1px;
  box-shadow: 0 1px 6px 0 rgba(2, 136, 209, 0.08);
}

pre,
code {
  background: #f1f8ff;
  color: #01579b;
  border-radius: 0.4rem;
  padding: 0.2em 0.5em;
  font-size: 1em;
  font-family: "Fira Mono", "Consolas", monospace;
}

/* Blog-specific styles for popup close button */
.popup-close-btn {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 1001;
  background: #fff;
  border: none;
  font-size: 2.2rem;
  color: #0288d1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.popup-close-btn:hover {
  background: #0288d1;
  color: #fff;
  opacity: 1;
}

/* Social media button styles */
.blog-social-bar {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-bottom: 1.2rem;
}
.blog-social-bar button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.3em 0.6em;
  border-radius: 50%;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  font-size: 1.7rem;
  position: relative;
  color: #0288d1;
  box-shadow: 0 2px 8px 0 rgba(2, 136, 209, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-social-bar button:hover,
.blog-social-bar button:focus {
  background: #e3f2fd;
  box-shadow: 0 4px 16px 0 rgba(2, 136, 209, 0.13);
  color: #d81b60;
}
.blog-social-bar .bi {
  font-size: 1.7rem;
  pointer-events: none;
  transition: color 0.18s;
}
.blog-like-btn:hover .bi-heart {
  color: #d81b60;
}
.blog-comment-btn:hover .bi-chat {
  color: #43a047;
}
.blog-share-btn:hover .bi-share {
  color: #fbc02d;
}
.blog-count {
  font-size: 1.05rem;
  color: #555;
  margin-left: 0.38em;
  font-weight: 500;
  vertical-align: middle;
  user-select: none;
  pointer-events: none;
  transition: color 0.18s;
}
.blog-like-btn:hover .blog-like-count {
  color: #d81b60;
}
.blog-comment-btn:hover .blog-comment-count {
  color: #43a047;
}

/* Animation for liked heart icon */
.blog-like-btn.liked .bi-heart {
  color: #d81b60 !important;
  animation: blog-like-pop 0.35s cubic-bezier(0.4, 2, 0.6, 1) 1;
}
.blog-like-btn.locked .bi-heart {
  color: #d81b60 !important;
  animation: none;
}
@keyframes blog-like-pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.35);
  }
  60% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

/* Make the like button background fill with red and the heart icon white after being clicked, for a filled effect */
.blog-like-btn.liked,
.blog-like-btn.locked {
  background: #ffdbe7 !important;
  box-shadow: 0 4px 16px 0 rgba(216, 27, 96, 0.13);
}
.blog-like-btn.liked .bi-heart,
.blog-like-btn.locked .bi-heart {
  color: #fff !important;
  background: #d81b60;
  border-radius: 50%;
  padding: 0.18em;
  box-shadow: 0 2px 8px 0 rgba(216, 27, 96, 0.13);
}

/* Animation for shared icon */
.blog-share-btn.shared .bi-share {
  color: #43a047 !important;
  animation: blog-share-pop 0.35s cubic-bezier(0.4, 2, 0.6, 1) 1;
}
@keyframes blog-share-pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25) rotate(-10deg);
  }
  60% {
    transform: scale(0.95) rotate(7deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* Toast message for sharing */
.blog-share-toast {
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%) scale(0.95);
  background: #43a047;
  color: #fff;
  padding: 0.45em 1.2em;
  border-radius: 1.2em;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  box-shadow: 0 2px 12px 0 rgba(67, 160, 71, 0.13);
  transition: opacity 0.22s, transform 0.22s;
  white-space: nowrap;
}
.blog-share-toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.blog-social-bar {
  position: relative;
}
@media (max-width: 600px) {
  .blog-share-toast {
    font-size: 0.92rem;
    padding: 0.35em 0.9em;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .blog-container {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0.7rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .popup-close-btn {
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .blog-social-bar {
    gap: 1.2rem;
    margin-bottom: 0.7rem;
  }
  .blog-social-bar button {
    font-size: 1.2rem;
    padding: 0.2em 0.4em;
  }
  .blog-social-bar .bi {
    font-size: 1.2rem;
  }
  .blog-count {
    font-size: 0.92rem;
    margin-left: 0.22em;
  }
}

/* Home button styles */
.blog-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.3em 0.6em;
  border-radius: 50%;
  font-size: 1.7rem;
  color: #0288d1;
  box-shadow: 0 2px 8px 0 rgba(2, 136, 209, 0.07);
  margin-left: 0.1em;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  text-decoration: none;
}
.blog-home-btn:hover,
.blog-home-btn:focus {
  background: #e3f2fd;
  color: #1976d2;
  box-shadow: 0 4px 16px 0 rgba(2, 136, 209, 0.13);
}
.blog-home-btn .bi-house-door {
  font-size: 1.7rem;
  pointer-events: none;
}
@media (max-width: 600px) {
  .blog-home-btn {
    font-size: 1.2rem;
    padding: 0.2em 0.4em;
  }
  .blog-home-btn .bi-house-door {
    font-size: 1.2rem;
  }
}

/* Comments Section */
.blog-comments-section {
  margin: 2.5rem 0 0 0;
  padding: 2rem 0 0 0;
  border-top: 2px solid #e3f2fd;
}
.blog-comments-section h2 {
  text-align: center;
  color: #0288d1;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
.blog-comments-section .bi-chat-dots {
  font-size: 1.3em;
  color: #0288d1;
  vertical-align: middle;
}
.comments-list {
  margin-bottom: 1.2rem;
}
.comment {
  display: flex;
  align-items: flex-start;
  gap: 0.9em;
  margin-bottom: 1.1em;
  background: #f8fafc;
  border-radius: 0.7em;
  padding: 0.7em 1em 0.7em 0.8em;
  box-shadow: 0 2px 8px 0 rgba(2, 136, 209, 0.04);
}
.comment-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 60%, #b3e5fc 100%);
  box-shadow: 0 1px 4px 0 rgba(2, 136, 209, 0.07);
}
.comment-avatar .bi-person-circle {
  font-size: 1.7em;
  color: #0288d1;
}
.comment-body {
  flex: 1;
}
.comment-user {
  font-weight: 600;
  color: #0288d1;
  font-size: 1.05em;
  margin-bottom: 0.1em;
}
.comment-text {
  color: #333;
  font-size: 1.08em;
  margin-bottom: 0.2em;
}
.comment-time {
  color: #888;
  font-size: 0.95em;
}
.comment-form {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.5em;
  background: #f1f8ff;
  border-radius: 0.7em;
  padding: 0.5em 0.8em;
  box-shadow: 0 1px 4px 0 rgba(2, 136, 209, 0.04);
}
.comment-form-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 60%, #b3e5fc 100%);
}
.comment-form-avatar .bi-person-circle {
  font-size: 1.3em;
  color: #0288d1;
}
.comment-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.08em;
  padding: 0.4em 0.2em;
  color: #222;
}
.comment-submit-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: #0288d1;
  font-size: 1.3em;
  border-radius: 50%;
  padding: 0.2em 0.4em;
  transition: background 0.18s, color 0.18s;
}
.comment-submit-btn:hover,
.comment-submit-btn:focus {
  background: #e3f2fd;
  color: #1976d2;
}
.comment-submit-btn .bi-send {
  font-size: 1.1em;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .blog-comments-section {
    padding: 1.2rem 0 0 0;
  }
  .comment-form-avatar,
  .comment-avatar {
    width: 1.5em;
    height: 1.5em;
  }
  .comment-avatar .bi-person-circle,
  .comment-form-avatar .bi-person-circle {
    font-size: 1.1em;
  }
}
