/* AUTO APPEND */

.fh-engagement-heading {
    font-family: 'Caveat', cursive !important;
    text-align: center !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    margin-top: 1.3em !important;
    margin-bottom: 0.5em !important;
    font-weight: 200 !important;
    color: #5A4E5C !important;
    letter-spacing: 0.4px !important;
    line-height: 1 !important;
}

.fh-button-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.5rem;
    margin-bottom: 0rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.fh-read-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
}

.fh-read-block {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.fh-logit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fh-favorite-wrap,
.fh-share-wrap {
    display: flex;
    align-items: center;
}

.fh-left, .fh-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fh-left {
    justify-content: flex-start;
    flex: 1;
}

.fh-right {
    justify-content: flex-end;
    flex: 1;
}

@media screen and (max-width: 700px) {
    .fh-button-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 0rem;
        padding-right: 0.25rem;
        margin-left: 0px;
    }

    .fh-left, .fh-right {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    
    .fh-share-btn, .fh-favorite-button {
        padding: 10px 16px !important;
        min-width: 60px !important;
    }
   
}

/* BOOKMARK */

.fh-favorite-button {
  background-color: #d8ae2e; /* updated gold */
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  white-space: nowrap;
	min-height: 2.5rem;
}

.fh-favorite-button:hover:not(:disabled) {
  background-color: #c9a127;
  transform: scale(1.02);
}

.fh-favorite-button:active {
  transform: scale(0.97);
}

.fh-favorite-button.favorited {
  background-color: #a97f00;
  box-shadow: inset 0 0 0 2px #ffffff44;
  color: white;
}

.fh-favorite-button.favorited:hover:not(:disabled) {
  background-color: #b88a00;
}

.fh-favorite-button:disabled {
  background-color: #f0e4b8 !important;
  color: #aa985e !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-size: 1rem !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em !important;
  min-width: 70px !important;
  white-space: nowrap !important;
	min-height: 2.5rem !important;
}

.fh-favorite-icon i {
  transition: transform 0.2s ease;
}

.fh-favorite-button:not(:disabled):hover .fh-favorite-icon i {
  transform: scale(1.05);
}

.fh-favorite-icon.favorited-scale i {
  animation: fh-favorite-pop 200ms ease;
}

@keyframes fh-favorite-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.fh-favorite-button.fh-favorite-disabled {
  background-color: #f0e4b8;
  color: #aa985e;
  border: 1px solid #E5C86D;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: not-allowed;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 70px;
  white-space: nowrap;
  min-height: 2.5rem;
}

/* LOG BUTTON */

.fh-mark-read-button {
  padding: 10px 24px;
  background-color: #3c7c75 !important;
  color: white;
  border: 1px solid #b4d0cd;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
  min-width: 130px;
  min-height: 2.5rem;
  position: relative;
  overflow: hidden;
}

.fh-mark-read-button:hover:not(:disabled) {
  background-color: #336c68 !important;
  transform: scale(1.02);
  border: 1px solid #b4d0cd;
}

.fh-mark-read-button:active {
  transform: scale(0.97);
}

.fh-mark-read-button:disabled {
  background-color: #f3f6f5 !important;
  color: #a0b6b5 !important;
  border: 1px solid #d9e4e3 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fh-mark-read-button:disabled i {
  color: #a0b6b5 !important;
}

.fh-mark-read-button.read-complete {
  background-color: #29524f !important;
  box-shadow: inset 0 0 0 2px #ffffff44 !important;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.fh-mark-read-button.read-complete:hover:not(:disabled) {
  background-color: #2f5f5c !important;
}
		
.fh-mark-read-button .fa-spinner {
  font-size: 1rem;
  color: #f2f7f6;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 0.5em;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fh-mark-read-button.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(60, 124, 117, 0) 0%,
    rgba(214, 240, 236, 0.3) 50%,
    rgba(60, 124, 117, 0) 100%
  );
  animation: fh-shine 1.0s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes fh-shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.fh-mark-read-button > * {
  position: relative;
  z-index: 5;
}
		
#mark-as-read {
  transition: opacity 0.4s ease;
}
		
@keyframes fh-poof {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0px transparent);
  }
  70% {
    opacity: 0.4;
    transform: scale(1.3);
    filter: drop-shadow(0 0 4px #3c7c75);
  }
  100% {
    opacity: 0;
    transform: scale(2);
    filter: drop-shadow(0 0 8px #3c7c75);
  }
}

.fh-poof-out {
  animation: fh-poof 280ms ease-out forwards;
}
		
.fh-clipboard-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Only scale the icon on hover if the button is enabled */
.fh-mark-read-button:not(:disabled):hover .fh-clipboard-icon {
  transform: scale(1.05);
}

@keyframes fh-celebrate {
  0%   { transform: scale(0); opacity: 0; }
  40%  { transform: scale(1.4); opacity: 1; }
  60%  { transform: scale(0.9); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.fh-celebrate-icon {
  display: inline-block;
  animation: fh-celebrate 500ms ease-out;
}

.fh-bonus-label {
  color: #D9737C;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
  width: 130px;
  text-align: center;
  color: #d9737c;
}

@keyframes fh-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.fh-mark-read-button .fh-clipboard-icon,
.fh-mark-read-button i,
.fh-mark-read-button span {
  position: relative;
  z-index: 10;
}

.fh-bonus-label i {
  color: #d9737c !important;
  margin-right: 5px;
}

.fh-logit-wrap > .fh-read-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}


/* LOVE BUTTON */
	
.fh-love-wrapper {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.fh-love-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.fh-love-button {
  padding: 10px 24px;
  background-color: #5d4a63 !important;;
  color: white;
  border: none;
  border-radius: 999px; /* Pill shape */
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color 0.2s ease, transform 0.1s ease  !important;
  min-width: 150px;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.5rem;
}

.fh-love-button:disabled {
  background-color: #6F5B71 !important;
  color: #a0b6b5 !important;
  border: 1px solid #d9e4e3 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fh-love-button:disabled i {
  color: #a0b6b5 !important;
	  transition: color 0.3s ease;
}
	
.fh-love-button:disabled.fh-loved {
  background-color: #f3f6f5 !important;
  color: #a0b6b5 !important;
	box-shadow: none !important;
}
	
.fh-love-button:disabled.fh-loved i {
  color: #493b4d !important;
}
	
.fh-love-button,
.fh-love-count {
  white-space: nowrap;
}
.fh-love-spinner { 
  width: 16px; 
  height: 16px; 
  border: 2px solid #ccc; 
  border-top: 2px solid #333; 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  display: none;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}
.fh-love-error-msg {
  transition: opacity 0.3s ease;
  color: #b85c5c;
  font-size: 0.9em;
  font-weight: 500;
  display: none;
}

.fh-love-button:active {
  transform: scale(0.97);
}

.fh-love-button {
  transition: transform 0.1s ease;
}

.fh-love-count {
  font-size: 0.95em;
  color: #b85c5c;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.fh-love-button.fh-loved {
  background-color: #493b4d  !important;;
  box-shadow: inset 0 0 0 2px #ffffff44  !important;;
}

.fh-love-count i {
  color: #D9737C;
}

.fh-love-button:hover:not(:disabled) {
  background-color: #5A4E5C !important;;
  transform: scale(1.02)  !important;;
}

/* Specific hover state for loved button */
.fh-love-button.fh-loved:hover:not(:disabled) {
  background-color: #3c2f3c !important;
	transform: scale(1.01) !important;
}
	
  @keyframes fh-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.fh-pulse {
  animation: fh-pulse 0.5s ease;
}

@keyframes fh-wiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
.fh-love-button:not(:disabled):hover i {
  animation: fh-wiggle 0.5s ease;
  display: inline-block;
}
	.fh-love-button:disabled i.fa-thumbs-up {
  color: #5d4a63 !important;
}


/* SHARE BUTTON */

.fh-share-btn {
  background-color: #39688a; 
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  white-space: nowrap;
  min-height: 2.5rem;
}

.fh-share-btn:hover:not(:disabled) {
  background-color: #315c7b;
  transform: scale(1.02) !important;
}

.fh-share-btn:active {
  transform: scale(0.97);
}

.fh-share-btn:disabled {
background-color: #e4ebf0 !important;
color: #8ca1b5 !important;
border: none !important;
border-radius: 999px !important;
padding: 10px 24px !important;
font-size: 1rem !important;
cursor: not-allowed !important;
box-shadow: none !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 0.5em !important;
min-width: 70px !important;
white-space: nowrap !important;
}
.fh-share-modal {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.4);
display: none !important;
z-index: 9999;
}
.fh-share-modal.is-active {
display: flex !important;
justify-content: center;
align-items: center;
}
.fh-share-modal-content {
background: white;
padding: 1.5em;
border-radius: 10px;
text-align: center;
max-width: 90%;
width: 320px;
position: relative;
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.fh-share-links {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.fh-share-links a {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0.5em;
color: #555;
width: 40px;
height: 40px;
border-radius: 50%;
transition: all 0.2s;
text-decoration: none;
}
.fh-share-links a:hover {
background-color: #f5f5f5;
color: #333;
transform: scale(1.1);
}
.fh-share-links svg {
width: 20px;
height: 20px;
fill: currentColor;
}
.fh-share-close {
position: absolute;
top: 0.5rem;
right: 0.75rem;
font-size: 1.2em;
cursor: pointer;
color: #888;
}
.fh-share-close:hover {
color: #333;
}
.fh-share-icon {
display: inline-block;
width: 16px;
height: 16px;
fill: currentColor;
vertical-align: text-bottom;
}
.fh-share-btn .fh-share-icon {
transition: transform 0.2s ease !important;
}

.fh-share-btn:hover .fh-share-icon {
    transform: scale(1.05) !important;
}

.fh-copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(51, 51, 51, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.fh-copy-toast.show {
  opacity: 1;
}

@keyframes fh-checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.fh-checkmark-animation {
  display: inline-block;
  color: #4caf50;
  animation: fh-checkmark 0.3s ease-in-out forwards;
}

.fh-share-wrapper {
  display: inline-block;
}

.fh-share-modal p {
  font-family: 'Caveat', cursive;
  color: #5A4E5C;
  font-size: 150%;
}


/* DISCUSSION PROMPT */

.fh-discussion-prompt {
  text-align: center;
  font-weight: 500;
  color: #3c7c75;
  margin-top: 2em;
  margin-bottom: -0.5em;
  font-size: clamp(0.8rem, 0.8vw + 0.5rem, 1rem);
}

.fh-discussion-prompt i {
  color: #5A7F79;
  margin-right: 6px;
}

/* PUSH BUTTON */

.fh-notify-btn {
    background-color: transparent;
    color: #3c7c75;
    padding: 6px 10px;
    border: 1.5px solid #3c7c75;
  border-radius: 3px;
  cursor: pointer;
    opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, background-color 0.2s ease;
  display: inline-block;
  will-change: opacity, transform;
}

.fh-notify-btn.ready {
  opacity: 1;
  transform: translateY(0);
}

.fh-notify-btn:hover {
  background-color: #4b7470;
  border: 1.5px solid #4b7470;
  color: white;
}

.fh-subscribe-below-title {
  text-align: center;
}

.fh-notify-btn.ready i {
  animation: bell-ring 1.5s 1;
  transform-origin: top center;
}

/* Keyframes for ringing animation */
@keyframes bell-ring {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(5deg); }
  60% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); }
  80% { transform: rotate(-3deg); }
  90%, 100% { transform: rotate(0deg); }
}

/* SUGGESTED */

/* Suggested Chips Styles */
.fh-suggested-wrapper {
  margin-top: 0;
  margin-bottom: 2em;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
  text-align: center;
}
.fh-suggested-title {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.fh-suggested-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
/* Vertically center the chip content and any pills */
.fh-suggested-chips a {
  display: inline-flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 0.4em 1em;
  text-decoration: none;
  color: inherit;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}
.fh-suggested-chips a:hover {
  background-color: #e0e0e0;
}
/* “New” pill inside a chip (if you include <span class="fh-new-pill">New</span>) */
.fh-new-pill {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.75em;
  background: #e8aa0b;
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 4px;
}
@media (max-width: 600px) {
  .fh-suggested-chips {
    gap: 0.3em;
  }
  .fh-suggested-chips a {
    padding: 0.3em 0.8em;
    font-size: 0.85em;
  }
}