/* PageDrop FAB Widget Styles - https://pagedrop.io */

#pagedrop-fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#pagedrop-fab-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: oklch(0.216 0.006 56.043);
  border: 1px solid oklch(1 0 0 / 10%);
  border-radius: 0.625rem;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  color: oklch(0.985 0.001 106.423);
}

#pagedrop-fab-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

#pagedrop-fab-pill.urgent {
  border-color: oklch(0.704 0.191 22.216);
}

.pagedrop-fab-divider {
  width: 1px;
  height: 16px;
  background: oklch(1 0 0 / 10%);
}

.pagedrop-fab-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.pagedrop-fab-logo:hover {
  opacity: 0.8;
}

.pagedrop-fab-logo img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.pagedrop-fab-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  color: oklch(0.709 0.01 56.259);
}

.pagedrop-fab-likes.liked {
  color: #ec4899;
}

.pagedrop-fab-likes svg {
  transition: all 0.2s ease;
}

.pagedrop-fab-likes.liked svg {
  fill: #ec4899;
  color: #ec4899;
}

.pagedrop-fab-views {
  display: flex;
  align-items: center;
  gap: 4px;
  color: oklch(0.709 0.01 56.259);
}

.pagedrop-fab-days {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: oklch(0.985 0.001 106.423);
}

.pagedrop-fab-days.urgent {
  color: oklch(0.704 0.191 22.216);
}

/* Expanded Panel */
#pagedrop-fab-expanded {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: oklch(0.216 0.006 56.043);
  border: 1px solid oklch(1 0 0 / 10%);
  border-radius: 0.625rem;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

#pagedrop-fab-container.expanded #pagedrop-fab-expanded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagedrop-fab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.pagedrop-fab-row:first-child {
  padding-top: 0;
}

.pagedrop-fab-row:last-of-type {
  padding-bottom: 0;
}

.pagedrop-fab-row + .pagedrop-fab-row {
  border-top: 1px solid oklch(1 0 0 / 10%);
}

.pagedrop-fab-row-info {
  justify-content: flex-start;
  gap: 6px;
}

.pagedrop-fab-row-icon {
  color: oklch(0.709 0.01 56.259);
  flex-shrink: 0;
}

.pagedrop-fab-label {
  font-size: 12px;
  color: oklch(0.709 0.01 56.259);
  white-space: nowrap;
}

.pagedrop-fab-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  width: fit-content !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 !important;
}

.pagedrop-fab-btn-like {
  background: #ec4899;
  color: white;
}

.pagedrop-fab-btn-like:hover {
  background: #db2777;
}

.pagedrop-fab-btn-like.liked {
  background: #be185d;
}

.pagedrop-fab-btn-like.liked svg {
  fill: white;
}

.pagedrop-fab-btn-extend {
  background: oklch(0.55 0.19 251.26);
  color: white;
}

.pagedrop-fab-btn-extend:hover {
  background: oklch(0.5 0.17 251.26);
}

/* CTA Link */
.pagedrop-fab-cta {
  display: block;
  text-align: center;
  padding: 6px 0 0;
  margin-top: 5px;
  border-top: 1px solid oklch(1 0 0 / 10%);
  font-size: 11px;
  color: oklch(0.709 0.01 56.259);
}

.pagedrop-fab-cta a {
  color: oklch(0.55 0.19 251.26);
  text-decoration: none;
  font-weight: 500;
}

.pagedrop-fab-cta a:hover {
  text-decoration: underline;
}

/* Report link */
.pagedrop-fab-report {
  display: block;
  text-align: center;
  padding: 4px 0 0;
  font-size: 11px;
}

.pagedrop-fab-report a {
  color: oklch(0.709 0.01 56.259);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.pagedrop-fab-report a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  #pagedrop-fab-container {
    bottom: 16px;
    right: 16px;
  }

  #pagedrop-fab-pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  #pagedrop-fab-expanded {
    min-width: 180px;
    padding: 10px;
  }
}

/* Expiration Warning Popup */
#pagedrop-expiry-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#pagedrop-expiry-popup.visible {
  opacity: 1;
  visibility: visible;
}

#pagedrop-expiry-popup-content {
  background: oklch(0.216 0.006 56.043);
  border: 1px solid oklch(1 0 0 / 10%);
  border-radius: 0.625rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#pagedrop-expiry-popup.visible #pagedrop-expiry-popup-content {
  transform: scale(1);
}

#pagedrop-expiry-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 50%;
  color: oklch(0.704 0.191 22.216);
}

#pagedrop-expiry-popup-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: oklch(0.985 0.001 106.423);
}

#pagedrop-expiry-popup-desc {
  font-size: 14px;
  margin: 0 0 20px;
  color: oklch(0.709 0.01 56.259);
  line-height: 1.5;
}

#pagedrop-expiry-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pagedrop-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 0.375rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.pagedrop-popup-btn-secondary {
  background: transparent;
  color: oklch(0.709 0.01 56.259);
  border: 1px solid oklch(1 0 0 / 10%);
}

.pagedrop-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pagedrop-popup-btn-primary {
  background: oklch(0.55 0.19 251.26);
  color: white;
}

.pagedrop-popup-btn-primary:hover {
  background: oklch(0.5 0.17 251.26);
}

/* Like Prompt Popup (positioned above FAB) */
#pagedrop-like-prompt {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

#pagedrop-like-prompt.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  animation: pagedrop-like-bounce 2s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes pagedrop-like-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(-8px);
  }
  30% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(0);
  }
}

#pagedrop-like-prompt-content {
  position: relative;
  background: oklch(0.216 0.006 56.043);
  border: 1px solid oklch(1 0 0 / 10%);
  border-radius: 0.625rem;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 12px 36px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
}

#pagedrop-like-prompt-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: oklch(0.709 0.01 56.259);
  opacity: 0.6;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pagedrop-like-prompt-close:hover {
  opacity: 1;
}

#pagedrop-like-prompt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(236, 72, 153, 0.15);
  border-radius: 50%;
  color: #ec4899;
  flex-shrink: 0;
}

#pagedrop-like-prompt-text {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: oklch(0.985 0.001 106.423);
}

#pagedrop-like-prompt-arrow {
  position: absolute;
  bottom: -8px;
  right: 32px;
  width: 16px;
  height: 16px;
  background: oklch(0.216 0.006 56.043);
  border-right: 1px solid oklch(1 0 0 / 10%);
  border-bottom: 1px solid oklch(1 0 0 / 10%);
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness for like prompt */
@media (max-width: 480px) {
  #pagedrop-like-prompt {
    bottom: 70px;
    right: 16px;
    left: 16px;
  }

  #pagedrop-like-prompt-content {
    max-width: none;
  }

  #pagedrop-like-prompt-arrow {
    right: 28px;
  }
}
