/* Frontend styles for feedback carousel */

.feedback-carousel-wrapper {
  position: relative;
}

.feedback-item {
  display: block;
  position: relative;
}

.feedback-media {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
}

.feedback-image,
.feedback-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.feedback-video {
  cursor: pointer;
}

.feedback-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #ccc;
}

.feedback-content {
  padding: 0;
}

.feedback-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.feedback-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 549px) {
  .feedback-title {
    font-size: 14px;
  }

  .feedback-excerpt {
    font-size: 13px;
  }
}

/* Hover effects */
.feedback-item:hover .feedback-media {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Video controls styling */
.feedback-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.feedback-video::-webkit-media-controls-play-button,
.feedback-video::-webkit-media-controls-volume-slider,
.feedback-video::-webkit-media-controls-timeline {
  filter: invert(1);
}

/* Feedback Taxonomy Styles - Scoped to feedback archive container */
.feedback-archive-header {
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
}

.feedback-archive-title {
  font-size: 2.5rem;
  margin-bottom: 0;
  color: #333;
}

.feedback-archive-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 20px;
}

.feedback-parent-category {
  margin-bottom: 20px;
}

.feedback-parent-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background-color: #f7f7f7;
  border-radius: 30px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.feedback-parent-link:hover {
  background-color: #eaeaea;
  color: #333;
}

.feedback-parent-link .dashicons {
  margin-right: 5px;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.feedback-child-categories {
  margin: 30px 0;
}

.feedback-subcategories-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.feedback-subcategories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feedback-subcategory-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f0f0f0;
  border-radius: 30px;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.feedback-subcategory-link:hover {
  background-color: #e0e0e0;
  color: #000;
}

.feedback-count {
  opacity: 0.6;
  margin-left: 3px;
}

.feedback-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.feedback-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.feedback-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feedback-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feedback-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #f5f5f5;
}

.feedback-card-media img,
.feedback-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.feedback-card:hover .feedback-card-media img,
.feedback-card:hover .feedback-video-preview {
  transform: scale(1.05);
}

.feedback-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.feedback-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999;
  font-size: 48px;
}

.feedback-archive-empty {
  padding: 60px 0;
  text-align: center;
}

.feedback-archive-empty .empty-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
}

.feedback-archive-empty .empty-content .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
  color: #ccc;
  margin-bottom: 20px;
}

.feedback-archive-empty .empty-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #555;
}

.feedback-archive-empty .empty-content p {
  color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
  .feedback-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .feedback-archive-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .feedback-archive-grid {
    grid-template-columns: 1fr;
  }

  .feedback-archive-title {
    font-size: 1.8rem;
  }

  .feedback-subcategories-list {
    justify-content: flex-start;
  }
}

/* Pagination */
.feedback-pagination {
  text-align: center;
  margin: 60px 0;
}

.feedback-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  margin: 0 5px;
  text-decoration: none;
  color: #666;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.feedback-pagination .page-numbers:hover,
.feedback-pagination .page-numbers.current {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

.feedback-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: #999;
}

.feedback-pagination .page-numbers.dots:hover {
  background: transparent;
  transform: none;
}

/* Navigation */
.feedback-navigation {
  margin-bottom: 40px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.feedback-navigation .feedback-nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.feedback-navigation .feedback-nav-group {
  flex: 1;
}

.feedback-navigation .feedback-nav-group.sort-group {
  flex: 0;
  min-width: 300px;
}

.feedback-navigation .feedback-nav-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feedback-navigation .feedback-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-navigation .feedback-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feedback-navigation .feedback-nav-button .nav-count {
  font-size: 12px;
  opacity: 0.8;
}

.feedback-navigation .feedback-nav-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.feedback-navigation .feedback-nav-button:hover,
.feedback-navigation .feedback-nav-button.active,
.feedback-navigation .feedback-nav-all:hover {
  background: #007cba;
  color: white;
}

@media screen and (max-width: 768px) {
  .feedback-navigation {
    padding: 20px;
  }
}

/* YouTube thumbnail styling */
.feedback-youtube-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Specialized styling for YouTube Shorts */
.feedback-youtube-shorts-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.feedback-carousel-wrapper .feedback-youtube-shorts-wrapper,
.feedback-carousel-wrapper .feedback-youtube-wrapper {
  position: absolute;
  top: 0;
}

/* When shorts is displayed, adjust the aspect ratio for better viewing */
.feedback-youtube-shorts-wrapper .feedback-youtube-player {
  aspect-ratio: 9/16;
}

.feedback-youtube-shorts-wrapper .feedback-youtube-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-youtube-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.3s ease;
}

.feedback-youtube-play .icon-youtube {
  color: #fff;
  font-size: 30px;
}

.feedback-youtube-wrapper:hover .feedback-youtube-play {
  background-color: rgb(255, 0, 0);
  transform: translate(-50%, -50%) scale(1.1);
}

/* YouTube player styles */
.feedback-youtube-player {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.feedback-youtube-iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.feedback-youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Special container for shorts */
.feedback-youtube-shorts-container {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 9/16;
}

/* Loading indicator */
.feedback-youtube-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.feedback-youtube-loading .icon-youtube {
  color: white;
  font-size: 48px;
  width: 48px;
  height: 48px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
