/* Auto Tag Button Styles */
.auto-tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.auto-tag-button:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #cbd5e1;
  color: #475569;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auto-tag-button.selected {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auto-tag-button.selected:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.auto-tag-button .tag-text {
  flex: 1;
  text-align: left;
}

.auto-tag-button .tag-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.auto-tag-button:hover .tag-plus {
  background: rgba(100, 116, 139, 0.2);
}

.auto-tag-button.selected .tag-plus {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.auto-tag-button.selected:hover .tag-plus {
  background: rgba(255, 255, 255, 0.3);
}

/* 선택된 태그 상태에서 + 기호를 ✓으로 변경 */
.auto-tag-button.selected .tag-plus::after {
  content: '✓';
}

.auto-tag-button:not(.selected) .tag-plus::after {
  content: '+';
}

/* 애니메이션 효과 */
@keyframes tagSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auto-tag-button {
  animation: tagSlideIn 0.3s ease forwards;
  animation-delay: calc(var(--tag-index) * 0.1s);
}

/* 하트만 보이는 심플한 디자인 */
.like-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.like-button:hover {
  transform: scale(1.1);
}

.heart-svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.heart-path {
  fill: #d1d5db;
  transition: fill 0.2s ease;
}

.like-button.liked .heart-path {
  fill: #ef4444;
}

.like-button:hover:not(.liked) .heart-path {
  fill: #f87171;
}

.like-section {
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-count {
  font-size: 14px;
  color: #6b7280;
  min-width: 16px;
  font-weight: 500;
}

.like-button.liked ~ .like-count {
  color: #ef4444;
  font-weight: 600;
}

/* Review form styling fixes */
.review-content-input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.review-tag-input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.review-spacing {
  margin-bottom: 15px;
}

.auto-tags-section {
  display: block;
}

.auto-tags-hidden {
  display: none;
}

.like-button-cursor {
  cursor: pointer;
}

/* Review Card Action Buttons */
.review-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.review-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #475569;
}

.review-action-btn.edit-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  color: white;
}

.review-action-btn.delete-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: white;
}

.review-action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Review Content Styling */
.review-content {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1;
}

.review-content p {
  margin-bottom: 0.5rem;
}

.review-content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .review-action-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .review-actions {
    gap: 6px;
  }
}