@import 'colors.css';

.share-card {
  width: 100%;
  padding: clamp(28px, 6vw, 48px);
  background: var(--color-white);
  border: 3px solid var(--color-aqua);
  border-radius: 22px;
  box-shadow: 0 22px 42px rgba(6, 21, 37, 0.13);
}

.manual-shared-workout {
  max-width: 640px;
  margin: 28px auto 34px;
}

.share-card .share-card-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 0 0 clamp(26px, 5vw, 34px);
}

.share-card .share-activity-icon {
  width: clamp(54px, 12vw, 78px);
  height: clamp(54px, 12vw, 78px);
  background: currentColor;
  color: var(--color-aqua);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.share-card .share-workout-title {
  font-size: clamp(36px, 7vw, 50px);
  font-weight: 900;
  color: var(--color-black);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.1em;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  padding: 0;
  opacity: 1;
}

.share-card .share-workout-description {
  max-width: 500px;
  margin: 0;
  color: var(--color-text-dark);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  opacity: 1;
}

#blog-content .share-card .share-workout-description {
  font-size: clamp(18px, 3.5vw, 22px);
  line-height: 1.45;
  margin: 0;
  opacity: 1;
}

.share-card-divider {
  width: 100%;
  max-width: 500px;
  height: 2px;
  margin: 0 auto clamp(26px, 5vw, 34px);
  background: rgba(0, 215, 182, 0.36);
}

.share-card .typing-container-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

.share-card .typing-box {
  box-shadow: none;
  background-color: var(--color-white);
  border-color: rgba(0, 215, 182, 0.26);
}

.share-typing-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.copy-icon {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

.copy-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: rgba(10, 25, 40, 0.72);
}

.copy-icon:hover {
  opacity: 1;
}

.copy-icon:hover svg {
  stroke: var(--color-text-dark);
}

.copy-tooltip {
  position: absolute;
  bottom: 50px;
  right: 12px;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.copy-tooltip.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .share-card {
    padding: 28px 20px;
  }
}

@media (prefers-color-scheme: dark) {
  .share-card .share-workout-title {
    color: #eef6f7;
  }

  .share-card {
    background: #0d1b26;
  }

  .share-card .typing-box {
    background-color: #0d1b26;
    border-color: rgba(238, 246, 247, 0.14);
    color: #eef6f7;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  }

  .share-card .share-workout-description {
    color: #eef6f7;
  }

  .copy-icon svg {
    stroke: rgba(238, 246, 247, 0.68);
  }

  .copy-icon:hover svg {
    stroke: #eef6f7;
  }
}
