/* Design Vote Contest - Frontend Styles */
.dvc-contest-wrapper {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.dvc-contest-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.dvc-designs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  justify-items: center;
}
.dvc-design-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  transition: box-shadow 0.3s, transform 0.2s;
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative;
}
.dvc-design-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.16), 0 3px 8px rgba(0,0,0,0.06);
  transform: translateY(-4px) scale(1.01);
}
.dvc-design-image {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
}
.dvc-design-image img,
.dvc-design-image img.dvc-main-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: none;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0;
  transition: box-shadow 0.3s, transform 0.2s;
}
.dvc-design-image img:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  transform: scale(1.02);
}
.dvc-design-image img[width],
.dvc-design-image img[height] {
  width: 100% !important;
  height: auto !important;
}
.dvc-design-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0 0.2rem 0;
}
.dvc-design-desc {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.dvc-mock-images {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #eee;
  justify-content: center;
  align-items: center;
}
.dvc-mock-images::-webkit-scrollbar {
  height: 8px;
}
.dvc-mock-images::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
.dvc-mock-images::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}
.dvc-mock-images img, .dvc-mock-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: inline-block;
}
.dvc-mock-images img:hover, .dvc-mock-img:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: scale(1.10);
}
.dvc-vote-btn.dvc-action-btn {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.35rem 1.2rem 0.35rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}
.dvc-vote-btn.dvc-action-btn:disabled,
.dvc-vote-btn.dvc-action-btn.dvc-voted-btn {
  background: var(--primary-color);
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}
.dvc-vote-btn.dvc-action-btn.dvc-voted-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.95em;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-top: 6px;
  z-index: 10;
}
.dvc-vote-btn.dvc-action-btn.dvc-voted-btn:hover::after {
  opacity: 1;
}
.dvc-vote-btn.dvc-action-btn.dvc-vote-success {
  background: #2ecc40 !important;
  color: #fff !important;
  animation: dvc-pulse 0.7s;
}
@keyframes dvc-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(46,204,64,0.15); }
  100% { transform: scale(1); }
}
.dvc-vote-btn .dvc-icon-vote {
  display: flex !important;
  align-items: center;
}
.dvc-vote-btn .dvc-icon-vote svg {
  display: block;
  width: 1.3em;
  height: 1.3em;
}
.dvc-vote-btn .dvc-action-label {
  color: #fff;
  font-size: 1.05em;
  margin-left: 2px;
}
.dvc-action-btn:not(.dvc-vote-btn) {
  background: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
  box-shadow: none;
}
.dvc-action-btn:not(.dvc-vote-btn):hover,
.dvc-action-btn:not(.dvc-vote-btn):focus {
  color: var(--secondary-color);
  background: rgba(0,0,0,0.03);
}
.dvc-action-count {
  font-size: 1.08rem;
  color: #fff;
  background: var(--primary-color);
  padding: 0.1em 0.7em;
  border-radius: 999px;
  margin-left: 3px;
  font-weight: 700;
  min-width: 1.7em;
  height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  vertical-align: middle;
}
@media (max-width: 800px) {
  .dvc-design-card {
    max-width: 98vw;
    padding: 0.7rem;
  }
  .dvc-design-image img,
  .dvc-design-image img.dvc-main-img {
    width: 100% !important;
    max-width: 98vw !important;
    height: auto !important;
  }
}

.dvc-contest-overview-wrapper {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.dvc-contest-overview-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}
.dvc-contest-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.dvc-contest-overview-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 0;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.dvc-contest-overview-card:hover {
  box-shadow: 0 8px 32px rgba(183,28,28,0.13);
  transform: translateY(-4px) scale(1.03);
}
.dvc-overview-thumb-wrap {
  width: 100%;
  height: 200px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dvc-overview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #eee;
  box-shadow: none;
}
.dvc-overview-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.2rem 1.2rem 0.5rem 1.2rem;
  color: var(--primary-color);
}
.dvc-overview-desc {
  color: #555;
  font-size: 1rem;
  margin: 0 1.2rem 1.2rem 1.2rem;
  min-height: 48px;
}
.dvc-overview-view-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0 0 12px 12px;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
  margin: 0;
  display: block;
  letter-spacing: 1px;
}
.dvc-overview-view-btn:hover {
  background: var(--secondary-color);
}
.dvc-contest-pagination {
  margin: 2rem 0 0 0;
  text-align: center;
}
.dvc-contest-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 0.5em 1em;
  background: #f1f1f1;
  color: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.dvc-contest-pagination .page-numbers.current,
.dvc-contest-pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
}
@media (max-width: 600px) {
  .dvc-contest-overview-wrapper {
    padding: 1rem;
  }
  .dvc-contest-overview-grid {
    gap: 1rem;
  }
  .dvc-contest-overview-card {
    min-height: 220px;
  }
  .dvc-overview-thumb-wrap {
    height: 120px;
  }
}

.dvc-comments-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.dvc-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 7px;
  padding: 7px 12px;
  margin-bottom: 7px;
  font-size: 1.05em;
  word-break: break-word;
}
.dvc-comment-emoji {
  font-size: 1.3em;
  margin-right: 4px;
}
.dvc-comment-text {
  flex: 1;
  color: #333;
}
.dvc-comment-date {
  color: #888;
  font-size: 0.85em;
  margin-left: 8px;
  align-self: flex-end;
}
.dvc-comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dvc-comment-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 1.05em;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: 44px;
  min-height: 44px;
}
.dvc-comment-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color, #007aff33);
}
.dvc-comment-send-btn {
  background: var(--primary-color) !important;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
  margin-left: 0;
  font-size: 1.1em;
  box-shadow: none;
  position: relative;
  outline: none;
}
.dvc-comment-send-btn .dvc-icon-send svg {
  width: 22px;
  height: 22px;
  stroke: #fff !important;
  fill: #fff !important;
  display: block;
  transition: stroke 0.18s, fill 0.18s;
}
.dvc-comment-send-btn:hover,
.dvc-comment-send-btn:focus {
  background: var(--primary-color) !important;
  box-shadow: 0 0 0 6px var(--primary-color, #007aff22);
  transform: scale(1.08);
}
.dvc-comment-send-btn:hover .dvc-icon-send svg,
.dvc-comment-send-btn:focus .dvc-icon-send svg {
  stroke: #fff !important;
  fill: #fff !important;
}

.dvc-action-row {
  background: rgba(245,245,245,0.85);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0.7rem 1.2rem;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}
.dvc-love-btn,
.dvc-love-btn.dvc-love-active {
  background: none !important;
  box-shadow: none !important;
}
.dvc-icon-love-filled svg {
  fill: var(--primary-color) !important;
  stroke: var(--primary-color) !important;
}
.dvc-heart-outline {
  color: #666;
  transition: all 0.2s ease;
}
.dvc-heart-filled {
  color: var(--primary-color);
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.dvc-love-count {
  font-size: 0.95em;
  background: #fff;
  color: #111;
  padding: 2px 8px;
  border-radius: 14px;
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1.5px solid #eee;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(.4,2,.6,1);
}
.dvc-love-btn:hover {
  transform: scale(1.1);
}
.dvc-love-btn:hover .dvc-heart-outline {
  color: var(--primary-color);
}
.dvc-love-active .dvc-heart-outline {
  opacity: 0;
  transform: scale(0.5);
}
.dvc-love-active .dvc-heart-filled {
  opacity: 1;
  transform: scale(1);
}
.dvc-love-active .dvc-love-count {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.dvc-love-loading {
  opacity: 0.7;
  pointer-events: none;
}
.dvc-love-success {
  animation: heartBeat 0.5s ease-in-out;
}
@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
/* Remove old reaction styles */
.dvc-reaction-options,
.dvc-reaction-btn {
  display: none;
}
.dvc-action-row-modern {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0.5rem 0 0.2rem 0;
  margin: 1rem 0 0.5rem 0;
}
.dvc-action-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  color: var(--primary-color);
  font-size: 1.1rem;
  border-radius: 8px;
}
.dvc-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dvc-action-btn:hover,
.dvc-action-btn:focus {
  color: var(--secondary-color);
  background: rgba(0,0,0,0.03);
}
.dvc-icon-vote,
.dvc-icon-love,
.dvc-icon-comment {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}
.dvc-action-label {
  font-size: 0.92em;
  color: #888;
  margin-left: 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.dvc-action-count {
  font-size: 0.95rem;
  color: #222;
  margin-left: 2px;
  font-weight: 600;
}
.dvc-icon-love-badge {
  position: relative;
  display: inline-block;
}
.dvc-love-count.dvc-action-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 1.2em;
  height: 1.2em;
  padding: 0 0.2em;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  z-index: 1;
  pointer-events: none;
}
.dvc-icon-love-outline {
  display: inline-block;
  transition: opacity 0.2s;
}
.dvc-icon-love-filled {
  display: none;
  transition: opacity 0.2s;
}
.dvc-love-btn.dvc-love-active .dvc-icon-love-outline {
  display: none;
}
.dvc-love-btn.dvc-love-active .dvc-icon-love-filled {
  display: inline-block;
}
.dvc-love-btn .dvc-icon-love-modern,
.dvc-comment-btn .dvc-icon-comment-modern {
  transition: transform 0.18s, color 0.18s, filter 0.18s;
}
.dvc-love-btn:hover .dvc-icon-love-modern,
.dvc-love-btn:focus .dvc-icon-love-modern {
  transform: scale(1.18);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.dvc-love-btn:hover .dvc-icon-love-outline,
.dvc-love-btn:focus .dvc-icon-love-outline {
  stroke: var(--secondary-color);
}
.dvc-love-btn.dvc-love-active .dvc-icon-love-filled svg {
  fill: var(--primary-color) !important;
  stroke: var(--primary-color) !important;
}
.dvc-comment-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  color: var(--primary-color);
  font-size: 1.1rem;
  border-radius: 8px;
}
.dvc-comment-btn:hover,
.dvc-comment-btn:focus {
  color: var(--secondary-color);
  background: rgba(0,0,0,0.03);
}
.dvc-comment-btn .dvc-icon-comment-modern {
  transition: transform 0.18s, color 0.18s;
  color: var(--primary-color);
}
.dvc-comment-btn:hover .dvc-icon-comment-modern,
.dvc-comment-btn:focus .dvc-icon-comment-modern {
  transform: scale(1.18);
  color: var(--secondary-color);
}
.dvc-love-count-modern {
  margin-left: 7px;
  font-weight: 600;
  font-size: 1.08em;
  color: var(--primary-color);
  background: none;
  display: inline-block;
  min-width: 1.5em;
  text-align: left;
}
.dvc-love-btn[title]:hover:after,
.dvc-comment-btn[title]:hover:after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.95em;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  margin-top: 6px;
  z-index: 10;
}
.dvc-love-btn[title]:not(:hover):after,
.dvc-comment-btn[title]:not(:hover):after {
  opacity: 0;
  pointer-events: none;
}

.dvc-vote-btn.dvc-action-btn:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.dvc-vote-btn.dvc-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dvc-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background: #f7faff;
  border-radius: 8px;
  padding: 0.7em 1.2em;
  margin: 0 auto 1.2em auto;
  font-size: 1.1em;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  color: #222;
  width: fit-content;
} 