/* LAYOUT */

.post-main {
  width: 90%;
  max-width: 1200px;
  margin: 12% auto 5%;
  display: flex;
  gap: 40px;
}

/* MAIN POST */
.post-content {
  flex: 2;
}

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateX(-5px);
}

.post-header {
  margin-bottom: 25px;
}

.post-title {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--secondary);
}

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.post-meta .post-author::after {
  content: "|";
  margin-left: 15px;
  color: #e11212;
}

.post-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* TEXT */
.post-txt{
  color: var(--secondary);
}

.post-body p {
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 25px;
}

.post-body h2 {
  margin: 40px 0 15px;
  font-size: 28px;
  color: var(--secondary);
}

.post-body ul,
.post-body ol {
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 18px;
}

/* SIDEBAR */
.post-sidebar {
  flex: 1;
  position: sticky;
  top: 150px;
  align-self: flex-start;
}

.post-block {
  background-color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-block h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 2px solid rgba(255, 0, 0, 0.05);
  padding-bottom: 10px;
}

.post-categ div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.post-categ a {
  background-color: var(--accent-lit);
  color: var(--accent);
  padding: 3px 10px;
  padding-bottom: 5px;
  font-size: 15px;
  border-radius: 5px;
}

.side-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  text-decoration: none;
  color: var(--secondary);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.side-post:last-child {
  margin-bottom: 0;
}

.side-post:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.side-post img {
  width: 70px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.side-post p {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.3s ease;
}

.side-post:hover p {
  color: var(--accent);
}

/* engagement - likes and comments */
.post-engagement{
  display: flex;
 /* margin-top: 4; */
border-top: 1px solid #ddd;
padding-top: 20px;
width: 100%;
}

.post-comments{
  width: 100%;
}

.engage-form{
  display: flex;
  border: 2px solid #f9a5a5a7;
  border-radius: 15px;
  align-content: center;
  align-items: center;
  /* width: 100%; */
  height: 10vh;
  padding-right: 5px;
}

.engage-form textarea{
  height: 8vh;
  resize: none;
  background-color: transparent;
  padding-left: 8px;
  border: none;
  outline: none;
  align-content: center;
}

#likeBtn{
  align-items: center;
background-color: transparent;
}

.like-icon{
  width: 60px;
}

.comment-icon{
  width: 50px;
}


/* Share Section Styles */
.post-share-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 0px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-title {
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #555;
  background-color: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  position: relative;
  text-decoration: none;
}

.share-btn svg {
  transition: transform 0.3s ease;
}

.share-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover svg {
  transform: scale(1.1);
}

/* Brand specific background hover colors */
.share-facebook:hover {
  background-color: #1877f2;
  border-color: #1877f2;
}

.share-twitter:hover {
  background-color: #000000;
  border-color: #000000;
}

.share-whatsapp:hover {
  background-color: #25d366;
  border-color: #25d366;
}

.share-linkedin:hover {
  background-color: #0a66c2;
  border-color: #0a66c2;
}

.share-copy:hover {
  background-color: var(--accent, red);
  border-color: var(--accent, red);
}

/* Copy Link Tooltip styling */
.share-copy .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  pointer-events: none;
}

.share-copy .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.share-copy:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.share-copy.copied .tooltip {
  visibility: visible;
  opacity: 1;
  background-color: #2e7d32;
}

.share-copy.copied .tooltip::after {
  border-color: #2e7d32 transparent transparent transparent;
}

@media (max-width: 480px) {
  .post-share-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {

  .post-main {
    flex-direction: column;
    margin-top: 0%;
  }

  .post-title {
    font-size: 28px;
  }

  .post-sidebar {
    position: static;
  }

  .post-sidebar {
    width: 100%;
  }
}
