/* ADD LINK */

.link-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.link-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f3f4f6;
}

.link-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.link-category-option,
.link-type-option {
  border: 1px solid rgb(50 55 67 / 0.8);
  background: rgb(23 26 31 / 0.65);
  color: #bdc1ca;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.link-category-option:hover,
.link-type-option:hover {
  background: rgb(255 255 255 / 0.05);
  color: #f3f4f6;
}

.link-category-option.active,
.link-type-option.active {
  border-color: #F65563;
  background: rgb(246 85 99 / 0.1);
  color: #F65563;
}

.link-category-option span {
  font-weight: 700;
}

.link-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-type-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.link-type-title {
  font-weight: 700;
  color: inherit;
}

.link-type-format {
  font-size: 0.8rem;
  color: #bdc1ca;
}

.link-type-option.active .link-type-format {
  color: #f7a0a8;
}

.link-input-wrap {
  border: 1px solid #323743;
  background: rgb(23 26 31 / 0.5);
  border-radius: 1rem;
  padding: 1rem;
  transition: border-color 150ms ease;
}

.link-input-wrap:focus-within {
  border-color: #F65563;
}

.link-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #f3f4f6;
  font-size: 1rem;
}



.link-helper {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #bdc1ca;
}

.link-save-button {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  background: #F65563;
  color: #fff;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 7px rgb(246 85 99 / 0.2);
  transition: background-color 150ms ease, transform 150ms ease;
}

.link-save-button:hover {
  background: #e04a57;
}

.link-save-button:active {
  transform: scale(0.98);
}

.link-category-option span {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
}

.link-category-option iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.empty-link-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  margin: 1rem 0 2rem;
  border: 1px dashed rgb(189 193 202 / 0.28);
  border-radius: 1.5rem;
  background: rgb(23 26 31 / 0.45);
  color: #bdc1ca;
}

.empty-link-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1rem;
  background: rgb(246 85 99 / 0.10);
  color: #F65563;
}

.empty-link-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0.25rem;
}

.empty-link-text {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #bdc1ca;
}

.sortable-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  touch-action: pan-y;
}

.drag-handle {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(189 193 202 / 0.55);
  padding: 0.5rem;
}

.drag-handle:active {
  cursor: grabbing;
}

.link-card-chosen {
  opacity: 0.92;
}

.link-card-ghost {
  opacity: 0.35;
}

.link-card-dragging {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.sortable-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #1e2128;
  border: 1px solid rgb(50 55 67 / 0.5);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  touch-action: pan-y;
}

.drag-handle {
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgb(189 193 202 / 0.55);
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.link-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(246 85 99 / 0.1);
}

.link-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.link-card-info {
  flex: 1;
  min-width: 0;
}

.link-card-info h3 {
  margin: 0;
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.link-card-info p {
  margin: 0.15rem 0 0;
  color: #bdc1ca;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card .switch {
  margin-left: auto;
  flex-shrink: 0;
}

.link-card-chosen {
  opacity: 0.92;
}

.link-card-ghost {
  opacity: 0.35;
}

.link-card-dragging {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.edit-link-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edit-link-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(50 55 67 / 0.65);
  border-radius: 1.25rem;
  background: rgb(30 33 40 / 0.8);
}

.edit-link-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(246 85 99 / 0.1);
}

.edit-link-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.edit-link-summary-text {
  flex: 1;
  min-width: 0;
}

.edit-link-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f3f4f6;
  line-height: 1.15;
}

.edit-link-category {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #bdc1ca;
}

.edit-link-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edit-link-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f3f4f6;
}

.edit-link-input-wrap {
  border: 1px solid #323743;
  background: rgb(23 26 31 / 0.55);
  border-radius: 1rem;
  padding: 1rem;
  transition: border-color 150ms ease;
}

.edit-link-input-wrap:focus-within {
  border-color: #F65563;
}

.edit-link-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #f3f4f6;
  font-size: 1rem;
}

.edit-link-input-wrap input::placeholder {
  color: rgb(189 193 202 / 0.45);
}

.edit-link-helper {
  margin: 0;
  color: #bdc1ca;
  font-size: 0.85rem;
  line-height: 1.4;
}

.edit-link-preview {
  padding: 1rem;
  border: 1px solid rgb(50 55 67 / 0.5);
  border-radius: 1rem;
  background: rgb(23 26 31 / 0.45);
}

.edit-link-preview-label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(189 193 202 / 0.7);
}

.edit-link-preview-url {
  color: #bdc1ca;
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-all;
}

.edit-link-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.edit-link-save {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  background: #F65563;
  color: #fff;
  font-weight: 800;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 7px rgb(246 85 99 / 0.2);
  transition: background-color 150ms ease, transform 150ms ease;
}

.edit-link-save:hover {
  background: #e04a57;
}

.edit-link-save:active {
  transform: scale(0.98);
}

.edit-link-delete {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgb(246 85 99 / 0.35);
  border-radius: 1rem;
  background: rgb(246 85 99 / 0.08);
  color: #F65563;
  font-weight: 800;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.edit-link-delete:hover {
  background: rgb(246 85 99 / 0.14);
  border-color: rgb(246 85 99 / 0.6);
}

.link-help-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(50 55 67 / 0.6);
  border-radius: 1.25rem;
  background: rgb(23 26 31 / 0.55);
  color: #bdc1ca;
}

.link-help-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1rem;
  background: rgb(246 85 99 / 0.1);
  color: #F65563;
}

.link-help-content {
  flex: 1;
  min-width: 0;
}

.link-help-title {
  margin-bottom: 0.65rem;
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 800;
}

.link-help-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.link-help-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #bdc1ca;
}

.link-help-item iconify-icon {
  flex-shrink: 0;
  color: rgb(189 193 202 / 0.75);
}