/* Shorts Video Feed Styles */
.shorts-body {
  background: #000;
  overflow: hidden;
  height: 100vh;
}

.shorts-container {
  position: relative;
  height: 100vh;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #000;
}

.shorts-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shorts-header h1 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.create-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.create-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.shorts-feed {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.short-video {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-overlay {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.video-info {
  flex: 1;
  margin-right: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.user-details h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.follow-btn-small {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.follow-btn-small.following {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--white);
}

.follow-btn-small:hover {
  transform: scale(1.05);
}

.video-caption {
  margin-top: 8px;
}

.video-caption p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.action-btn.liked .action-icon {
  color: #e74c3c;
}

.action-icon {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.action-count {
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.profile-action-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.video-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.short-video.paused .video-controls {
  opacity: 1;
}

.play-pause-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.play-pause-btn .pause-icon {
  display: none;
}

.short-video.paused .play-pause-btn .play-icon {
  display: inline;
}

.short-video.paused .play-pause-btn .pause-icon {
  display: none;
}

.short-video:not(.paused) .play-pause-btn .play-icon {
  display: none;
}

.short-video:not(.paused) .play-pause-btn .pause-icon {
  display: inline;
}

.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.1s ease;
}

.no-videos {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.no-videos-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.no-videos-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* Comments Modal */
.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.comments-modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-gray);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: var(--light-gray);
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-body .comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-height: none;
}

.modal-body .comment-form {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 480px) {
  .video-overlay {
    bottom: 80px;
    padding: 15px;
  }

  .video-actions {
    gap: 15px;
  }

  .action-icon {
    font-size: 1.5rem;
  }

  .action-count {
    font-size: 0.7rem;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
  }

  .profile-action-img {
    width: 30px;
    height: 30px;
  }
}

/* Hide bottom nav on shorts page */
.shorts-body .bottom-nav {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.shorts-body .nav-item {
  color: rgba(255, 255, 255, 0.7);
}

.shorts-body .nav-item.active,
.shorts-body .nav-item:hover {
  color: var(--primary-color);
}
