/* Card container */
.comment-card {
  border-radius: 5px;
  padding: 30px;
  margin-bottom: 20px;
  background-color: #fff;
  position: relative !important;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
}

#comment-form {
  border-radius: 5px;
  padding: 30px;
  margin-bottom: 20px;
  background-color: #fff;
  position: relative !important;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
}

.image-style-thumbnail {
  border-radius: 50%;
  height: 70px;
  width: 70px;
}

/* Author section */
.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.author-info {
  margin-left: 10px;
  display: flex;
  justify-content: left;
  flex-direction: column;
}

.author-name {
  font-weight: bold;
}

.created-time {
  color: #777;
}

/* Content section */
.comment-content {
  margin-bottom: 10px;
}

.comment-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.comment-title a {
  font-size: 2em;
  text-decoration: none;
}

.comment-body {
  color: #333;
}

/* Footer section */
.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.price {
  font-size: 2.2em;
  color: #28a745;
  font-weight: bold;
  margin-right: 10px;
}

.buy-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
}

.buy-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.buy-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.policy-text {
  font-size: 0.9em;
  color: #6c757d;
}

.policy-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.policy-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.policy-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Responsive design */
@media (max-width: 768px) {
  .comment-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .buy-button {
    margin-top: 10px;
  }
}

/* Blurred effect */
.blurred {
  filter: blur(5px);
  position: relative;
  padding-bottom: 50px; /* Ensure footer has space */
}

.blurred::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.node__meta {
  text-align: center;
}

/* Footer adjustments for blurred effect */
.blurred + .comment-footer {
  position: absolute;
  bottom: 35%; /* Adjust based on padding */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* For large desktops and laptops (screen width 1200px and up) */
@media (min-width: 1200px) {
  .blurred + .comment-footer {
    bottom: 30%; /* Adjust as needed */
  }
}

/* For tablets and small desktops (screen width between 768px and 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .blurred + .comment-footer {
    bottom: 25%; /* Adjust as needed */
  }
}

/* For mobile phones (screen width less than 768px) */
@media (max-width: 767px) {
  .blurred + .comment-footer {
    bottom: 20%; /* Adjust as needed */
  }
}

/* For very small devices (screen width less than 480px) */
@media (max-width: 479px) {
  .blurred + .comment-footer {
    bottom: 15%; /* Adjust as needed */
  }
}

.blured-content {
  position: relative;
}

.purchased-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
}

.votingapi-reaction-radios .radio {
  justify-content: center;
}

.no-click {
  pointer-events: none;
}

.comment-body {
  word-wrap: break-word;
  white-space: pre-wrap;
}

.custom-view-modal::before {
  content: "\f1e0"; /* Unicode for the Font Awesome share icon */
  font-family: "Font Awesome 5 Free"; /* Replace with your Font Awesome font family */
  font-weight: 900; /* Adjust as needed based on your font weight */
  font-size: 18px; /* Adjust icon size */
}

.custom-view-modal {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #e8e4ee;
  font-size: 18px;
  background: #1379a7;
  padding: 5px 10px;
  display: flex;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-view-modal svg {
  margin: 5px;
}

.custom-view-modal:hover {
  background: #0f638c; /* Darken the background on hover */
}

.custom-popup {
  position: fixed;
  background: rgb(255, 254, 254);
  z-index: 11;
  padding: 25px;
  border-radius: 15px;
  top: 10%;
  left: 50%;
  max-width: 380px;
  width: calc(100% - 40px);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 10px 15px rgba(0,0,0,0.1);
  transform: translate(-50%, -50%) scale(1.2);
  transition: top 0s 0.2s ease-in-out,
  opacity 0.2s 0s ease-in-out,
  transform 0.2s 0s ease-in-out;
}

.custom-popup.show {
  top: 50%;
  left: 50%;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: top 0s 0s ease-in-out,
  opacity 0.2s 0s ease-in-out,
  transform 0.2s 0s ease-in-out;
}

.custom-popup :is(header,
.icons,
.custom-field) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-popup header {
  padding-bottom: 15px;
  border-bottom: 1px solid #ebedf9;
}

header .custom-close,
.icons a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

header .custom-close {
  color: #878787;
  font-size: 17px;
  background: #f3f3f3;
  height: 33px;
  width: 33px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease-in-out;
}

header .custom-close:hover {
  background: #ebedf9;
}

.custom-popup .content {
  margin: 20px 0;
}

.custom-popup .icons {
  margin: 15px 0 20px 0;
}

.content p {
  font-size: 16px;
}

.content .icons a {
  height: 50px;
  width: 50px;
  font-size: 20px;
  text-decoration: none;
  border: 1px solid transparent;
}

.icons a i {
  transition: transform 0.3s ease-in-out;
}

.icons a:nth-child(1) {
  color: #1877f2;
  border-color: #b7d4fb;
}

.icons a:nth-child(1):hover {
  background: #1877f2;
}

.icons a:nth-child(2) {
  color: #46c1f6;
  border-color: #b6e7fc;
}

.icons a:nth-child(2):hover {
  background: #46c1f6;
}

.icons a:nth-child(3) {
  color: #e1306c;
  border-color: #f5bccf;
}

.icons a:nth-child(3):hover {
  background: #e1306c;
}

.icons a:nth-child(4) {
  color: #25d366;
  border-color: #bef4d2;
}

.icons a:nth-child(4):hover {
  background: #25d366;
}

.icons a:nth-child(5) {
  color: #0088cc;
  border-color: #b3e6ff;
}

.icons a:nth-child(5):hover {
  background: #0088cc;
}

.icons a:hover {
  color: #fff;
  border-color: transparent;
}

.icons a:hover i {
  transform: scale(1.2);
}

.content .custom-field {
  margin: 12px 0 -5px 0;
  height: 45px;
  border-radius: 4px;
  padding: 0 5px;
  border: 1px solid #757171;
}

.custom-field.active {
  border-color: #1379a7;
}

.custom-field i {
  width: 50px;
  font-size: 18px;
  text-align: center;
}

.custom-field.active i {
  color: #1379a7;
}

.custom-field input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
}

.custom-field button {
  color: #fff;
  padding: 5px 18px;
  background: #1379a7;
}

.custom-field button:hover {
  background: #1379a7;
}

/* ---------- Dark Mode Styles ----------- */

body.darkmode--activated .comment-card,
body.darkmode--activated #comment-form {
  background-color: #333;
  color: #e0e0e0;
  box-shadow: 0 1px 1px hsl(0deg 0% 100% / 0.075),
  0 2px 2px hsl(0deg 0% 100% / 0.075),
  0 4px 4px hsl(0deg 0% 100% / 0.075),
  0 8px 8px hsl(0deg 0% 100% / 0.075),
  0 16px 16px hsl(0deg 0% 100% / 0.075);
}

body.darkmode--activated .comment-header,
body.darkmode--activated .author-info,
body.darkmode--activated .author-name,
body.darkmode--activated .created-time {
  color: #ccc;
}

body.darkmode--activated .comment-content,
body.darkmode--activated .comment-title,
body.darkmode--activated .comment-title a,
body.darkmode--activated .comment-body {
  color: #e0e0e0;
}

body.darkmode--activated .comment-footer {
  background-color: #444;
  color: #e0e0e0;
}

body.darkmode--activated .price {
  color: #5cb85c;
}

body.darkmode--activated .buy-button {
  background-color: #0f638c;
  color: #e0e0e0;
  border-color: #0f638c;
}

body.darkmode--activated .buy-button:hover {
  background-color: #0056b3;
}

body.darkmode--activated .policy-text {
  color: #b0b0b0;
}

body.darkmode--activated .policy-link {
  color: #23aeff;
}

body.darkmode--activated .policy-link:hover {
  color: #1c8dd3;
}

body.darkmode--activated .custom-view-modal {
  background-color: #444;
  color: #e0e0e0;
}

body.darkmode--activated .custom-view-modal:hover {
  background-color: #333;
}

body.darkmode--activated .custom-popup {
  background-color: #333;
  color: #e0e0e0;
}

body.darkmode--activated header .custom-close {
  background-color: #444;
  color: #ddd;
}

body.darkmode--activated header .custom-close:hover {
  background-color: #555;
}

body.darkmode--activated .content .custom-field {
  background-color: #444;
  color: #e0e0e0;
  border-color: #555;
}

body.darkmode--activated .content .custom-field.active {
  border-color: #999;
}

body.darkmode--activated .blurred::after {
  background: rgba(0, 0, 0, 0.7);
}

body.darkmode--activated .purchased-tag {
  background-color: #5cb85c;
}

body.darkmode--activated .votingapi-reaction-radios .radio {
  color: #e0e0e0;
}

body.darkmode--activated .comment-body {
  color: #e0e0e0;
}
