/* Likes count circle in center of selected photos */
.likes-per-photo-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: rgba(132, 0, 255, 0.9) !important;
  color: white !important;
  border-radius: 15px !important;
  min-width: 70px !important;
  height: auto !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  z-index: 999 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
  padding: 8px 12px !important;
  /* Hide by default, only show when content is added */
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Show badge when it has content */
.likes-per-photo-badge:not(:empty) {
  opacity: 1;
}

/* Enhanced styling for selected photos and videos */
.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.photo-container.selected {
  box-shadow: 0 0 0 3px #a020f0 !important;
  transform: scale(1.02) !important;
}

/* Improve checkbox appearance */
.photo-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.photo-checkbox + label {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 25px;
  width: 25px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 5;
}

.photo-checkbox:checked + label {
  background-color: #a020f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  transform: rotate(5deg);
}

/* Removed .photo-checkbox:checked + label:before and :after as requested */

/* We don't need separate video-select styles since we're using photo-checkbox for both */

/* Views count circle in center of selected videos - identical to likes badge */
.views-per-video-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: rgba(132, 0, 255, 0.9) !important;
  color: white !important;
  border-radius: 15px !important;
  min-width: 70px !important;
  height: auto !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  z-index: 999 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
  padding: 8px 12px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  opacity: 0 !important; /* Hidden by default */
  visibility: hidden !important; /* Hidden by default */
}

/* Only show badge when it has content */
.views-per-video-badge:not(:empty), .comments-per-photo-badge:not(:empty) {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Comments count circle in center of selected photos - identical to likes badge */
.comments-per-photo-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: rgba(132, 0, 255, 0.9) !important;
  color: white !important;
  border-radius: 15px !important;
  min-width: 70px !important;
  height: auto !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  z-index: 999 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
  padding: 8px 12px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  opacity: 0 !important; /* Hidden by default */
  visibility: hidden !important; /* Hidden by default */
}

/* No need for this since we're making it always visible */
/* .views-per-video-badge:not(:empty) {
  opacity: 1;
} */

/* Ensure the original like count is still visible when needed */
.photo-likes-count {
  bottom: 5px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  padding: 3px 10px !important;
  border-radius: 15px !important;
}

/* Play count in center of videos */
.photo-play-count {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(0, 0, 0, 0.7) !important;
  padding: 5px 12px !important;
  border-radius: 15px !important;
  z-index: 5 !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Heart icon in the likes badge */
.likes-per-photo-badge i {
  color: #ff4d4d !important;
  margin-right: 5px !important;
  font-size: 12px !important;
}

/* Eye icon in the views badge */
.views-per-video-badge i {
  color: white !important;
  margin-right: 5px !important;
  font-size: 12px !important;
}

/* Comments count circle in center of selected photos */
.comments-per-photo-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: rgba(132, 0, 255, 0.9) !important;
  color: white !important;
  border-radius: 15px !important;
  min-width: 70px !important;
  height: auto !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  z-index: 999 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
  padding: 8px 12px !important;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Show comments badge when it has content and is selected */
.comments-per-photo-badge.show {
  opacity: 1;
}

/* Comment icon in the comments badge */
.comments-per-photo-badge i {
  color: #ffcc00 !important;
  margin-right: 5px !important;
  font-size: 12px !important;
}
