/* PitMaster Recipe Actions Bar (В избранное, В папку) */

.pm-recipe-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Golos Text', system-ui, sans-serif;
}

.pm-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #222222;
  border: 1px solid #383838;
  color: #e0e0e0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.pm-act-btn:hover {
  background: #2a2a2a;
  border-color: #555555;
  color: #ffffff;
}

.pm-act-btn .pm-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Избранное: активное состояние */
.pm-act-btn.pm-fav-btn.active {
  background: rgba(224, 90, 43, 0.15);
  border-color: #d35400;
  color: #ff922b;
}

.pm-act-btn.pm-fav-btn.active .pm-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(224, 90, 43, 0.5));
}

.pm-act-btn.pm-fav-btn:active .pm-icon {
  transform: scale(0.9);
}

/* Дропдаун папок */
.pm-folder-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.pm-folder-btn .pm-arrow {
  font-size: 10px;
  margin-left: 2px;
  color: #888888;
  transition: transform 0.2s ease;
}

.pm-folder-dropdown-wrap.open .pm-folder-btn .pm-arrow {
  transform: rotate(180deg);
}

.pm-folder-dropdown-wrap.open .pm-folder-btn {
  border-color: #d35400;
  background: #2a2a2a;
}

.pm-folder-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  padding: 8px;
  min-width: 230px;
  max-width: 300px;
  z-index: 1000;
  display: none;
  animation: pmFadeDown 0.15s ease;
}

.pm-folder-dropdown-wrap.open .pm-folder-menu {
  display: block;
}

/* Дропдаун «Поделиться» */
.pm-share-dropdown-wrap {
  position: relative;
  display: inline-block;
}

/* Кнопка «Поделиться» с фирменным медным акцентом */
.pm-act-btn.pm-share-btn {
  background: linear-gradient(135deg, #d35400, #e67e22);
  border: 1px solid #f39c12;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(211, 84, 0, 0.35);
  font-weight: 700;
  gap: 7px;
}

.pm-act-btn.pm-share-btn:hover {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  border-color: #f1c40f;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.5);
  transform: translateY(-1px);
}

.pm-act-btn.pm-share-btn:active {
  transform: translateY(0);
}

.pm-share-btn .pm-share-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pm-share-btn:hover .pm-share-svg {
  transform: scale(1.1);
}

.pm-share-btn .pm-arrow-svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pm-share-dropdown-wrap.open .pm-share-btn .pm-arrow-svg {
  transform: rotate(180deg);
}

.pm-share-dropdown-wrap.open .pm-share-btn {
  background: linear-gradient(135deg, #bf4600, #d35400);
  border-color: #e67e22;
  box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.4);
}

/* Блок «Приготовили по рецепту» (отчёты о готовке) */
.pm-cook-reports-section {
  margin: 36px 0 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-cook-reports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.pm-cook-reports-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #f5f0eb);
}

.pm-cooked-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 90, 43, 0.12);
  border: 1px solid rgba(224, 90, 43, 0.35);
  color: #ff922b;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pm-cooked-cta:hover {
  background: rgba(224, 90, 43, 0.22);
  border-color: #d35400;
  color: #ffffff;
}

.pm-cook-reports-empty {
  color: var(--muted, #a3988e);
  font-size: 14.5px;
  margin: 8px 0 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.pm-cook-report-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.pm-cook-report-card:hover {
  border-color: rgba(224, 90, 43, 0.3);
}

.pm-cr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pm-cr-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-cr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d35400, #8e44ad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-cr-name {
  font-weight: 600;
  font-size: 15px;
  color: #f2f2f2;
}

.pm-cr-date {
  font-size: 13px;
  color: #888888;
}

.pm-cr-metrics {
  color: #ff922b;
  font-weight: 500;
}

.pm-cr-body {
  font-size: 15px;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 14px;
}

.pm-cr-photos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.pm-cr-photo-link {
  flex-shrink: 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
}

.pm-cr-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.pm-cr-photo-link:hover .pm-cr-photo {
  transform: scale(1.04);
}

.pm-cr-reply {
  background: rgba(211, 84, 0, 0.08);
  border-left: 3px solid #d35400;
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.pm-cr-reply-header {
  font-weight: 700;
  color: #ff922b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-cr-reply-text {
  color: #e8e8e8;
}

.pm-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  padding: 6px;
  min-width: 220px;
  z-index: 1000;
  display: none;
  animation: pmFadeDown 0.15s ease;
}

.pm-share-dropdown-wrap.open .pm-share-menu {
  display: block;
}

.pm-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
  box-sizing: border-box;
}

.pm-share-item:hover {
  background: #282828;
  color: #ffffff;
}

.pm-share-item .pm-share-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes pmFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pm-folder-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #888888;
  padding: 6px 10px 4px;
  letter-spacing: 0.05em;
}

.pm-folder-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
}

.pm-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #e0e0e0;
  cursor: pointer;
  transition: background 0.12s ease;
}

.pm-folder-item:hover {
  background: #282828;
  color: #ffffff;
}

.pm-folder-item .pm-folder-name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-folder-item .pm-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.12s;
  flex-shrink: 0;
}

.pm-folder-item.checked .pm-check {
  background: #d35400;
  border-color: #d35400;
  color: #ffffff;
}

.pm-folder-empty {
  font-size: 12.5px;
  color: #777777;
  padding: 8px 10px;
  text-align: center;
}

.pm-folder-create-row {
  border-top: 1px solid #2a2a2a;
  padding-top: 6px;
  margin-top: 4px;
}

.pm-folder-create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ff922b;
  cursor: pointer;
  transition: background 0.12s;
}

.pm-folder-create-btn:hover {
  background: rgba(224, 90, 43, 0.12);
}

.pm-folder-create-form {
  display: none;
  padding: 4px 6px;
  gap: 6px;
}

.pm-folder-create-form input {
  flex: 1;
  background: #222222;
  border: 1px solid #444444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  min-width: 0;
}

.pm-folder-create-form input:focus {
  border-color: #d35400;
}

.pm-folder-create-form button {
  background: #d35400;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pm-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222222;
  border: 1px solid #383838;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
