/* Additional Styles for NewsRose Theme */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

/* Single Post Styles */
.single-post {
  background: white;
  padding: 30px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.single-header {
  margin-bottom: 20px;
  text-align: center;
}

.single-header .post-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 15px 0;
}

.post-featured-image {
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

/* Social Share Buttons */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.social-share span {
  font-weight: bold;
  color: var(--text-color);
}

.social-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.share-facebook {
  background: #3b5998;
}

.share-facebook:hover {
  background: #2d4373;
}

.share-twitter {
  background: #1da1f2;
}

.share-twitter:hover {
  background: #0c85d0;
}

.share-whatsapp {
  background: #25d366;
}

.share-whatsapp:hover {
  background: #1da851;
}

/* Post Content Typography */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
}

.post-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 30px 0 15px;
  font-weight: bold;
}

.post-content h2 {
  font-size: 28px;
}

.post-content h3 {
  font-size: 24px;
}

.post-content h4 {
  font-size: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

.post-content ul,
.post-content ol {
  margin: 20px 0 20px 30px;
}

.post-content li {
  margin-bottom: 10px;
}

/* Post Tags */
.post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.post-tags strong {
  margin-right: 10px;
}

.post-tags a {
  display: inline-block;
  background: var(--light-gray);
  padding: 5px 15px;
  border-radius: 3px;
  margin-right: 5px;
  margin-top: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Related Posts */
.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.related-posts h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
}

.loading-spinner:after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Search Form */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-size: 14px;
}

.search-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: var(--secondary-color);
}

/* Comments Section */
.comments-area {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-radius: 5px;
}

.comments-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.comment-list {
  list-style: none;
}

.comment-body {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--light-gray);
  border-radius: 5px;
}

.comment-author {
  font-weight: bold;
  margin-bottom: 10px;
}

.comment-metadata {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
}

.comment-content p {
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .single-header .post-title {
    font-size: 24px;
  }

  .post-content {
    font-size: 16px;
  }

  .social-share {
    flex-wrap: wrap;
  }
}
